Skip to content

Commit

Permalink
Minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaplaza committed Apr 26, 2023
1 parent 123b634 commit 006b6e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions navicat_volcanic/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def user_choose_1_dv(dvs, r2s, tags):


def user_choose_2_dv(ddvs, r2s, tags):
tags = np.array(tags[1:], dtype=np.str)
tags = np.array(tags[1:], dtype=np.str_)
ptags = []
for pair in itertools.combinations(tags, r=2):
ptags.append([pair[0], pair[1]])
Expand All @@ -88,8 +88,8 @@ def user_choose_2_dv(ddvs, r2s, tags):
for i, ptag in enumerate(ptags):
ok = yesno(f"Use combination of {ptag[0]} and {ptag[1]} as descriptor")
if ok:
idx1 = np.where(tags == np.str(ptag[0]))[0][0] + 1
idx2 = np.where(tags == np.str(ptag[1]))[0][0] + 1
idx1 = np.where(tags == np.str_(ptag[0]))[0][0] + 1
idx2 = np.where(tags == np.str_(ptag[1]))[0][0] + 1
return idx1, idx2
return None, None

Expand All @@ -102,7 +102,7 @@ def processargs(arguments):
epilog="Remember to cite the volcanic paper: \n \nLaplaza, R., Das, S., Wodrich, M.D. et al. Constructing and interpreting volcano plots and activity maps to navigate homogeneous catalyst landscapes. Nat Protoc (2022). \nhttps://doi.org/10.1038/s41596-022-00726-2 \n \n - and enjoy!",
)
vbuilder.add_argument(
"-version", "--version", action="version", version="%(prog)s 1.2.11"
"-version", "--version", action="version", version="%(prog)s 1.2.12"
)
runmode_arg = vbuilder.add_mutually_exclusive_group()
vbuilder.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "navicat_volcanic"
version = "1.2.11"
version = "1.2.12"
authors = [
{ name="R. Laplaza", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name="volcanic",
packages=["navicat_volcanic"],
version="1.2.11",
version="1.2.12",
description="Automated Generator of Volcano Plots",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 006b6e2

Please sign in to comment.