read_size_field#

FileIO.read_size_field(file_name, params)#

Read a PyPrimeMesh size field (PSF and PSF.GZ) file from disk.

Parameters:
file_namestr

Path to the size field file on disk.

paramsReadSizeFieldParams

Parameters for reading size field file.

Returns:
SizeFieldFileReadResults

Results from reading the size field file.

Return type:

SizeFieldFileReadResults

Notes

This method does not support Unicode paths.

Examples

>>> file_io = prime.FileIO(model=model)
>>> params = prime.ReadSizeFieldParams(model=model)
>>> results = file_io.read_size_field("/tmp/my_prime_sizefield.psf", params)