Skip to content

Commit

Permalink
Merge pull request autoatml#161 from naik-aakash/include_autoplex_docker
Browse files Browse the repository at this point in the history
Include autoplex docker
  • Loading branch information
JaGeo authored Oct 22, 2024
2 parents 2d3cd15 + b8cb69a commit a3be095
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,15 @@ RUN curl -fsSL https://www.mtg.msm.cam.ac.uk/files/airss-0.9.3.tgz -o /opt/airss

# Add Buildcell to PATH
ENV PATH="${PATH}:/opt/airss/bin"

# Set the working directory
WORKDIR /workspace

# Copy the current directory contents into the container at /workspace
COPY . /workspace

# Install autoplex
RUN uv pip install .[strict,docs]

# Set the default command to bash
CMD ["bash"]
4 changes: 2 additions & 2 deletions tests/rss/test_buildcell_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_output_from_scratch(memory_jobstore):
output_file_name='random_structs.extxyz',
buildcell_options={'VARVOL': 20,
'SYMMOPS':'1-2'},
num_processes=4).make()
num_processes=2).make()

responses = run_locally(job, ensure_success=True, create_folders=True, store=memory_jobstore)
assert Path(job.output.resolve(memory_jobstore)).exists()
Expand All @@ -83,7 +83,7 @@ def test_output_from_cell_seed(test_dir, memory_jobstore):
test_files_dir = test_dir / "data/SiO2.cell"
job = RandomizedStructure(struct_number=3,
cell_seed_path=test_files_dir,
num_processes=3).make()
num_processes=2).make()

responses = run_locally(job, ensure_success=True, create_folders=True, store=memory_jobstore)
assert Path(job.output.resolve(memory_jobstore)).exists()
Expand Down
10 changes: 5 additions & 5 deletions tests/rss/test_rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_gap_rss(test_dir, memory_jobstore):
stress_tol=0.1,
Hookean_repul=False,
write_traj=True,
num_processes_rss=4,
num_processes_rss=2,
device="cpu",
isol_es={14: -0.84696938})

Expand Down Expand Up @@ -77,7 +77,7 @@ def test_gap_rss(test_dir, memory_jobstore):
# stress_tol=0.1,
# Hookean_repul=False,
# write_traj=True,
# num_processes_rss=4,
# num_processes_rss=2,
# device="cpu",
# isol_es={14: -0.84696938})

Expand Down Expand Up @@ -123,7 +123,7 @@ def test_nequip_rss(test_dir, memory_jobstore):
stress_tol=0.1,
Hookean_repul=False,
write_traj=True,
num_processes_rss=4,
num_processes_rss=2,
device="cpu",
isol_es={14: -0.84696938})

Expand Down Expand Up @@ -169,7 +169,7 @@ def test_m3gnet_rss(test_dir, memory_jobstore):
stress_tol=0.1,
Hookean_repul=False,
write_traj=True,
num_processes_rss=4,
num_processes_rss=2,
device="cpu",
isol_es={14: -0.84696938})

Expand Down Expand Up @@ -215,7 +215,7 @@ def test_mace_rss(test_dir, memory_jobstore):
stress_tol=0.1,
Hookean_repul=False,
write_traj=True,
num_processes_rss=4,
num_processes_rss=2,
device="cpu",
isol_es={14: -0.84696938})

Expand Down

0 comments on commit a3be095

Please sign in to comment.