[yt-svn] commit/yt: MatthewTurk: The shared state of the parameter file storage was getting reset each time it
Bitbucket
commits-noreply at bitbucket.org
Thu Dec 1 03:18:46 PST 2011
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/c1a446be3a7a/
changeset: c1a446be3a7a
branch: yt
user: MatthewTurk
date: 2011-12-01 12:18:31
summary: The shared state of the parameter file storage was getting reset each time it
was initialized. This means that for in-memory-only PFS (the default) you
could never unpickle an object.
affected #: 1 file
diff -r 5c9ac6b8e6101bfe75c0d6829cf80026306b270f -r c1a446be3a7a7d1fca1098ada8890e6e07f1458a yt/utilities/parameter_file_storage.py
--- a/yt/utilities/parameter_file_storage.py
+++ b/yt/utilities/parameter_file_storage.py
@@ -62,6 +62,7 @@
_distributed = True
_processing = False
_owner = 0
+ _register = True
def __new__(cls, *p, **k):
self = object.__new__(cls, *p, **k)
@@ -74,6 +75,7 @@
Otherwise, use read-only settings.
"""
+ if self._register == False: return
if ytcfg.getboolean("yt", "StoreParameterFiles"):
self._read_only = False
self.init_db()
@@ -81,6 +83,7 @@
else:
self._read_only = True
self._records = {}
+ self._register = False
@parallel_simple_proxy
def init_db(self):
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list