prsctrl.data.upgrade_data#
Convert the data from a directory to be compatible with a newer version of prsctrl
Functions
0.0: wl keys are |
|
Convert data from prsctrl 0.1 to 0.3 |
|
Convert data from prsctrl 0.2 to 0.3 Offsets are no longer integrated into the raw values |
|
Convert data from prsctrl 0.3 to 0.4 Offsets are recorded same as any wavelength, and raw data are stored in the same data dictionary |
|
Introduced the 'mode' in metadata which indicates the measurement mode (reflection or transmission) |
|
Changed metadata/settings format: Each device has its own settings dict |
|
Renamed keys from R to I |
|
Changed offset calculation |
|
Every measurement now needs a timestamp. |
|
Changed plot keys |
|
Convert prsdata a newer prsctrl version. :param data_dir: PrsData directory to load the data from :param from_version: The version of the data to convert. Set to None for automatic detection :param to_version: The version of the data to convert. If set to None, convert to latest version :param out_dir_base: The base directory to save the converted data to. A new subdirectory for the data will be created with the same name as data_dir :param write_partials: Whether to write the PART files. |