Closed segasai closed 3 years ago
I didn't remove the global objects -- I've groupped them. (see lines ~ 300). The reason to separate the definition of the classes from the creation of global objects. And get_massfunc works after the change (if I understood your question)
Sorry, that's my bad! I was looking for exactly https://github.com/keflavich/imf/pull/26/files#diff-1e13df7a25dad73166b0f0e1e9909d2829360f05f1077e4a0d60d64e24bfc7c2R340-R344 but didn't find them. That's the problem with including style fixes in with others.
Several fixes addressing #21, #19, #18 Also run the code through yapf formatter.
I.e now when specifying invalid mmin for kroupa a proper error is raised
also the global imf objects are not modified since get_massfunc() returns new instances
Also mmin is supported now for chabrier