slaclab / lcls-tools

Python tools for LCLS: post processing data, PV handling, pulling archive settings, etc.
Apache License 2.0
2 stars 21 forks source link

Duplicate screen dictionary keys when generating YAML files #190

Open kabanaty opened 1 month ago

kabanaty commented 1 month ago

Describe the bug The function extract_screens in generate.py contains two dictionary keys titled "image". I believe this implements a sort of race condition that sets the "image" PV to whichever of the two possibilities returns first.

To Reproduce Run write.py and compare the output - see DL1.yaml.

Expected behavior Two possible PVs should have different names for dictionary keys.