MinervaExpt / CCQENu

A port of the CCQENu package from the MINERvA offline software framework to Ben's New Systematics Framework
1 stars 3 forks source link

Make a ModelWithConfig class #68

Open hschellman opened 2 years ago

hschellman commented 2 years ago

Make a ModelWithConfig class that can take a config file that creates a list of models.

Main config MnvH1D

Models.json contains things like

{MnvH1D:{weigher1:X, weigher2:b ...

and the code is smart enough to read a model name and give you the function.

2 ways to do this - hard coding (if config == X) models.append(Y) or make a map like CVFunctions that makes it a bit cleaner.

That way you can document all the models and then dump the config into the output.