Closed alexlyttle closed 5 years ago
Excellent - thanks Alex! This will be second nature anytime soon. I have assigned @nielsenmb for review because this is in star which is really his beautiful handy work!
Alex and I already discussed this offline.
A minor change to be made is perhaps run make_output_dir already in the init. At the moment it's just done in star.call().
@alexlyttle disregard what I said earlier about putting it in session.py, that doesn't make sense. Calling the make_output_dir function should remain with the star class. Although defining such helper functions elsewhere might be a way to tidy up the code (perhaps in a jar somewhere?).
Session would not initialise because
peridogram
had been changed topg
in thestar.__init__()
but not whenstar()
is called insession
. This is now fixed.os.mkdir()
changed toos.makedirs()
instar.make_output_dir()
because the latter allows the creation of sub-directories (without, it wouldn't let me store thestar
output in a new directory within the current working directory) - not a bug, but allows for more general use cases.