ulysses issueshttps://gitlab.dur.scotgrid.ac.uk/universe/ulysses/-/issues2020-05-15T18:01:59Zhttps://gitlab.dur.scotgrid.ac.uk/universe/ulysses/-/issues/1Loader improvements2020-05-15T18:01:59ZHolger SchulzLoader improvements*Created by: iamholger*
Hi,
I added a loader facility that seems more amenable that having to hardcode
what models exist.
The price to pay is one additional member for each class called 'shortname'.
For example in eta1DME.py:
`...*Created by: iamholger*
Hi,
I added a loader facility that seems more amenable that having to hardcode
what models exist.
The price to pay is one additional member for each class called 'shortname'.
For example in eta1DME.py:
`def shortname(self): return "1DME"`
The nice thing is that uls now knows automatically what models it has and the
model selection work through a simple dict {shortname : Class}
This allowed to also push a script bin/uls-models which
conveniently lists all the builtin stuff and prints the corresponding doc strings
without having to code clumsy if name == "1DME" .... logic.