Properties were not properly added to a properties dictionary in ScanFactory.from_dict before being passed to Scan.from_dict
oscillation_width was not correctly converted to radians in Scan.to_dict when dealing with Scans with only one image
Properties were being needlessly recreated when all properties already have the correct length. When a properties table is made from historical values that have different lengths (e.g. a single epoch but multiple exposure times), assumptions are made about epochs and exposure_time, which might give different values to historical data.
The first two are tested in test_scan_properties_from_dict. The third was picked up in test_experimentlist_dumper_dump_formats and test_experimentlist_dumper_dump_scan_varying.
This fixes three bugs:
ScanFactory.from_dict
before being passed toScan.from_dict
oscillation_width
was not correctly converted to radians inScan.to_dict
when dealing with Scans with only one imageThe first two are tested in
test_scan_properties_from_dict
. The third was picked up intest_experimentlist_dumper_dump_formats
andtest_experimentlist_dumper_dump_scan_varying
.