Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds dockerfile #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Adds dockerfile #18

wants to merge 1 commit into from

Conversation

harveydevereux
Copy link

Adds a bare-bones working dockerfile as a starting point.

Things to resolve

  • Where shall it go (file currently in root and Image registry).
  • How shall we integrate into CI (some discussion Test tutorials #16) for running.
  • Do we want multiple python versions (say using micromamba) to test?
  • Do we want multiple OS images to test?

This is the output I got on a simple test.

pika@a88ea36e0241:~$ cat test.py 
from ase.build import bulk
from ase.io import read

from janus_core.calculations.md import NVT
from janus_core.helpers.stats import Stats

NaCl = bulk('NaCl', 'rocksalt', a=5.63, cubic=True)
NaCl = NaCl * (2,2,2)

cooling = NVT(
    struct=NaCl.copy(),
    arch='mace_mp',
    device='cpu',
    model_path='small',
    calc_kwargs={'default_dtype': 'float64'},
    temp_start=300.0,
    temp_end=200.0,
    temp_step=20,
    temp_time=5,
    stats_every=2,
)

cooling.run()

data = Stats('Cl32Na32-nvt-T300.0-T200.0-stats.dat')
print(data)
pika@a88ea36e0241:~$ python3 test.py 
Downloading MACE model from 'https://github.com/ACEsuit/mace-mp/releases/download/mace_mp_0/2023-12-10-mace-128-L0_energy_epoch-249.model'
Cached MACE model to /home/pika/.cache/mace/20231210mace128L0_energy_epoch249model
Using Materials Project MACE for MACECalculator with /home/pika/.cache/mace/20231210mace128L0_energy_epoch249model
Using float64 for MACECalculator, which is slower but more accurate. Recommended for geometry optimization.
/usr/local/lib/python3.10/dist-packages/ase/io/extxyz.py:311: UserWarning: Skipping unhashable information real_time
  warnings.warn('Skipping unhashable information '
contains 17 timeseries, each with 16 elements
index label units
0 # Step 
1 Real_Time s
2 Time fs
3 Epot/N eV
4 EKin/N eV
5 T K
6 ETot/N eV
7 Density g/cm^3
8 Volume A^3
9 P GPa
10 Pxx GPa
11 Pyy GPa
12 Pzz GPa
13 Pyz GPa
14 Pxz GPa
15 Pxy GPa
16 Target_T K
pika@a88ea36e0241:~$ ls
Cl32Na32-nvt-T300.0-T200.0-final.extxyz  Cl32Na32-nvt-T300.0-T200.0-traj.extxyz  test.py
Cl32Na32-nvt-T300.0-T200.0-stats.dat     janus-tutorials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant