woutergins / satlas

Statistical Analysis Toolbox for Laser Spectroscopy
Other
6 stars 4 forks source link

Streamlining approach to spectra #15

Closed woutergins closed 9 years ago

woutergins commented 9 years ago

To make the process easier, we should go from an approach where we have attributes in a spectrum to an approach where we have a single parameters object in the spectrum. Also, adhering more to the philosophy of an object representing a state and using functions to modify a state could simplify the entire train of thought. This would mean the fitting routines should be removed from the baseclass Spectrum and created as external functions that act on objects.

woutergins commented 9 years ago

Update: all Spectra classes now use a parameters object. Next step is extracting the fitting routines to act on the spectrum.

woutergins commented 9 years ago

The fitting methods have been replaced by fitting functions, and these are now bundled together in the module fitting.py