BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Write a Python script that allows to run the current simulation.
Definition at line 29 of file SimulationToPython.h.
Public Member Functions | |
std::string | simulationPlotCode (const ISimulation &simulation) |
Returns a Python script that runs a simulation and plots the result. More... | |
std::string | simulationSaveCode (const ISimulation &simulation, const std::string &fname) |
Returns a Python script that runs a simulation and saves the result to a file. More... | |
std::string SimulationToPython::simulationPlotCode | ( | const ISimulation & | simulation | ) |
Returns a Python script that runs a simulation and plots the result.
Definition at line 484 of file SimulationToPython.cpp.
Referenced by Py::Export::simulationPlotCode().
std::string SimulationToPython::simulationSaveCode | ( | const ISimulation & | simulation, |
const std::string & | fname | ||
) |
Returns a Python script that runs a simulation and saves the result to a file.
Definition at line 496 of file SimulationToPython.cpp.
Referenced by Py::Export::simulationSaveCode().