Skip to content

Commit

Permalink
Merge pull request #149 from usnistgov/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
knc6 authored Apr 14, 2024
2 parents b31ef5e + 156dc6e commit 968a2e2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion alignn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version number."""

__version__ = "2024.3.24"
__version__ = "2024.4.10"
3 changes: 2 additions & 1 deletion alignn/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ def atom_dgl_multigraph(
max_attempts=3,
id: Optional[str] = None,
compute_line_graph: bool = True,
use_canonize: bool = False,
use_canonize: bool = True,
# use_canonize: bool = False,
use_lattice_prop: bool = False,
cutoff_extra=3.5,
):
Expand Down
21 changes: 18 additions & 3 deletions alignn/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
import torch
import sys
import json

# from jarvis.db.jsonutils import loadjson
import argparse
from jarvis.core.atoms import Atoms
from jarvis.core.graphs import Graph
from alignn.graphs import Graph
from jarvis.db.jsonutils import dumpjson
import pandas as pd

# from jarvis.core.graphs import Graph

tqdm.pandas()

"""
Expand Down Expand Up @@ -65,6 +65,18 @@
"https://figshare.com/ndownloader/files/31458712",
1,
],
"intermat_cbm": [
"https://figshare.com/ndownloader/files/45392908",
1,
],
"intermat_vbm": [
"https://figshare.com/ndownloader/files/45392914",
1,
],
"intermat_phi": [
"https://figshare.com/ndownloader/files/45392911",
1,
],
"jv_magmom_oszicar_alignn": [
"https://figshare.com/ndownloader/files/31458685",
1,
Expand Down Expand Up @@ -257,6 +269,9 @@ def get_figshare_model(model_name="jv_formation_energy_peratom_alignn"):
chks.append(i)
if "config.json" in i:
cfg = i
if "best_model.pt" in i:
tmp = i
chks.append(i)

print("Using chk file", tmp, "from ", chks)
print("Path", os.path.abspath(path))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="alignn",
version="2024.3.24",
version="2024.4.10",
author="Kamal Choudhary, Brian DeCost",
author_email="[email protected]",
description="alignn",
Expand Down

0 comments on commit 968a2e2

Please sign in to comment.