-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Send whole atoms record back * Run ASE inside a temporary directory Avoid calcualtions from intefering with each other * Test with >1 worker * Add option for loading parsl configuration * Name the run directory based on hessian method * Test the parsl config loader
- Loading branch information
Showing
9 changed files
with
150 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from parsl import Config, HighThroughputExecutor | ||
|
||
|
||
def make_config(): | ||
return Config(executors=[HighThroughputExecutor(max_workers=1)]), 1, {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
from pathlib import Path | ||
|
||
from ase.io import read | ||
|
||
from jitterbug.parsl import get_energy | ||
from jitterbug.parsl import get_energy, load_configuration | ||
from jitterbug.utils import read_from_string | ||
|
||
|
||
def test_energy(xyz_path): | ||
mopac_out = Path('mopac.out') | ||
mopac_out.unlink(missing_ok=True) | ||
|
||
atoms = read(xyz_path) | ||
get_energy(atoms, 'pm7', None) | ||
atoms_msg = get_energy(atoms, 'pm7', None) | ||
new_atoms = read_from_string(atoms_msg, 'json') | ||
assert 'energy' in new_atoms.calc.results | ||
|
||
assert not mopac_out.exists() | ||
|
||
|
||
def test_load(file_dir): | ||
config, workers, options = load_configuration(file_dir / 'example_config.py') | ||
assert config.executors[0].max_workers == 1 | ||
assert workers == 1 | ||
assert options == {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters