Skip to content

Commit

Permalink
Add isUpdateFilter property to NodeData
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanna26 committed Jan 14, 2025
1 parent 5fbcd44 commit c7dc261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions studio/app/common/core/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ class NodeData:
fileType: str = None
hdf5Path: str = None
matPath: str = None
isUpdateFilter: Optional[bool] = None
dataFilterParam: Union[DataFilterParam, dict, None] = field(
default_factory=lambda: DataFilterParam(dim1=[], roi=[])
)
Expand Down
5 changes: 3 additions & 2 deletions studio/app/common/core/workflow/workflow_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _check_data_filter(cls, workspace_id, uid, node_id):
)
exp_config = ExptConfigReader.read(expt_filepath)

assert exp_config.success == "success"
# assert exp_config.success == "success"
assert exp_config.function[node_id].success == "success"

@classmethod
Expand All @@ -172,7 +172,6 @@ def filter_node_data(cls, workspace_id, uid, node_id, params):

workflow_config = cls.get_workflow_config(workspace_id, uid, node_id)
node = workflow_config.nodeDict[node_id]
node.data.dataFilterParam = params

pkl_filepath = join_filepath(
[
Expand Down Expand Up @@ -219,6 +218,8 @@ def filter_node_data(cls, workspace_id, uid, node_id, params):
cls._save_json(original_output_info, node_dirpath)

# write config
node.data.dataFilterParam = params
node.data.isUpdateFilter = True
WorkflowConfigWriter(
workspace_id,
uid,
Expand Down

0 comments on commit c7dc261

Please sign in to comment.