orangecontrib.tomwer.tests.TestAcquisition.Simulation#
- class orangecontrib.tomwer.tests.TestAcquisition.Simulation(targetdir, manipulationId, finalState=4)#
Simulation is a simple class able to simulate an acquisition by copying files on a targetted directory.
- Parameters:
targetdir – the folder where the acquisition is stored
manipulationId – the id of the simulation we want to simulate
finalState – when launched, the state to reach before stopping
- Warning:
the targetted directory won’t be removed or cleaned during class destruction. This is to be managed by callers.
- advanceTo(state)#
Reset the new advancement targetted
- Parameters:
state – the new state to reach when run will be executed
- advancement = {'acquisitionDone': 3, 'acquisitionRunning': 2, 'not started': -1, 'reconstructionLaunched': 4, 'starting-s0': 0, 'starting-s1': 1}#
- copyInitialFiles()#
copy the .info file
- createDark()#
- createFinalXML(val)#
If activated, once all the file will be copied, this will create an .xml file into the output directory
- createJPG()#
- createOARJob()#
- createParFile()#
- createReconstructedFile()#
- createVolfloat()#
- createVolraw()#
- run()#
Main function, run the acquisition through all states until finalState is reached
- setSrcDestPatterns(srcPattern, destPattern)#
If setted, will set the .info and .xml files into a different folder
- sigAdvancementChanged#
- signalCurrentState()#
Signal the actual state of the simulation