Skip to content

Commit

Permalink
Merge pull request #142 from BlueBrain/workflow_id
Browse files Browse the repository at this point in the history
add workflow_id as arguments of FCC and EM
  • Loading branch information
AurelienJaquier authored May 31, 2024
2 parents a4db6ac + 23b509d commit bc31f50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bluepyemodel/emodel_pipeline/emodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def __init__(
passedValidation=None,
seed=None,
emodel_metadata=None,
workflow_id=None,
):
"""Init
Expand All @@ -133,14 +134,15 @@ def __init__(
did it pass it successfully (None: no validation, True: passed, False: didn't pass)
seed (int): seed used during optimisation for this emodel.
emodel_metadata (EModelMetadata): metadata of the model (emodel name, etype, ttype, ...)
workflow_id (str): EModelWorkflow id on nexus.
"""

self.emodel_metadata = emodel_metadata
self.passed_validation = passedValidation
self.fitness = fitness
self.seed = seed

self.workflow_id = None
self.workflow_id = workflow_id

if isinstance(parameter, dict):
self.parameters = parameter
Expand Down
4 changes: 3 additions & 1 deletion bluepyemodel/evaluation/fitness_calculator_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __init__(
validation_protocols=None,
stochasticity=False,
ion_variables=None,
workflow_id=None,
):
"""Init.
Expand Down Expand Up @@ -175,6 +176,7 @@ def __init__(
for these protocols, and deterministic for the other ones.
ion_variables (list of str): ion current names and ionic concentration anmes
for all available mechanisms
workflow_id (str): EModelWorkflow id on nexus.
"""

self.rmp_duration = 500.0
Expand Down Expand Up @@ -209,7 +211,7 @@ def __init__(
self.name_rmp_protocol = name_rmp_protocol
self.name_rin_protocol = name_rin_protocol

self.workflow_id = None
self.workflow_id = workflow_id
self.default_std_value = default_std_value

def initialise_protocols(self, protocols):
Expand Down

0 comments on commit bc31f50

Please sign in to comment.