Skip to content

Commit

Permalink
only return design dict
Browse files Browse the repository at this point in the history
  • Loading branch information
imedan committed Sep 6, 2024
1 parent ba983d0 commit 4bc8bd7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/create_designid_status_replace_designs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def create_des_object(exp, design_file, obsTime):
manual_design=True,
exp=exp)
des.build_design_manual()
return des
return des.design


def get_designid_status(file, field_id, des_objs=None):
Expand All @@ -44,11 +44,12 @@ def designid_status(design_file, obsTime, exp, fexp, field_id, des_objs=None):
manual_design=True,
exp=exp)
des.build_design_manual()
desob = des.design
else:
des = des_objs[fexp]
desob = des_objs[fexp]

assign_hash = assignment_hash(des.design['catalogID'][des.design['robotID'] != -1],
des.design['holeID'][des.design['robotID'] != -1])
assign_hash = assignment_hash(desob['catalogID'][desob['robotID'] != -1],
desob['holeID'][desob['robotID'] != -1])
designid_status = find_designid_status(field_id, fexp, assign_hash=assign_hash)
return designid_status

Expand Down

0 comments on commit 4bc8bd7

Please sign in to comment.