Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ dependencies = [
"mat3ra-utils",
"mat3ra-esse",
"mat3ra-mode",
"mat3ra-ade",
"mat3ra-ade @ git+https://github.com/Exabyte-io/ade.git@e27a00f52a1bd7c751a1d43c401fed8a542ba305",
"mat3ra-code @ git+https://github.com/Exabyte-io/code.git@8db4182c22de569f98ebfaf33384a32ff1df8900",
"mat3ra-standata"
]

Expand Down
2 changes: 1 addition & 1 deletion src/py/mat3ra/wode/subworkflows/subworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ def method_data(self):
return self.model.method.data

def get_as_unit(self) -> Unit:
return Unit(type="subworkflow", id=self.id, name=self.name)
return Unit(type="subworkflow", _id=self.id, name=self.name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it just be id?

1 change: 1 addition & 0 deletions src/py/mat3ra/wode/units/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Unit(WorkflowBaseUnitSchema, InMemoryEntitySnakeCase):
results: List[Any] = Field(default_factory=list)
context: Dict[str, Any] = Field(default_factory=dict)


def is_in_status(self, status: str) -> bool:
return self.status == status

Expand Down
Loading