mcstasscript.data.data.McStasData
mcstasscript.data.data.McStasData¶
- class mcstasscript.data.data.McStasData(metadata)¶
Class for holding full McStas dataset with data, metadata and plotting preferences
- metadata¶
Holds the metadata for the dataset
- Type
McStasMetaData instance
- name¶
Name of component, extracted from metadata
- Type
str
- plot_options¶
Holds the plotting preferences for the dataset
- Type
McStasPlotOptions instance
- set_xlabel : string
sets xlabel of data for plotting
- set_ylabel : string
sets ylabel of data for plotting
- set_title : string
sets title of data for plotting
- set_options : keyword arguments
sets plot options, keywords passed to McStasPlotOptions method
- __init__(metadata)¶
Initialize a new McStas dataset, 4 positional arguments, pass xaxis as kwarg if 1d data
- Parameters
metadata (McStasMetaData instance) – Holds the metadata for the dataset
Methods
__init__
(metadata)Initialize a new McStas dataset, 4 positional arguments, pass xaxis as kwarg if 1d data
get_data_location
()set_data_location
(data_location)set_plot_options
(**kwargs)set_title
(string)set_xlabel
(string)set_ylabel
(string)