Skip to content

Commit

Permalink
Update sirepo_ophyd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rlb131 committed Jul 24, 2023
1 parent fb1fc13 commit 98f4742
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sirepo_bluesky/sirepo_ophyd.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,8 @@ def create_classes(connection, create_objects=True, extra_model_fields=[]):
sirepo_param=i,
)
)
propagation = PropagationConfig(*sirepo_propagation[:])
classes[inflection.camelize(object_name)] = propagation
if create_objects:
objects[object_name] = propagation
objects[object_name] = PropagationConfig(*sirepo_propagation[:])

if sim_type == "srw":
post_prop_params = connection.data["models"]["postPropagation"]
Expand All @@ -555,9 +553,8 @@ def create_classes(connection, create_objects=True, extra_model_fields=[]):
sirepo_param=i,
)
)
propagation = PropagationConfig(*sirepo_propagation[:])
classes[inflection.camelize(object_name)] = propagation
classes["propagation_parameters"] = PropagationConfig
if create_objects:
objects[object_name] = propagation
objects[object_name] = PropagationConfig(*sirepo_propagation[:])

return classes, objects

0 comments on commit 98f4742

Please sign in to comment.