1
0
mirror of https://github.com/gsi-upm/soil synced 2025-08-23 19:52:19 +00:00

Fix Windows bug

Update URLs to gsi.upm.es
This commit is contained in:
J. Fernando Sánchez
2020-07-07 10:57:10 +02:00
parent 6adc8d36ba
commit 6118f917ee
8 changed files with 11 additions and 7 deletions

View File

@@ -1 +1 @@
0.14.7
0.14.8

View File

@@ -94,7 +94,7 @@ class Simulation(NetworkSimulation):
self.seed = str(seed) or str(time.time())
self.load_module = load_module
self.network_params = network_params
self.name = name or 'Unnamed_' + time.strftime("%Y-%m-%d_%H:%M:%S")
self.name = name or 'Unnamed_' + time.strftime("%Y-%m-%d_%H.%M.%S")
self.group = group or None
self.num_trials = num_trials
self.max_time = max_time

View File

@@ -31,7 +31,7 @@ def safe_open(path, mode='r', backup=True, **kwargs):
os.makedirs(outdir)
if backup and 'w' in mode and os.path.exists(path):
creation = os.path.getctime(path)
stamp = time.strftime('%Y-%m-%d_%H:%M', time.localtime(creation))
stamp = time.strftime('%Y-%m-%d_%H.%M', time.localtime(creation))
backup_dir = os.path.join(outdir, stamp)
if not os.path.exists(backup_dir):