Skip to content

Commit 9fdab8c

Browse files
committed
mv {mb->matbench}_discovery
1 parent d6c9a42 commit 9fdab8c

23 files changed

+39
-39
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929

3030
- name: Run tests
3131
id: tests
32-
run: pytest --durations 0 --cov mb_discovery
32+
run: pytest --durations 0 --cov matbench_discovery

data/wbm/fetch_process_wbm_dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
from pymatviz import density_scatter
2121
from tqdm import tqdm
2222

23-
from mb_discovery import ROOT
24-
from mb_discovery.energy import get_e_form_per_atom
23+
from matbench_discovery import ROOT
24+
from matbench_discovery.energy import get_e_form_per_atom
2525

2626
try:
2727
import gdown
File renamed without changes.

mb_discovery/build_phase_diagram.py matbench_discovery/build_phase_diagram.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from pymatgen.entries.computed_entries import ComputedEntry
1313
from pymatgen.ext.matproj import MPRester
1414

15-
from mb_discovery import ROOT
16-
from mb_discovery.energy import get_e_form_per_atom, get_elemental_ref_entries
15+
from matbench_discovery import ROOT
16+
from matbench_discovery.energy import get_e_form_per_atom, get_elemental_ref_entries
1717

1818
today = f"{datetime.now():%Y-%m-%d}"
1919
module_dir = os.path.dirname(__file__)

mb_discovery/energy.py matbench_discovery/energy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pymatgen.util.typing import EntryLike
88
from tqdm import tqdm
99

10-
from mb_discovery import ROOT
10+
from matbench_discovery import ROOT
1111

1212

