Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sgdml/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,9 +1613,9 @@ def reset(command=None, **kwargs):

if ui.yes_or_no('\nDo you really want to purge all caches and temporary files?'):

pkg_dir = os.path.dirname(os.path.abspath(__file__))
curr_dir = os.getcwd()
bmark_file = '_bmark_cache.npz'
bmark_path = os.path.join(pkg_dir, bmark_file)
bmark_path = os.path.join(curr_dir, bmark_file)

if os.path.exists(bmark_path):
try:
Expand Down
8 changes: 4 additions & 4 deletions sgdml/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,9 @@ def _dummy_predict():

def _save_cached_bmark_result(self, n_bulk, num_workers, chunk_size, bulk_mp, gps):

pkg_dir = os.path.dirname(os.path.abspath(__file__))
curr_dir = os.getcwd()
bmark_file = '_bmark_cache.npz'
bmark_path = os.path.join(pkg_dir, bmark_file)
bmark_path = os.path.join(curr_dir, bmark_file)

bkey = '{}-{}-{}-{}'.format(
self.n_atoms, self.n_train, n_bulk, self.max_processes
Expand Down Expand Up @@ -922,9 +922,9 @@ def _save_cached_bmark_result(self, n_bulk, num_workers, chunk_size, bulk_mp, gp

def _load_cached_bmark_result(self, n_bulk):

pkg_dir = os.path.dirname(os.path.abspath(__file__))
curr_dir = os.getcwd()
bmark_file = '_bmark_cache.npz'
bmark_path = os.path.join(pkg_dir, bmark_file)
bmark_path = os.path.join(curr_dir, bmark_file)

bkey = '{}-{}-{}-{}'.format(
self.n_atoms, self.n_train, n_bulk, self.max_processes
Expand Down