pysrw.lib.srwlib.srwl_wfr_fn_ext#
- pysrw.lib.srwlib.srwl_wfr_fn_ext(_fp, _form, _char=0)[source]#
Check / change file extension, depending on requested file format and type of calculation :param _fp: filename (/path) :param _form: required file format, can be:
‘ascii’ or ‘ASCII’ or ‘asc’ or ‘ASC’ for ASCII format ‘hdf5’ or ‘HDF5’ or ‘h5’ or ‘H5’ for HDF5 format
- Parameters:
_char – radiation characteristic to be calculated (one of values supported by the srwl_wfr_emit_prop_multi_e function)
- Returns:
updated / checked filename