Adding loader method for importing experiment specs
Created by: siranipour
I found it weird that we could instantiate DataSetSpec
objects from Loader
but not ExperimentSpec
ones.
Just a small PR implementing this which closes #661 (closed) :
In [1]: from validphys.loader import Loader
...: l = Loader()
In [2]: exp = l.check_experiment("Foo", ["NMC", "NMCPD"], theoryid=53)
In [3]: loaded_exp = exp.load()
-- Reading COMMONDATA for Dataset: NMC
nData: 292 nSys: 16
-- COMMONDATA Files for NMC successfully read.
_NMC________________________________________________________
NMC
292 Data Points 50 X points 9 active flavours
-- Reading COMMONDATA for Dataset: NMCPD
nData: 260 nSys: 5
-- COMMONDATA Files for NMCPD successfully read.
_NMCPD______________________________________________________
NMCPD_D
260 Data Points 50 X points 4 active flavours
_NMCPD______________________________________________________
NMCPD_P
260 Data Points 50 X points 5 active flavours