tritemio / FRETBursts

Burst analysis software for smFRET. **Moved to OpenSMFS organization**
https://github.com/OpenSMFS/FRETBursts
GNU General Public License v2.0
16 stars 17 forks source link

Fix stale fitter object after burst selection without recomputing FRET #35

Closed tritemio closed 8 years ago

tritemio commented 8 years ago

This addresses #34.

The fitter objects inside Data (Data.E_fitter, Data.S_fitter, etc) are now simple attributes and are not added to the class dictionary anymore. In this way when copying Data, selecting bursts or creating a new Data variable using Data(**old_data), the fitter object are not passed through.

Also I renamed the keyword argument nofret to computefret. In general negations in boolean variable names are not a good idea (think nofret=False) because they force users to mentally do 2 negations.