prsctrl.data.upgrade_data#

Convert the data from a directory to be compatible with a newer version of prsctrl

Functions

convert_00_to_03

0.0: wl keys are

convert_01_to_03

Convert data from prsctrl 0.1 to 0.3

convert_02_to_03

Convert data from prsctrl 0.2 to 0.3 Offsets are no longer integrated into the raw values

convert_03_to_04

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

convert_04_to_05

Introduced the 'mode' in metadata which indicates the measurement mode (reflection or transmission)

convert_05_to_06

Changed metadata/settings format: Each device has its own settings dict

convert_06_to_07

Renamed keys from R to I

convert_07_to_08

Changed offset calculation

convert_08_to_09

Every measurement now needs a timestamp.

convert_09_to_10

Changed plot keys

convert_data

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.