Skip to content

Commit

Permalink
made the saving directory for the calculated IO database absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
FDonati committed Apr 4, 2020
1 parent 68f1be6 commit 54a6eb2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pycirk/pycirk_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,17 @@ def transform_to_io(self):
del(SUTs)

if self.aggregation in [0, None]:
pickle_name = "pycirk//data//mrIO_V3.3" + extension
pickle_name = "data//mrIO_V3.3" + extension
elif self.aggregation == 1:
pickle_name = "pycirk//data//mrIO_EU_ROW_V3.3" + extension
pickle_name = "data//mrIO_EU_ROW_V3.3" + extension
# saving the IO tables to avoid rebuilding them all the time

IOT = organizer(IOT)
IOT = self.lb.relabel_to_save(IOT, self.method,
self.directory_labels)


pickle_name = ospt.abspath(ospt.join(ospt.dirname(__file__),
pickle_name))
with open(pickle_name, "wb") as w:
pickle.dump(IOT, w, 2) # pickling

Expand Down

0 comments on commit 54a6eb2

Please sign in to comment.