1313
def get_elemental_ref_entries(

mb_discovery/plot_scripts/hist_classified_stable_as_func_of_hull_dist.py matbench_discovery/plot_scripts/hist_classified_stable_as_func_of_hull_dist.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import pandas as pd
55

6-
from mb_discovery import ROOT
7-
from mb_discovery.plot_scripts import df_wbm
8-
from mb_discovery.plots import (
6+
from matbench_discovery import ROOT
7+
from matbench_discovery.plot_scripts import df_wbm
8+
from matbench_discovery.plots import (
99
StabilityCriterion,
1010
WhichEnergy,
1111
hist_classified_stable_as_func_of_hull_dist,

mb_discovery/plot_scripts/hist_classified_stable_as_func_of_hull_dist_batches.py matbench_discovery/plot_scripts/hist_classified_stable_as_func_of_hull_dist_batches.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import pandas as pd
55
import pymatviz
66

7-
from mb_discovery import ROOT
8-
from mb_discovery.plot_scripts import df_wbm
9-
from mb_discovery.plots import (
7+
from matbench_discovery import ROOT
8+
from matbench_discovery.plot_scripts import df_wbm
9+
from matbench_discovery.plots import (
1010
StabilityCriterion,
1111
WhichEnergy,
1212
hist_classified_stable_as_func_of_hull_dist,

mb_discovery/plot_scripts/precision_recall_vs_calc_count.py matbench_discovery/plot_scripts/precision_recall_vs_calc_count.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import pandas as pd
55
from sklearn.metrics import f1_score
66

7-
from mb_discovery import ROOT
8-
from mb_discovery.plot_scripts import df_wbm
9-
from mb_discovery.plots import StabilityCriterion, precision_recall_vs_calc_count
7+
from matbench_discovery import ROOT
8+
from matbench_discovery.plot_scripts import df_wbm
9+
from matbench_discovery.plots import StabilityCriterion, precision_recall_vs_calc_count
1010

1111
__author__ = "Rhys Goodall, Janosh Riebesell"
1212

mb_discovery/plot_scripts/rolling_mae_vs_hull_dist.py matbench_discovery/plot_scripts/rolling_mae_vs_hull_dist.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import pandas as pd
55

6-
from mb_discovery import ROOT
7-
from mb_discovery.plot_scripts import df_wbm
8-
from mb_discovery.plots import rolling_mae_vs_hull_dist
6+
from matbench_discovery import ROOT
7+
from matbench_discovery.plot_scripts import df_wbm
8+
from matbench_discovery.plots import rolling_mae_vs_hull_dist
99

1010
__author__ = "Rhys Goodall, Janosh Riebesell"
1111
__date__ = "2022-06-18"

mb_discovery/plot_scripts/rolling_mae_vs_hull_dist_wbm_batches.py matbench_discovery/plot_scripts/rolling_mae_vs_hull_dist_wbm_batches.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import pandas as pd
55

6-
from mb_discovery import ROOT
7-
from mb_discovery.plot_scripts import df_wbm
8-
from mb_discovery.plots import plt, rolling_mae_vs_hull_dist
6+
from matbench_discovery import ROOT
7+
from matbench_discovery.plot_scripts import df_wbm
8+
from matbench_discovery.plots import plt, rolling_mae_vs_hull_dist
99

1010
__author__ = "Rhys Goodall, Janosh Riebesell"
1111
__date__ = "2022-06-18"
File renamed without changes.
File renamed without changes.

models/bowsr/join_bowsr_results.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pymatgen.core import Structure
1111
from tqdm import tqdm
1212

13-
from mb_discovery import ROOT, as_dict_handler
13+
from matbench_discovery import ROOT, as_dict_handler
1414

1515
__author__ = "Janosh Riebesell"
1616
__date__ = "2022-09-22"

models/bowsr/slurm_array_bowsr_wbm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
from maml.apps.bowsr.optimizer import BayesianOptimizer
1515
from tqdm import tqdm
1616

17-
from mb_discovery import ROOT, as_dict_handler
18-
from mb_discovery.slurm import slurm_submit_python
17+
from matbench_discovery import ROOT, as_dict_handler
18+
from matbench_discovery.slurm import slurm_submit_python
1919

2020
__author__ = "Janosh Riebesell"
2121
__date__ = "2022-08-15"

models/m3gnet/eda_wbm_pre_vs_post_m3gnet_relaxation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pymatviz.utils import add_identity_line
1010
from sklearn.metrics import r2_score
1111

12-
from mb_discovery import ROOT
12+
from matbench_discovery import ROOT
1313

1414
__author__ = "Janosh Riebesell"
1515
__date__ = "2022-06-18"

models/m3gnet/join_m3gnet_relax_results.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from pymatgen.core import Structure
1111
from tqdm import tqdm
1212

13-
from mb_discovery import ROOT, as_dict_handler
14-
from mb_discovery.energy import get_e_form_per_atom
13+
from matbench_discovery import ROOT, as_dict_handler
14+
from matbench_discovery.energy import get_e_form_per_atom
1515

1616
__author__ = "Janosh Riebesell"
1717
__date__ = "2022-08-16"

models/m3gnet/slurm_array_m3gnet_relax_wbm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from m3gnet.models import Relaxer
1414
from tqdm import tqdm
1515

16-
from mb_discovery import ROOT, as_dict_handler
17-
from mb_discovery.slurm import slurm_submit_python
16+
from matbench_discovery import ROOT, as_dict_handler
17+
from matbench_discovery.slurm import slurm_submit_python
1818

1919
"""
2020
To slurm submit this file, run:

models/wrenformer/mp/get_mp_energies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from mp_api.client import MPRester
88
from tqdm import tqdm
99

10-
from mb_discovery import ROOT
10+
from matbench_discovery import ROOT
1111

1212
"""
1313
Download all MP formation and above hull energies on 2022-08-13.

models/wrenformer/slurm_array_wrenformer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from aviary.wrenformer.train import train_wrenformer_on_df
66

7-
from mb_discovery import ROOT
8-
from mb_discovery.slurm import slurm_submit_python
7+
from matbench_discovery import ROOT
8+
from matbench_discovery.slurm import slurm_submit_python
99

1010
"""
1111
Train a Wrenformer

tests/test_energy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Entry,
1212
)
1313

14-
from mb_discovery.energy import get_e_form_per_atom, get_elemental_ref_entries
14+
from matbench_discovery.energy import get_e_form_per_atom, get_elemental_ref_entries
1515

1616
dummy_struct = Structure(
1717
lattice=Lattice.cubic(5),

tests/test_init.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
from typing import Any
55

6-
from mb_discovery import PKG_DIR, ROOT, as_dict_handler, chunks
6+
from matbench_discovery import PKG_DIR, ROOT, as_dict_handler, chunks
77

88

99
def test_has_root_pkg_dir() -> None:

tests/test_plots.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import pandas as pd
88
import pytest
99

10-
from mb_discovery import ROOT
11-
from mb_discovery.plot_scripts import df_wbm
12-
from mb_discovery.plots import (
10+
from matbench_discovery import ROOT
11+
from matbench_discovery.plot_scripts import df_wbm
12+
from matbench_discovery.plots import (
1313
StabilityCriterion,
1414
hist_classified_stable_as_func_of_hull_dist,
1515
precision_recall_vs_calc_count,

tests/test_slurm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pytest
66
from pytest import CaptureFixture
77

8-
from mb_discovery.slurm import _get_calling_file_path, slurm_submit_python
8+
from matbench_discovery.slurm import _get_calling_file_path, slurm_submit_python
99

1010

1111
@pytest.mark.parametrize("py_file_path", [None, "path/to/file.py"])
@@ -27,7 +27,7 @@ def test_slurm_submit(capsys: CaptureFixture[str], py_file_path: str | None) ->
2727

2828
# check slurm_submit_python() prints cmd and calls subprocess.run() in submit mode
2929
with pytest.raises(SystemExit), patch("sys.argv", ["slurm-submit"]), patch(
30-
"mb_discovery.slurm.subprocess.run"
30+
"matbench_discovery.slurm.subprocess.run"
3131
) as mock_subprocess_run:
3232
slurm_submit_python(**kwargs) # type: ignore
3333

0 commit comments

Comments
 (0)