outs1der / minbar

Tools and software for building, accessing and analysing the Multi-INstrument Burst ARchive (MINBAR)
GNU General Public License v3.0
8 stars 0 forks source link

modify Bursts and Observations classes to be singletons #1

Open outs1der opened 4 years ago

outs1der commented 4 years ago

No need for separate instances of the MINBAR burst and observation data objects, excluding the IDL/non-IDL versions. There seem a couple of relatively-complicated ways to achieve this; see e.g.

https://python-3-patterns-idioms-test.readthedocs.io/en/latest/Singleton.html

https://stackoverflow.com/questions/42237752/single-instance-of-class-in-python