Sn25 / classes.py
Sarkosos
added plots for total jobs done and unique proteins folded
14285d3
raw
history blame
507 Bytes
from pydantic import BaseModel
class ProductivityData(BaseModel):
total_completed_jobs: dict[str, dict[int, str]]
class Last24hProductivityData(BaseModel):
unique_folded: int
total_completed_jobs: int
class Productivity(BaseModel):
all_time: ProductivityData
last_24h: Last24hProductivityData
class ThroughputData(BaseModel):
validator_sent: float
miner_sent: float
class Throughput(BaseModel):
all_time: ThroughputData
last_24h: ThroughputData