Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
minor doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Mar 1, 2024
1 parent 4e3cf2b commit a905e54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions biosimulator_processes/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def check_value(self, v):


class Model(BaseModel):
"""The data model declaration for process configuration schemas that support SED"""
model_id: str = Field(default='')
input_source: str # <-- user input
model_source: Union[ModelFilepath, BiomodelId] # <-- SED type validated by constructor
Expand All @@ -83,11 +84,11 @@ def set_value(self):
return BiomodelId(value=self.input_source)


class ProcessConfig(BaseModel):
class ProcessConfigSchema(BaseModel):
config: Dict


class CopasiProcessConfig(ProcessConfig):
class CopasiProcessConfigSchema(ProcessConfigSchema):
model: Union[Dict, Model]
method: str = Field(default='deterministic')

Expand All @@ -103,7 +104,6 @@ def set_value(self):
for input_value in self.input_value_names}



class EmittedType:
value_name: str
_type: str # ie: 'tree[float]'
Expand All @@ -129,7 +129,7 @@ def set_value(self):
class ProcessInstance:
_type: str
address: str
config: Union[CopasiProcessConfig, ProcessConfig]
config: Union[CopasiProcessConfigSchema, ProcessConfigSchema]
inputs: PortSchema
outputs: PortSchema
emitter: Union[EmitterInstance, NoneType] = Field(default=None)
Expand Down

0 comments on commit a905e54

Please sign in to comment.