Skip to content

Commit

Permalink
Merge pull request #168 from VisLab/develop
Browse files Browse the repository at this point in the history
Fixing the strs_to_sidecar
  • Loading branch information
VisLab committed May 15, 2024
2 parents 3c33cf1 + f1c77d7 commit 6cbcb42
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions hedweb/process_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,7 @@ def set_sidecar(arguments, params):
"""
sidecar_list = params.get(bc.SIDECAR_STRING, [])
arguments[bc.SIDECAR] = strs_to_sidecar(sidecar_list)
if sidecar_list:
if not isinstance(sidecar_list, list):
sidecar_list = [sidecar_list]
if sidecar_list:
file_list = []
for s_string in sidecar_list:
file_list.append(io.StringIO(s_string))
arguments[bc.SIDECAR] = Sidecar(files=file_list, name="Merged_Sidecar")
else:
arguments[bc.SIDECAR] = None


@staticmethod
def set_definitions(arguments, params):
Expand Down

0 comments on commit 6cbcb42

Please sign in to comment.