Skip to content

Commit

Permalink
Merge pull request #127 from thomaswmorris/cast-to-float
Browse files Browse the repository at this point in the history
convert integer sirepo parameters to floats
  • Loading branch information
mrakitin authored Jul 18, 2023
2 parents d1dccc2 + 19b8fda commit 23fd00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sirepo_bluesky/sirepo_ophyd.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def create_classes(sirepo_data, connection, create_objects=True, extra_model_fie

components[k] = Cpt(
cpt_class,
value=v,
value=(float(v) if type(v) is int else v),
sirepo_dict=sirepo_dict,
sirepo_param=k,
)
Expand Down

0 comments on commit 23fd00e

Please sign in to comment.