Skip to content

Commit

Permalink
fix: added a try except block on whole_device_sim
Browse files Browse the repository at this point in the history
  • Loading branch information
shanto268 committed Oct 13, 2024
1 parent c1f0924 commit bf7292e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion squadds/simulations/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def simulate_whole_device(design, device_dict, eigenmode_options, LOM_options, o
if device_dict["coupler_type"].upper() == "CLT":
emode_df, emode_obj = run_eigenmode(design, cavity_dict, eigenmode_options, cross_dict=cross_dict)
lom_df, lom_obj = run_xmon_LOM(design, cross_dict, LOM_options)
data = get_sim_results(emode_df = emode_df, lom_df = lom_df)
try:
data = get_sim_results(emode_df = emode_df, lom_df = lom_df)
except:
return None, None, None

elif device_dict["coupler_type"].lower() == "ncap":
emode_df, emode_obj = run_eigenmode(design, cavity_dict, eigenmode_options)
Expand Down

0 comments on commit bf7292e

Please sign in to comment.