Skip to content

Commit 6733a9b

Browse files
committed
Check conda
1 parent e0419b2 commit 6733a9b

File tree

4 files changed

+383
-15
lines changed

4 files changed

+383
-15
lines changed

.github/workflows/action_build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ jobs:
2323

2424
- name: Install requirements
2525
run: |
26+
find . -type f > before_test_files.txt
2627
pip install --upgrade pip
2728
pip install pycodestyle flake8 pydocstyle
2829
flake8 --ignore E203,W503 --exclude=examples,tests --statistics --count --exit-zero jarvis
2930
pycodestyle --ignore E203,W503 --exclude=examples,testfiles jarvis
3031
pydocstyle --match-dir=core --match-dir=io --match-dir=io --match-dir=ai --match-dir=analysis --match-dir=db --match-dir=tasks --count jarvis
31-
32+
3233
#python setup.py develop
3334
#pip install --upgrade --upgrade-strategy eager -r dev-requirements.txt -e .
3435
#conda install -c ambermd pytraj
35-
pip install numpy scipy matplotlib
36-
pip install -r dev-requirements.txt
36+
conda install pandas numpy matplotlib --quiet
37+
conda env create -f environment.yml
38+
#pip install numpy scipy matplotlib
39+
#pip install -r dev-requirements.txt
3740
pip install -e .
3841
echo 'CONDA LIST'
3942
conda list
@@ -49,6 +52,11 @@ jobs:
4952
coverage report -m -i
5053
codecov
5154
codecov --token="b61081a0-39de-44a8-8a9c-97d4be82af6d"
55+
find . -type f > after_test_files.txt
56+
#comm -13 <(sort before_test_files.txt) <(sort after_test_files.txt) > new_files.txt
57+
#cat new_files.txt | xargs rm
58+
#rm before_test_files.txt after_test_files.txt new_files.txt
59+
5260
# git clone https://github.com/QEF/q-e.git
5361
# cd q-e
5462
# ./configure
@@ -149,4 +157,4 @@ jobs:
149157
# # git clone https://github.com/QEF/q-e.git
150158
# # cd q-e
151159
# # ./configure
152-
# # make pw
160+
# # make pw

environment.yml

