Skip to content

Commit

Permalink
Looser requirements (#496)
Browse files Browse the repository at this point in the history
* Update requirements.txt

* looser requirements
  • Loading branch information
samuelduchesne authored Sep 27, 2023
1 parent 0292290 commit e8b58d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions archetypal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import numpy as np
import pandas as pd
from pandas.io.json import json_normalize
from path import Path
from tqdm.auto import tqdm

Expand Down Expand Up @@ -366,7 +365,7 @@ def load_umi_template(json_template):
with open(json_template) as f:
dicts = json.load(f, object_pairs_hook=OrderedDict)

return [{key: json_normalize(value)} for key, value in dicts.items()]
return [{key: pd.json_normalize(value)} for key, value in dicts.items()]
else:
raise ValueError("File {} does not exist".format(json_template))

Expand Down
2 changes: 1 addition & 1 deletion archetypal/zone_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def plot_graph2d(
G = networkx.convert_node_labels_to_integers(G, label_attribute="name")
tree = networkx.dfs_tree(G)
pos = layout_function(tree, *func_args)
with plt.style.context((plt_style)):
with plt.style.context(plt_style):
if ax:
fig = plt.gcf()
else:
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ networkx~=2.6.1
eppy==0.5.60 # for stability
matplotlib~=3.4 # because of TwoSlopesNorm
pycountry~=20.7.3
scikit-learn~=1.0.2
pandas>=1.2.0,<2.0
scikit-learn
pandas>=2.0.3
numpy>=1.17
tqdm
tabulate~=0.8.9
Expand All @@ -20,4 +20,4 @@ energy-pandas
validator_collection
pint<=0.19
typing_extensions
pydantic-settings
pydantic-settings
2 changes: 1 addition & 1 deletion tests/test_zonegraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_viewgraph2d(self, G):
font_size=8,
color_nodes="core",
node_labels_to_integers=True,
plt_style="seaborn",
plt_style="ggplot",
save=False,
show=False,
filename="test",
Expand Down

0 comments on commit e8b58d8

Please sign in to comment.