nilspodlib.legacy: Legacy support helper#

Legacy support helper to convert older NilsPod files into new versions.

Helper Functions#

find_conversion_function(version[, ...])

Find a method that is able to convert a recording from one version to the other.

convert_18_0(in_path, out_path)

Convert a session recorded with a firmware version >0.13.255 and <0.17.255 to the most up-to-date format.

load_18_0(header, data_bytes)

Convert a session recorded with a firmware version >0.13.255 and <0.17.255 to the most up-to-date format.

convert_12_0(in_path, out_path)

Convert a session recorded with a firmware version >0.11.255 and <0.13.255 to the most up-to-date format.

load_12_0(header, data_bytes)

Convert a session recorded with a firmware version >0.11.255 and <0.13.255 to the most up-to-date format.

convert_11_2(in_path, out_path)

Convert a session recorded with a 0.11.<2 firmware to the most up-to-date format.

load_11_2(header, data_bytes)

Convert a session recorded with a 0.11.<2 firmware to the most up-to-date format.

legacy_support_check(version[, as_warning])

Check if a file recorded with a specific fileformat version can be converted using legacy support.