MultipleObjectsReturned when multiple software version entries in openskinsafelist table
If there are multiple software version entries in the openskinsafelist table for a particular make / model of system causes a MultipleObjectsReturned error in the make_skin_map.py file
Comments (5)
-
reporter -
reporter A side note:
I have changed:
max_skin_dose = np.max(my_exp_map.my_dose.total_dose)
to:
max_skin_dose = np.max(my_exp_map.my_dose.total_dose, initial=0)
Adding the
initial=0
prevents a ValueError being thrown if themy_exp_map.my_dose.total_dose
array is empty. -
reporter Enabled skin dose map tests. Changed reference skin dose map data to match the new code results. Added three additional entries in the json file of OpenSkinSafeList entries to ensure that the code implicitly works when there are multiple entries for the same make / model with different software versions. Refs issue
#960→ <<cset 3d874a8690f7>>
-
reporter Stopped using the openskin_safelist.json file for skin dose map tests - creatin the table entries in the setup part of the test instead. Refs issue
#960→ <<cset e5bf55b25566>>
-
- changed status to resolved
Merged in issue960MultipleObjectsErrorInOpenskinSafeList (pull request #542)
Fixes
#960Approved-by: Ed McDonagh
→ <<cset a65da1fd7be1>>
- Log in to comment
Changed code to check for matching entry in openSkin safelist table to prevent ValueError. Previous code assumed only one entry would be returned, but if there are multiple entries in the table for the same make and model of equipment, but with differing software versions, multiple entries are returned. Refs issue
#960→ <<cset 3e081fdabc4d>>