Lines changed: 274 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
1+
name: my_jarvis
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- _libgcc_mutex=0.1=conda_forge
7+
- _openmp_mutex=4.5=2_gnu
8+
- alsa-lib=1.2.11=hd590300_1
9+
- archspec=0.2.2=pyhd8ed1ab_0
10+
- attr=2.5.1=h166bdaf_1
11+
- boltons=23.1.1=pyhd8ed1ab_0
12+
- brotli=1.1.0=hd590300_1
13+
- brotli-bin=1.1.0=hd590300_1
14+
- brotli-python=1.1.0=py310hc6cd4ac_1
15+
- bzip2=1.0.8=hd590300_5
16+
- c-ares=1.24.0=hd590300_0
17+
- ca-certificates=2024.2.2=hbcca054_0
18+
- cairo=1.18.0=h3faef2a_0
19+
- certifi=2024.2.2=pyhd8ed1ab_0
20+
- cffi=1.16.0=py310h2fee648_0
21+
- charset-normalizer=3.3.2=pyhd8ed1ab_0
22+
- colorama=0.4.6=pyhd8ed1ab_0
23+
- conda=23.11.0=py310hff52083_1
24+
- conda-libmamba-solver=23.12.0=pyhd8ed1ab_0
25+
- conda-package-handling=2.2.0=pyh38be061_0
26+
- conda-package-streaming=0.9.0=pyhd8ed1ab_0
27+
- contourpy=1.2.0=py310hd41b1e2_0
28+
- cycler=0.12.1=pyhd8ed1ab_0
29+
- dbus=1.13.6=h5008d03_3
30+
- distro=1.8.0=pyhd8ed1ab_0
31+
- expat=2.6.2=h59595ed_0
32+
- fmt=10.1.1=h00ab1b0_1
33+
- font-ttf-dejavu-sans-mono=2.37=hab24e00_0
34+
- font-ttf-inconsolata=3.000=h77eed37_0
35+
- font-ttf-source-code-pro=2.038=h77eed37_0
36+
- font-ttf-ubuntu=0.83=h77eed37_1
37+
- fontconfig=2.14.2=h14ed4e7_0
38+
- fonts-conda-ecosystem=1=0
39+
- fonts-conda-forge=1=0
40+
- fonttools=4.50.0=py310h2372a71_0
41+
- freetype=2.12.1=h267a509_2
42+
- gettext=0.21.1=h27087fc_0
43+
- glib=2.80.0=hf2295e7_0
44+
- glib-tools=2.80.0=hde27a5a_0
45+
- graphite2=1.3.13=h58526e2_1001
46+
- gst-plugins-base=1.22.9=h8e1006c_0
47+
- gstreamer=1.22.9=h98fc4e7_0
48+
- harfbuzz=8.3.0=h3d44ed6_0
49+
- icu=73.2=h59595ed_0
50+
- idna=3.6=pyhd8ed1ab_0
51+
- jsonpatch=1.33=pyhd8ed1ab_0
52+
- jsonpointer=2.4=py310hff52083_3
53+
- keyutils=1.6.1=h166bdaf_0
54+
- kiwisolver=1.4.5=py310hd41b1e2_1
55+
- krb5=1.21.2=h659d440_0
56+
- lame=3.100=h166bdaf_1003
57+
- lcms2=2.16=hb7c19ff_0
58+
- ld_impl_linux-64=2.40=h41732ed_0
59+
- lerc=4.0.0=h27087fc_0
60+
- libarchive=3.7.2=h2aa1ff5_1
61+
- libblas=3.9.0=21_linux64_openblas
62+
- libbrotlicommon=1.1.0=hd590300_1
63+
- libbrotlidec=1.1.0=hd590300_1
64+
- libbrotlienc=1.1.0=hd590300_1
65+
- libcap=2.69=h0f662aa_0
66+
- libcblas=3.9.0=21_linux64_openblas
67+
- libclang=15.0.7=default_hb11cfb5_4
68+
- libclang13=15.0.7=default_ha2b6cf4_4
69+
- libcups=2.3.3=h4637d8d_4
70+
- libcurl=8.5.0=hca28451_0
71+
- libdeflate=1.19=hd590300_0
72+
- libedit=3.1.20191231=he28a2e2_2
73+
- libev=4.33=hd590300_2
74+
- libevent=2.1.12=hf998b51_1
75+
- libexpat=2.6.2=h59595ed_0
76+
- libffi=3.4.2=h7f98852_5
77+
- libflac=1.4.3=h59595ed_0
78+
- libgcc-ng=13.2.0=h807b86a_3
79+
- libgcrypt=1.10.3=hd590300_0
80+
- libgfortran-ng=13.2.0=h69a702a_5
81+
- libgfortran5=13.2.0=ha4646dd_5
82+
- libglib=2.80.0=hf2295e7_0
83+
- libgomp=13.2.0=h807b86a_3
84+
- libgpg-error=1.48=h71f35ed_0
85+
- libiconv=1.17=hd590300_2
86+
- libjpeg-turbo=3.0.0=hd590300_1
87+
- liblapack=3.9.0=21_linux64_openblas
88+
- libllvm15=15.0.7=hb3ce162_4
89+
- libmamba=1.5.5=had39da4_0
90+
- libmambapy=1.5.5=py310h39ff949_0
91+
- libnghttp2=1.58.0=h47da74e_1
92+
- libnsl=2.0.1=hd590300_0
93+
- libogg=1.3.4=h7f98852_1
94+
- libopenblas=0.3.26=pthreads_h413a1c8_0
95+
- libopus=1.3.1=h7f98852_1
96+
- libpng=1.6.43=h2797004_0
97+
- libpq=16.2=h33b98f1_1
98+
- libsndfile=1.2.2=hc60ed4a_1
99+
- libsolv=0.7.27=hfc55251_0
100+
- libsqlite=3.44.2=h2797004_0
101+
- libssh2=1.11.0=h0841786_0
102+
- libstdcxx-ng=13.2.0=h7e041cc_3
103+
- libsystemd0=255=h3516f8a_1
104+
- libtiff=4.6.0=ha9c0a0a_2
105+
- libuuid=2.38.1=h0b41bf4_0
106+
- libvorbis=1.3.7=h9c3ff4c_0
107+
- libwebp-base=1.3.2=hd590300_0
108+
- libxcb=1.15=h0b41bf4_0
109+
- libxkbcommon=1.6.0=hd429924_1
110+
- libxml2=2.12.3=h232c23b_0
111+
- libzlib=1.2.13=hd590300_5
112+
- lz4-c=1.9.4=hcb278e6_0
113+
- lzo=2.10=h516909a_1000
114+
- mamba=1.5.5=py310h51d5547_0
115+
- matplotlib=3.8.3=py310hff52083_0
116+
- matplotlib-base=3.8.3=py310h62c0568_0
117+
- menuinst=2.0.1=py310hff52083_0
118+
- mpg123=1.32.4=h59595ed_0
119+
- munkres=1.1.4=pyh9f0ad1d_0
120+
- mysql-common=8.0.33=hf1915f5_6
121+
- mysql-libs=8.0.33=hca2cd23_6
122+
- ncurses=6.4=h59595ed_2
123+
- nspr=4.35=h27087fc_0
124+
- nss=3.97=h1d7d5a4_0
125+
- openjpeg=2.5.2=h488ebb8_0
126+
- openssl=3.2.1=hd590300_1
127+
- packaging=23.2=pyhd8ed1ab_0
128+
- pandas=2.2.1=py310hcc13569_0
129+
- pcre2=10.43=hcad00b1_0
130+
- pillow=10.2.0=py310h01dd4db_0
131+
- pip=23.3.2=pyhd8ed1ab_0
132+
- pixman=0.43.2=h59595ed_0
133+
- platformdirs=4.1.0=pyhd8ed1ab_0
134+
- ply=3.11=py_1
135+
- pthread-stubs=0.4=h36c2ea0_1001
136+
- pulseaudio-client=16.1=hb77b528_5
137+
- pybind11-abi=4=hd8ed1ab_3
138+
- pycosat=0.6.6=py310h2372a71_0
139+
- pycparser=2.21=pyhd8ed1ab_0
140+
- pyparsing=3.1.2=pyhd8ed1ab_0
141+
- pyqt=5.15.9=py310h04931ad_5
142+
- pyqt5-sip=12.12.2=py310hc6cd4ac_5
143+
- pysocks=1.7.1=pyha2e5f31_6
144+
- python=3.10.13=hd12c33a_0_cpython
145+
- python-tzdata=2024.1=pyhd8ed1ab_0
146+
- python_abi=3.10=4_cp310
147+
- pytz=2024.1=pyhd8ed1ab_0
148+
- qt-main=5.15.8=h450f30e_18
149+
- readline=8.2=h8228510_1
150+
- reproc=14.2.4.post0=hd590300_1
151+
- reproc-cpp=14.2.4.post0=h59595ed_1
152+
- ruamel.yaml=0.18.5=py310h2372a71_0
153+
- ruamel.yaml.clib=0.2.7=py310h2372a71_2
154+
- setuptools=68.2.2=pyhd8ed1ab_0
155+
- sip=6.7.12=py310hc6cd4ac_0
156+
- six=1.16.0=pyh6c4a22f_0
157+
- tk=8.6.13=noxft_h4845f30_101
158+
- toml=0.10.2=pyhd8ed1ab_0
159+
- tomli=2.0.1=pyhd8ed1ab_0
160+
- tornado=6.4=py310h2372a71_0
161+
- tqdm=4.66.1=pyhd8ed1ab_0
162+
- truststore=0.8.0=pyhd8ed1ab_0
163+
- tzdata=2023c=h71feb2d_0
164+
- unicodedata2=15.1.0=py310h2372a71_0
165+
- wheel=0.42.0=pyhd8ed1ab_0
166+
- xcb-util=0.4.0=hd590300_1
167+
- xcb-util-image=0.4.0=h8ee46fc_1
168+
- xcb-util-keysyms=0.4.0=h8ee46fc_1
169+
- xcb-util-renderutil=0.3.9=hd590300_1
170+
- xcb-util-wm=0.4.1=h8ee46fc_1
171+
- xkeyboard-config=2.41=hd590300_0
172+
- xorg-kbproto=1.0.7=h7f98852_1002
173+
- xorg-libice=1.1.1=hd590300_0
174+
- xorg-libsm=1.2.4=h7391055_0
175+
- xorg-libx11=1.8.7=h8ee46fc_0
176+
- xorg-libxau=1.0.11=hd590300_0
177+
- xorg-libxdmcp=1.1.3=h7f98852_0
178+
- xorg-libxext=1.3.4=h0b41bf4_2
179+
- xorg-libxrender=0.9.11=hd590300_0
180+
- xorg-renderproto=0.11.1=h7f98852_1002
181+
- xorg-xextproto=7.3.0=h0b41bf4_1003
182+
- xorg-xf86vidmodeproto=2.3.1=h7f98852_1002
183+
- xorg-xproto=7.0.31=h7f98852_1007
184+
- xz=5.2.6=h166bdaf_0
185+
- yaml-cpp=0.8.0=h59595ed_0
186+
- zlib=1.2.13=hd590300_5
187+
- zstandard=0.22.0=py310h1275a96_0
188+
- zstd=1.5.5=hfc55251_0
189+
- pip:
190+
- annotated-types==0.6.0
191+
- appdirs==1.4.4
192+
- autograd==1.6.2
193+
- babel==2.14.0
194+
- bokeh==2.4.2
195+
- cif2cell==2.1.0
196+
- click==8.1.7
197+
- coverage==7.4.4
198+
- cryptography==42.0.5
199+
- dgl==2.1.0
200+
- dill==0.3.8
201+
- exceptiongroup==1.2.0
202+
- filelock==3.13.1
203+
- fsspec==2024.3.1
204+
- future==1.0.0
205+
- ghp-import==2.1.0
206+
- h5py==3.10.0
207+
- iniconfig==2.0.0
208+
- jinja2==3.1.3
209+
- joblib==1.3.2
210+
- lightgbm==3.3.1
211+
- markdown==3.6
212+
- markupsafe==2.1.5
213+
- mergedeep==1.3.4
214+
- mkdocs==1.5.3
215+
- mkdocs-material==9.5.14
216+
- mkdocs-material-extensions==1.3.1
217+
- mpmath==1.3.0
218+
- networkx==3.2.1
219+
- ntlm-auth==1.5.0
220+
- numpy==1.23.5
221+
- nvidia-cublas-cu12==12.1.3.1
222+
- nvidia-cuda-cupti-cu12==12.1.105
223+
- nvidia-cuda-nvrtc-cu12==12.1.105
224+
- nvidia-cuda-runtime-cu12==12.1.105
225+
- nvidia-cudnn-cu12==8.9.2.26
226+
- nvidia-cufft-cu12==11.0.2.54
227+
- nvidia-curand-cu12==10.3.2.106
228+
- nvidia-cusolver-cu12==11.4.5.107
229+
- nvidia-cusparse-cu12==12.1.0.106
230+
- nvidia-nccl-cu12==2.19.3
231+
- nvidia-nvjitlink-cu12==12.4.99
232+
- nvidia-nvtx-cu12==12.1.105
233+
- paginate==0.5.6
234+
- pathspec==0.12.1
235+
- pbr==6.0.0
236+
- pennylane==0.14.1
237+
- phonopy==2.10.0
238+
- pluggy==1.4.0
239+
- psutil==5.9.8
240+
- pycifrw==4.4.6
241+
- pydantic==2.6.4
242+
- pydantic-core==2.16.3
243+
- pygments==2.17.2
244+
- pymdown-extensions==10.7.1
245+
- pytest==8.1.1
246+
- python-dateutil==2.8.2
247+
- pyyaml==6.0.1
248+
- pyyaml-env-tag==0.1
249+
- qiskit==0.41.1
250+
- qiskit-aer==0.11.2
251+
- qiskit-ibmq-provider==0.20.1
252+
- qiskit-terra==0.23.2
253+
- regex==2023.12.25
254+
- requests==2.28.2
255+
- requests-ntlm==1.1.0
256+
- rustworkx==0.14.2
257+
- scikit-learn==1.4.1.post1
258+
- scipy==1.12.0
259+
- semantic-version==2.6.0
260+
- spglib==2.3.1
261+
- stevedore==5.2.0
262+
- symengine==0.11.0
263+
- sympy==1.12
264+
- threadpoolctl==3.3.0
265+
- toolz==0.12.1
266+
- torch==2.2.1
267+
- torchdata==0.7.1
268+
- triton==2.2.0
269+
- typing-extensions==4.10.0
270+
- urllib3==1.26.18
271+
- watchdog==4.0.0
272+
- websocket-client==1.5.3
273+
- websockets==10.4
274+
- xmltodict==0.13.0

