Skip to content

Commit

Permalink
so3krates| skin control
Browse files Browse the repository at this point in the history
  • Loading branch information
Kisung Kang committed Jun 19, 2024
1 parent 9eedc9d commit b57f477
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions libs/lib_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def __init__(self, input_file='input.in'):
# self.outfile_inputs = 'inputs.json'
self.overwrite_module = '--no-overwrite-module'
self.ace = '--no-ace'
self.skin = 0.01

##[Constants]
# kB: float
Expand Down
2 changes: 1 addition & 1 deletion libs/lib_load_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def load_model(inputs):
from glp import instantiate
from glp.ase import Calculator
potential_dict = {"mlff": {"folder": f"{workpath}/deployed-model_{index_nmodel}_{index_nstep}"}}
get_calculator = instantiate.get_calculator(potential_dict, {"atom_pair": {"skin": 0.1}})
get_calculator = instantiate.get_calculator(potential_dict, {"atom_pair": {"skin": inputs.skin}})
inputs.calc_MLIP.append(Calculator(get_calculator))

# Check the termination signal
Expand Down
2 changes: 1 addition & 1 deletion libs/lib_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def read_input_file(file_path):
'random_index', 'wndex', 'steps', 'loginterval', 'num_calc', 'test_index', 'num_mdl_calc',
'printinterval', 'idx_atom', 'l', 'f', 'l_min', 'l_max', 'max_body_order', 'f_body_order',
'epochs', 'lr_decay_exp_transition_steps', 'size_batch', 'size_batch_training',
'size_batch_validation', 'seed_data', 'seed_training'
'size_batch_validation', 'seed_data', 'seed_training', 'skin'
]:
value = int(value)
else:
Expand Down

0 comments on commit b57f477

Please sign in to comment.