Commit a71a1db5 authored by Médéric Boquien's avatar Médéric Boquien

Make the timestamp more readable when moving the out/ directory.

parent 5e8fc046
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
- Provide the possibility not to store a given module in cache. This can be useful on computers with a limited amount of memory. The downside is that when not caching the model generation will be slower. (Médéric Boquien) - Provide the possibility not to store a given module in cache. This can be useful on computers with a limited amount of memory. The downside is that when not caching the model generation will be slower. (Médéric Boquien)
### Changed ### Changed
- Make the timestamp more readable when moving the out/ directory. (Médéric Boquien)
### Fixed ### Fixed
- Corrected a typo that prevented `restframe\_parameters` from being listed among the available modules. (Médéric Boquien) - Corrected a typo that prevented `restframe\_parameters` from being listed among the available modules. (Médéric Boquien)
......
...@@ -54,7 +54,7 @@ class AnalysisModule(object): ...@@ -54,7 +54,7 @@ class AnalysisModule(object):
def prepare_dirs(self): def prepare_dirs(self):
# Create a new out/ directory and move existing one if needed # Create a new out/ directory and move existing one if needed
if os.path.exists('out/'): if os.path.exists('out/'):
name = datetime.now().strftime("%Y%m%d%H%M") + '_out/' name = datetime.now().strftime("%Y-%m-%d_%H:%M:%S") + '_out/'
os.rename('out/', name) os.rename('out/', name)
print("The out/ directory was renamed to {}".format(name)) print("The out/ directory was renamed to {}".format(name))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment