Skip to content

Commit

Permalink
Change numpy dependecy to <2.0.0 due to errors in other dependent pac…
Browse files Browse the repository at this point in the history
…kages
  • Loading branch information
breimanntools committed Jun 17, 2024
1 parent 1a3ee08 commit 4cddaf7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aaanalysis/_utils/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def plot_legend_(ax=None, dict_color=None, list_cat=None, labels=None,
handles = [_create_marker(dict_color[cat], labels[i], marker[i], marker_size[i],
lw, edgecolor, linestyle[i], hatch[i], hatchcolor)
for i, cat in enumerate(list_cat)]
legend = ax.legend(handles=handles, labels=labels, **args)
legend = ax.legend(handles=handles, **args)
if title_align_left:
legend._legend_box.align = "left"
return ax
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Jinja2 = "^3.1.2"
joblib = "^1.2.0"
kiwisolver = "^1.4.4"
matplotlib = "^3.5.3"
numpy = "^1.24.4"
numpy = ">=1.24.4,<2.0.0"
openpyxl = "^3.0.10"
packaging = "^21.3"
pandas = "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Jinja2>=3.1.2
joblib>=1.2.0
kiwisolver>=1.4.4
matplotlib>=3.5.3
numpy>=1.24.4
numpy>=1.24.4,<2.0.0
openpyxl>=3.0.10
packaging>=21.3
pandas>=2.0.0
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/plotting_tests/test_plot_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def test_plot_set_legend_n_cols(self, n_cols):
def test_plot_set_legend_custom_labels(self, labels):
fig, ax = plt.subplots()
labels = list(set([x.replace("_", "X") for x in labels if len(x) > 1]))
# Use the plot_legend function to create the legend
ax = aa.plot_legend(ax=ax, dict_color={label: "red" for label in labels})
# Extract and verify the legend labels
legend_labels = [text.get_text() for text in ax.get_legend().get_texts()]
assert set(legend_labels) == set(labels)

Expand Down
2 changes: 1 addition & 1 deletion tests/valid_path_out.fasta
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>DB001Bid1BinfoBinfoBinfo
>DB001KATCGKinfoKinfo
ATCG

0 comments on commit 4cddaf7

Please sign in to comment.