Skip to content

Commit

Permalink
🔊 ⚗️ Pickle rpool
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Oct 28, 2024
1 parent 87c0ad7 commit 5d94b9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CPAC/pipeline/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from itertools import chain
import logging
import os
import pickle
import re
from typing import Any, Optional, Union
import warnings
Expand Down Expand Up @@ -555,6 +556,9 @@ def get_strats(self, resources, debug=False):
total_pool.append(sub_pool)

if not total_pool:
print(self.rpool.keys())
with open("rpool.pickle", "wb") as _f:
pickle.dump(self, _f)
raise LookupError('\n\n[!] C-PAC says: None of the listed '
'resources in the node block being connected '
'exist in the resource pool.\n\nResources:\n'
Expand Down

0 comments on commit 5d94b9a

Please sign in to comment.