Skip to content

Commit

Permalink
fix: BigParameter(str) in debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <[email protected]>
  • Loading branch information
zjgemi committed May 29, 2024
1 parent 9294c4a commit b4f5452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dflow/python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def handle_output_parameter(name, value, sign, slices=None, data_root="/tmp"):
with open(data_root + "/outputs/parameters/" + name, "w") as f:
f.write(jsonpickle.dumps(value))
else:
if isinstance(sign, Parameter):
if isinstance(sign, (Parameter, BigParameter)):
sign = sign.type
if sign == str:
with open(data_root + '/outputs/parameters/' + name, 'w') as f:
Expand Down

0 comments on commit b4f5452

Please sign in to comment.