jarvis/core/graphs.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module to generate networkx graphs."""
2+
23
from jarvis.core.atoms import get_supercell_dims
34
from jarvis.core.specie import Specie
45
from jarvis.core.utils import random_colors
@@ -11,18 +12,16 @@
1112
# from jarvis.core.atoms import Atoms
1213
from collections import defaultdict
1314
from typing import List, Tuple, Sequence, Optional
14-
15-
try:
16-
import torch
17-
from tqdm import tqdm
18-
import dgl
19-
except Exception as exp:
20-
print("dgl/torch/tqdm is not installed.", exp)
21-
pass
15+
import torch
16+
from tqdm import tqdm
17+
import dgl
2218

2319

2420
def canonize_edge(
25-
src_id, dst_id, src_image, dst_image,
21+
src_id,
22+
dst_id,
23+
src_image,
24+
dst_image,
2625
):
2726
"""Compute canonical edge representation.
2827
@@ -46,7 +45,11 @@ def canonize_edge(
4645

4746

4847
def nearest_neighbor_edges(
49-
atoms=None, cutoff=8, max_neighbors=12, id=None, use_canonize=False,
48+
atoms=None,
49+
cutoff=8,
50+
max_neighbors=12,
51+
id=None,
52+
use_canonize=False,
5053
):
5154
"""Construct k-NN edge list."""
5255
# returns List[List[Tuple[site, distance, index, image]]]
@@ -118,7 +121,8 @@ def nearest_neighbor_edges(
118121

119122

120123
def build_undirected_edgedata(
121-
atoms=None, edges={},
124+
atoms=None,
125+
edges={},
122126
):
123127
"""Build undirected graph data from edge set.
124128

0 commit comments

Comments
 (0)