Skip to content

Commit

Permalink
metadata_schemas is not a mandatory field in Process (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed Dec 5, 2023
1 parent ee89330 commit 2560ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capsul/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ def path_for_parameter(self, executable, parameter):
for schema, parameters in self.parameters_per_schema.items():
if parameter not in parameters:
continue
proc_meta = executable.metadata_schemas.get(schema)
proc_meta = getattr(executable, "metadata_schemas", {}).get(schema)
params_meta = {}
if proc_meta is not None:
params_meta = getattr(proc_meta, "metadata_per_parameter", {})
Expand Down

0 comments on commit 2560ad5

Please sign in to comment.