Skip to content

Commit

Permalink
allow parallel for win
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Oct 12, 2022
1 parent 3d4e9f2 commit 9baccb6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pydsge/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,13 @@ def read(cls, mfile, verbose=False):
pmodel.name = pmodel.mod_name
pmodel.description = pmodel.mod_name
pmodel.path = os.path.dirname(mfile)
pmodel.debug = platform == "darwin" or platform == "win32"
if pmodel.debug:
print(
"[DSGE:]".ljust(15, " ")
+ " Parallelization disabled under Windows and Mac due to a problem with pickling some of the symbolic elements. Sorry..."
)
pmodel.debug = False
# pmodel.debug = platform == "darwin" or platform == "win32"
# if pmodel.debug:
# print(
# "[DSGE:]".ljust(15, " ")
# + " Parallelization disabled under Windows and Mac due to a problem with pickling some of the symbolic elements. Sorry..."
# )

cached_models[len(cached_models)] = deepcopy(pmodel)

Expand Down

0 comments on commit 9baccb6

Please sign in to comment.