usnistgov / dioptra

Test Software for the Characterization of AI Technologies
https://pages.nist.gov/dioptra/
Other
229 stars 34 forks source link

Create an EntityType class to encapsulate constants associated with Dioptra Resources #651

Open keithmanville opened 1 month ago

keithmanville commented 1 month ago

Implement a new EntityType dataclass that encapsulates constants associated with Dioptra Resources.

The implementation may look something like this.

@dataclass
class EntityType:
    name: str
    key: str
    id: int

QUEUE_TYPE = EntityType("Queue", "queue", 1)
EXPERIMENT_TYPE = EntityType("Experiment", "experiment", 2)
PLUGIN_FILE_TYPE = EntityType("Plug-in File", "plugin_file", 3)

Definition of done