Skip to content

Commit

Permalink
Use canonize default and pretrained with best_model.pt
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Apr 14, 2024
1 parent 99c30a5 commit bbf4020
Show file tree
Hide file tree
Showing 4 changed files with 9 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
8 changes: 5 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 @@ -257,6 +257,8 @@ 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

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 bbf4020

Please sign in to comment.