Skip to content

Commit

Permalink
Merge branch 'dev_fixing_shelve_opens' of https://github.com/valeriup…
Browse files Browse the repository at this point in the history
…redoi/bgcval2 into dev_fixing_shelve_opens
  • Loading branch information
ledm committed Mar 26, 2024
2 parents 400b765 + fad0b2b commit b0d715a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bgcval2/timeseries/profileAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,7 @@ def loadData(self):
with shOpen(self.shelvefn_insitu) as sh:
sh['dataD'] = dataD

# try:
# with shOpen(self.shelvefn_insitu) as sh:
# sh['dataD'] = dataD
# print("profileAnalysis:\t loadData.\tSaved shelve:", self.shelvefn_insitu)

# except:
# print("profileAnalysis:\t WARNING.\tSaving shelve failed, trying again.:", self.shelvefn_insitu)
# print("Data is", list(dataD.keys()))

# for key in sorted(dataD.keys()):

Expand All @@ -499,10 +492,6 @@ def loadData(self):
# sh['dataD'] = dataD[key]
# print("saved fine:\t./tmpshelves/tmshelve.shelve")

# shutil.move(self.shelvefn_insitu, self.shelvefn_insitu + '.broken')

# with shOpen(self.shelvefn_insitu) as sh:
# sh['dataD'] = dataD

# except:
# print "profileAnalysis:\t WARNING.\tUnable to Save in situ shelve.\tYou'll have to input it each time.",self.shelvefn_insitu
Expand Down

0 comments on commit b0d715a

Please sign in to comment.