Skip to content

Commit

Permalink
Add architector_run_label to json files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgt16-LANL committed May 2, 2024
1 parent 05bc811 commit 8971f09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ inputDict = {
# structures.
"ase_atoms_db_name": 'architector_ase_db_{uid}.json', # Possible to name the databse filename
# Will default to a "uid" included name.
"temp_prefix":"/tmp/", # Default here - for MPI running on HPC suggested /scratch/$USER/
"temp_prefix": "/tmp/", # Default here - for MPI running on HPC suggested /scratch/$USER/
"architector_run_label": "run_0", # Name stored to ASE json files.

####### Conformer parameters ########
"n_conformers": 1, # Number of metal-core symmetries at each core to save / relax
Expand Down
4 changes: 4 additions & 0 deletions architector/io_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"ase_atoms_db_name":'architector_ase_db.json',
"temp_prefix":"/tmp/",
"ase_db_tmp_name":"/tmp/architector_ase_db.json",
"architector_run_label":'arch_run_0',
# Cutoff parameters
"assemble_sanity_checks":True, # Turn on/off assembly sanity checks.
"assemble_graph_sanity_cutoff":1.8,
Expand Down Expand Up @@ -478,6 +479,7 @@ def calculate(self):
pass
elif self.parameters['dump_ase_atoms'] and (self.mol.ase_atoms.calc is not None) and (not self.assembly):
self.parameters['ase_db'].write(self.mol.ase_atoms,
architector_run_label=self.parameters['architector_run_label'],
mol2string=self.mol.write_mol2('final',
writestring=True),
relaxed=self.relax)
Expand All @@ -495,12 +497,14 @@ def dump_traj(self):
self.mol.ase_atoms = ats
if (i < end) and (i < self.parameters['save_first_n']):
self.parameters['ase_db'].write(ats,
architector_run_label=self.parameters['architector_run_label'],
geo_step=i,
mol2string=self.mol.write_mol2('intermediate',
writestring=True),
relaxed=False)
elif i == end:
self.parameters['ase_db'].write(ats,
architector_run_label=self.parameters['architector_run_label'],
geo_step=i,
mol2string=self.mol.write_mol2('final',
writestring=True),
Expand Down
1 change: 1 addition & 0 deletions architector/io_process_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def inparse(inputDict):
"dump_ase_atoms": False, # or True
"ase_atoms_db_name": 'architector_{}_ase_db_'.format(newinpDict['core']['metal']) + u_id + '.json',
"temp_prefix":"/tmp/", # Default here - for MPI running on HPC suggested /scratch/$USER/
"architector_run_label":"run_0", # Name stored to ASE json files.

# Ligand parameters
# Ligand to finish filling out coordination environment if underspecified.
Expand Down

0 comments on commit 8971f09

Please sign in to comment.