Closed nichollsh closed 4 weeks ago
I think this issue needs to be addressed per submodule
I agree. We could format the proteus package directory like so:
And so on
@nichollsh I was just about to make this post, this is exactly what I had in mind as well! 😅
Eventually, all files in the plot
, utils
, tools
directories and proteus.py
should either move somewhere under src/janus
. Or, if they are simply scripts that you expect users to edit (i.e. these do not provide any library functions), we can move them under ./scripts
or ./examples
.
The structure above sounds reasonable to me. What do we do with "interface" modules, such as the future atmodeller module, and ZEPHYRUS? Could all go in one of the two, but then MORS becomes a bit weirdly placed.
I think we just follow the main proteus script, each tick being a subdirectory:
Ok, makes sense to me. Let's call "stellar flux" "star" for simplicity?
Just to not duplicate the work, I have started this in the atmos_wrapper branch.
We recently discussed how best to handle many submodules in a simple and transparent manner. For example, in cases where the interior can be handled by either SPIDER or Aragog.
This can be done by having an
interior.py
file (for example) which handles generalised interior stuff, and then calls the appropriate submodule-specific functions (e.g.RunSPIDER
inspider.py
) as necessary. This will reduce the amount of duplicate code and therefore also make things easier to maintain.Touches on #74 and #62