xcp_d.utils.modified_data.downcast_to_32
- xcp_d.utils.modified_data.downcast_to_32(in_file)[source]
Downcast a file from >32-bit to 32-bit if necessary.
- Parameters:
in_file (None or str) – Path to a file to downcast. If None, None will be returned. If the file is lower-precision than 32-bit, then it will be returned without modification.
- Returns:
Path to the downcast file. If in_file is None, None will be returned. If in_file is a file with lower than 32-bit precision, then it will be returned without modification. Otherwise, a new path will be returned.
- Return type:
None or str