mcstasscript.tests.test_functions

mcstasscript.tests.test_functionsΒΆ

Functions

set_dummy_McStasDataBinned_1d(name)

Sets up a dummy McStasData object for a 1d dataset

set_dummy_McStasDataBinned_2d(name)

Sets up a dummy McStasData object for a 2d dataset

set_dummy_MetaDataBinned_1d(name)

Sets up a dummy MetaData object for a 1d dataset

set_dummy_MetaDataBinned_2d(name)

Sets up a dummy MetaData object for a 2d dataset

setup_McStasData_array()

Sets up an list of McStasData objects, similar to simulation output

setup_McStasData_array_repeat()

Sets up an list of McStasData objects, similar to simulation output

Classes

Test_load_data([methodName])

Testing the load data function which calls ManagedMcrun, which was tested elsewhere.

Test_load_metadata([methodName])

Testing the load metadata function which calls ManagedMcrun, which was tested elsewhere.

Test_load_monitor([methodName])

Testing the load monitor function which calls ManagedMcrun, which was tested elsewhere.

Test_name_plot_options([methodName])

Test the utility function called name_plot_options which sends keyword arguments to the set_plot_options method of the McStasData object in a given list that has the given name.

Test_name_search([methodName])

Test the utility function called name_search which finds and returns a McStasData set with a given name from a list of McStasData objects.