JYU-IBA / potku

Potku is analysis and simulation software for ToF-ERD measurements
https://www.jyu.fi/science/en/physics/research/infrastructures/accelerator-laboratory/pelletron/potku/
GNU General Public License v2.0
7 stars 7 forks source link

Linear optimization improvements2 #262

Closed tpitkanen closed 2 years ago

tpitkanen commented 2 years ago

Issue: #193

Done (from task list):

Future TODO:

The less significant recoil in ElementSimulation.calculate_espe() is either self.optimization_recoils[0] or self.get_main_recoil(). That one is only used to get the .erd data file name. The passed recoil_element argument is used for the .recoil name and contents (recoil point locations). I just added a dummy ElementSimulation.optimization_recoils list object to get around this multi-recoil issue in initial sampling. This could be done more elegantly, but it should work.

I changed the default optimization to Linear & recoil.