mcstasscript.data.McStasDataFormat.McStasFormat

mcstasscript.data.McStasDataFormat.McStasFormat

class mcstasscript.data.McStasDataFormat.McStasFormat
__init__() None

Methods

__init__()

convert(obj, output, output_format_class, ...)

Direct convert method, if the default converting would be too slow or not suitable for the output_format

direct_convert_formats()

format_register()

read(filename)

Read the data from the file with the filename to a dictionary.

write(object, filename[, key])

Don't have a way to write McStasData

classmethod read(filename: str) dict

Read the data from the file with the filename to a dictionary. The dictionary will be used by its corresponding data class.

classmethod write(object, filename: str, key: Optional[str] = None)

Don’t have a way to write McStasData