Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephMontoya-TRI committed May 20, 2020
2 parents bf7e44f + 83f29c2 commit d675ce2
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 101 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@


v2020.5.19
----------
* Streamlining of APIs of Agents, Campaigns, Analyzers
* Added meta-agent functionality

v2020.3.23
----------
* bugfixes related to worker and analysis
Expand Down
3 changes: 2 additions & 1 deletion camd/agent/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

class GenericGPUCB(HypothesisAgent):
"""
Generic Gaussian Process (GP) and upper confidence bound (UCB) based agent that tries to maximize a target that can
Generic Gaussian Process (GP) and upper confidence bound (UCB)
based agent that tries to maximize a target that can
be used in a batch-mode Bayesian Optimization setting.
"""

Expand Down
95 changes: 2 additions & 93 deletions camd/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,103 +22,12 @@
)
from pymatgen.analysis.structure_matcher import StructureMatcher
from pymatgen import Structure
from camd.utils.data import cache_matrio_data, filter_dataframe_by_composition
from camd.utils.data import cache_matrio_data, \
filter_dataframe_by_composition, ELEMENTS
from camd import CAMD_CACHE
from monty.os import cd
from monty.serialization import loadfn

ELEMENTS = [
"Ru",
"Re",
"Rb",
"Rh",
"Be",
"Ba",
"Bi",
"Br",
"H",
"P",
"Os",
"Ge",
"Gd",
"Ga",
"Pr",
"Pt",
"Pu",
"C",
"Pb",
"Pa",
"Pd",
"Xe",
"Pm",
"Ho",
"Hf",
"Hg",
"He",
"Mg",
"K",
"Mn",
"O",
"S",
"W",
"Zn",
"Eu",
"Zr",
"Er",
"Ni",
"Na",
"Nb",
"Nd",
"Ne",
"Np",
"Fe",
"B",
"F",
"Sr",
"N",
"Kr",
"Si",
"Sn",
"Sm",
"V",
"Sc",
"Sb",
"Se",
"Co",
"Cl",
"Ca",
"Ce",
"Cd",
"Tm",
"Cs",
"Cr",
"Cu",
"La",
"Li",
"Tl",
"Lu",
"Th",
"Ti",
"Te",
"Tb",
"Tc",
"Ta",
"Yb",
"Dy",
"I",
"U",
"Y",
"Ac",
"Ag",
"Ir",
"Al",
"As",
"Ar",
"Au",
"In",
"Mo",
]


class AnalyzerBase(abc.ABC):
def __init__(self):
Expand Down
92 changes: 92 additions & 0 deletions camd/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,98 @@ def get_oqmd_data_by_chemsys(chemsys, drop_duplicates=True):
u'V': 2.67812162528461
}

ELEMENTS = [
"Ru",
"Re",
"Rb",
"Rh",
"Be",
"Ba",
"Bi",
"Br",
"H",
"P",
"Os",
"Ge",
"Gd",
"Ga",
"Pr",
"Pt",
"Pu",
"C",
"Pb",
"Pa",
"Pd",
"Xe",
"Pm",
"Ho",
"Hf",
"Hg",
"He",
"Mg",
"K",
"Mn",
"O",
"S",
"W",
"Zn",
"Eu",
"Zr",
"Er",
"Ni",
"Na",
"Nb",
"Nd",
"Ne",
"Np",
"Fe",
"B",
"F",
"Sr",
"N",
"Kr",
"Si",
"Sn",
"Sm",
"V",
"Sc",
"Sb",
"Se",
"Co",
"Cl",
"Ca",
"Ce",
"Cd",
"Tm",
"Cs",
"Cr",
"Cu",
"La",
"Li",
"Tl",
"Lu",
"Th",
"Ti",
"Te",
"Tb",
"Tc",
"Ta",
"Yb",
"Dy",
"I",
"U",
"Y",
"Ac",
"Ag",
"Ir",
"Al",
"As",
"Ar",
"Au",
"In",
"Mo",
]


def cache_download(url, path):
"""
Expand Down
9 changes: 2 additions & 7 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def set_ver(ctx):


@task
def merge_stable(ctx):
def tag_release(ctx):
"""
Tag and merge into stable branch.
Expand All @@ -60,11 +60,6 @@ def merge_stable(ctx):
ctx.run("git commit -a -m \"v%s release\"" % (NEW_VER, ), warn=True)
ctx.run("git tag -a v%s -m \"v%s release\"" % (NEW_VER, NEW_VER))
ctx.run("git push --tags")
ctx.run("git checkout stable")
ctx.run("git pull")
ctx.run("git merge master")
ctx.run("git push")
ctx.run("git checkout master")


@task
Expand Down Expand Up @@ -131,5 +126,5 @@ def release(ctx, notest=False, nover=False):
if not notest:
ctx.run("pytest camd")
publish(ctx)
merge_stable(ctx)
tag_release(ctx)
release_github(ctx)

0 comments on commit d675ce2

Please sign in to comment.