Skip to content

Commit

Permalink
fixed unit test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanbinLiu committed Nov 12, 2024
1 parent fb3cfa4 commit 47eba79
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 55 deletions.
4 changes: 4 additions & 0 deletions tests/data/log.lammps
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LAMMPS (27 Jun 2024)
OMP_NUM_THREADS environment is not set. Defaulting to 1 thread. (src/comm.cpp:98)
using 1 OpenMP thread(s) per MPI task
Total wall time: 0:00:23
8 changes: 4 additions & 4 deletions tests/data/test_datagen_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def test_vasp_static(test_dir, mock_vasp, memory_jobstore, clean_dir):

mock_vasp(ref_paths, fake_run_vasp_kwargs)

job1 = DFTStaticLabelling(isolated_atom=True,
job_dft = DFTStaticLabelling(isolated_atom=True,
e0_spin=True,
isolatedatom_box=[20.0, 20.5, 21.0],
dimer=True,
Expand Down Expand Up @@ -424,16 +424,16 @@ def test_vasp_static(test_dir, mock_vasp, memory_jobstore, clean_dir):
},
).make(structures=test_structures)

job2 = collect_dft_data(vasp_dirs=job1.output)
job_collect_data = collect_dft_data(vasp_dirs=job_dft.output)

response = run_locally(
Flow([job1,job2]),
Flow([job_dft,job_collect_data]),
create_folders=True,
ensure_success=True,
store=memory_jobstore
)

dict_vasp = job2.output.resolve(memory_jobstore)
dict_vasp = job_collect_data.output.resolve(memory_jobstore)

path_to_vasp, isol_energy = dict_vasp['vasp_ref_dir'], dict_vasp['isolated_atom_energies']

Expand Down
Loading

0 comments on commit 47eba79

Please sign in to comment.