Skip to content

Commit

Permalink
Merge branch 'sam_dev' into atom_mapping_2023
Browse files Browse the repository at this point in the history
  • Loading branch information
samblau committed Nov 2, 2023
2 parents 0d0b02d + d1eff6d commit 19b9df9
Show file tree
Hide file tree
Showing 116 changed files with 6,803 additions and 4,359 deletions.
18 changes: 18 additions & 0 deletions HiPRGen/initial_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,22 @@ def find_mol_entry_by_entry_id(mol_entries, entry_id):
);
"""

create_interrupt_state_table = """
CREATE TABLE interrupt_state (
seed INTEGER NOT NULL,
species_id INTEGER NOT NULL,
count INTEGER NOT NULL
);
"""

create_interrupt_cutoff_table = """
CREATE TABLE interrupt_cutoff (
seed INTEGER NOT NULL,
step INTEGER NOT NULL,
time INTEGER NOT NULL
);
"""


def insert_initial_state(
initial_state,
Expand All @@ -83,6 +99,8 @@ def insert_initial_state(
rn_cur.execute(create_initial_state_table)
rn_cur.execute(create_trajectories_table)
rn_cur.execute(create_factors_table)
rn_cur.execute(create_interrupt_state_table)
rn_cur.execute(create_interrupt_cutoff_table)
rn_con.commit()

rn_cur.execute(
Expand Down
2 changes: 1 addition & 1 deletion HiPRGen/species_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def add_electron_species(
mol_entries, mol_entries_pickle_location, electron_free_energy
):
e_site = Site(
DummySpecies("E", oxidation_state=None, properties=None), [0.0, 0.0, 0.0]
DummySpecies("E", oxidation_state=None), [0.0, 0.0, 0.0]
)
e_mol = Molecule.from_sites([e_site])
e_mol.set_charge_and_spin(-1, 2)
Expand Down
Binary file removed euvl_phase1_test/.DS_Store
Binary file not shown.
Binary file modified euvl_phase1_test/buckets.sqlite
Binary file not shown.
7 changes: 7 additions & 0 deletions euvl_phase1_test/dummy.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\documentclass{article}
\usepackage{graphicx}
\usepackage[margin=1cm]{geometry}
\usepackage{amsmath}
\pagenumbering{gobble}
\begin{document}
\setlength\parindent{0pt}
Loading

0 comments on commit 19b9df9

Please sign in to comment.