Skip to content

Commit 68a84b2

Browse files
committed
fix setup.cfg to not pollute top level namespace in site-packages with generic data folder
1 parent 49caa7f commit 68a84b2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
File renamed without changes.

ml_matrics/elements.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def count_elements(formulas: list) -> pd.Series:
2929

3030
# ensure all elements are present in returned Series (with count zero if they
3131
# weren't in formulas)
32-
ptable = pd.read_csv(ROOT + "/data/periodic_table.csv")
32+
ptable = pd.read_csv(ROOT + "/ml_matrics/elements.csv")
3333
# fill_value=0 required as max(NaN, any int) = NaN
3434
srs = srs.combine(pd.Series(0, index=ptable.symbol), max, fill_value=0)
3535
return srs
@@ -67,7 +67,7 @@ def ptable_elemental_prevalence(
6767
if formulas is not None:
6868
elem_counts = count_elements(formulas)
6969

70-
ptable = pd.read_csv(ROOT + "/data/periodic_table.csv")
70+
ptable = pd.read_csv(ROOT + "/ml_matrics/elements.csv")
7171
cmap = get_cmap(cmap)
7272

7373
n_rows = ptable.row.max()

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = ml-matrics
3-
version = 0.1.0
3+
version = 0.1.1
44
description = Metrics and visualizations for model performance in data-driven materials discovery
55
long_description = file: readme.md
66
long_description_content_type = text/markdown
@@ -32,7 +32,7 @@ install_requires=
3232
scikit_learn >= 0.24
3333

3434
[options.package_data]
35-
* = ../data/periodic_table.csv
35+
ml_matrics = elements.csv
3636

3737
[options.packages.find]
3838
exclude =

0 commit comments

Comments
 (0)