Skip to content

Commit ed45fd7

Browse files
committed
Update deps and fix evaluation.py for new pandas
1 parent fc7dc52 commit ed45fd7

File tree

4 files changed

+51
-49
lines changed

4 files changed

+51
-49
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
channels: conda-forge
6666
channel-priority: strict
6767
auto-update-conda: true
68-
use-only-tar-bz2: true
6968

7069
- name: Fix windows .profile
7170
if: steps.cache.outputs.cache-hit != 'true' && matrix.os == 'windows-latest'

evaluation.py

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def run_edges_performance(args):
270270

271271
df = pd.DataFrame(results)
272272
df.length /= MB
273-
dfg = df.groupby(df.length).mean()
273+
dfg = df.groupby(df.length).mean(numeric_only=True)
274274
# print(dfg.estimated_anc_edges.describe())
275275
print(dfg)
276276

@@ -595,7 +595,7 @@ def run_ancestor_properties(args):
595595
progress.close()
596596

597597
df = pd.DataFrame(results)
598-
dfg = df.groupby(df.length).mean()
598+
dfg = df.groupby(df.length).mean(numeric_only=True)
599599
print(dfg)
600600

601601
name_format = os.path.join(
@@ -1736,15 +1736,18 @@ def run_node_degree(args):
17361736
path_compression=path_compression,
17371737
)
17381738
degree, depth = get_node_degree_by_depth(estimated_ancestors_ts)
1739-
df = df.append(
1740-
pd.DataFrame(
1741-
{
1742-
"degree": degree,
1743-
"depth": depth,
1744-
"type": "estimated",
1745-
"path_compression": path_compression,
1746-
}
1747-
)
1739+
df = pd.concat(
1740+
[
1741+
df,
1742+
pd.DataFrame(
1743+
{
1744+
"degree": degree,
1745+
"depth": depth,
1746+
"type": "estimated",
1747+
"path_compression": path_compression,
1748+
}
1749+
),
1750+
]
17481751
)
17491752
exact_ancestors_ts = run_infer(
17501753
smc_ts,
@@ -1753,15 +1756,18 @@ def run_node_degree(args):
17531756
path_compression=path_compression,
17541757
)
17551758
degree, depth = get_node_degree_by_depth(exact_ancestors_ts)
1756-
df = df.append(
1757-
pd.DataFrame(
1758-
{
1759-
"degree": degree,
1760-
"depth": depth,
1761-
"type": "exact",
1762-
"path_compression": path_compression,
1763-
}
1764-
)
1759+
df = pd.concat(
1760+
[
1761+
df,
1762+
pd.DataFrame(
1763+
{
1764+
"degree": degree,
1765+
"depth": depth,
1766+
"type": "exact",
1767+
"path_compression": path_compression,
1768+
}
1769+
),
1770+
]
17651771
)
17661772

17671773
name_format = os.path.join(
Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
attrs==21.4.0
2-
build==0.8.0
3-
codecov==2.1.12
4-
colorama==0.4.4
5-
daiquiri==3.0.1
6-
h5py==3.6.0
7-
humanize==4.1.0
8-
lmdb==1.3.0
9-
matplotlib==3.4.1
10-
meson==0.62.0
11-
msprime==1.1.1
12-
numpy==1.21.6
13-
pandas==1.2.5
14-
pytest==7.1.2
15-
pytest-cov==3.0.0
16-
pytest-xdist==2.5.0
17-
seaborn==0.11.2
18-
setuptools==65.4.1
19-
sortedcontainers==2.4.0
20-
tqdm==4.64.0
21-
tskit==0.5.3
22-
twine==4.0.1
23-
zarr==2.11.3
1+
build==1.2.1
2+
colorama==0.4.6
3+
daiquiri==3.2.5.1
4+
humanize==4.10.0
5+
lmdb==1.5.1
6+
matplotlib==3.9.1
7+
meson==1.5.0
8+
msprime==1.3.2
9+
pytest==8.2.2
10+
pytest-cov==5.0.0
11+
seaborn==0.13.2
12+
sgkit[vcf]==0.9.0
13+
tskit==0.5.8
14+
tqdm==4.66.4
15+
twine==5.1.1
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
h5py==3.6.0
2-
lmdb==0.9.29
3-
msprime==1.1.1
4-
numcodecs==0.9.1
5-
python-lmdb==1.3.0
1+
pytest==8.2.2
2+
msprime==1.3.2
3+
humanize==4.10.0
4+
python-lmdb==1.4.1
5+
tqdm==4.66.4
6+
daiquiri==3.0.0
7+
matplotlib==3.9.1
8+
seaborn==0.13.2
9+
colorama==0.4.6
10+
tskit==0.5.8

0 commit comments

Comments
 (0)