Skip to content

Commit 55e1841

Browse files
fix: use numpy density parameter (v2.0+) + remove version pin
1 parent 8907fc0 commit 55e1841

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cibuildwheel.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ macos.before-build = [
2828

2929

3030
linux.before-test = [
31-
"pip install 'biopython' 'matplotlib' 'numpy<2' 'pandas' 'pygments' 'scipy'"
31+
"pip install 'biopython' 'matplotlib' 'numpy' 'pandas' 'pygments' 'scipy'"
3232
]
3333

3434
# Run ALL examples serially (one at a time) - including slow ones after memory fixes
@@ -41,7 +41,7 @@ linux.test-command = [
4141

4242

4343
macos.before-test = [
44-
"pip install 'biopython' 'matplotlib' 'numpy<2' 'pandas' 'pygments' 'scipy'"
44+
"pip install 'biopython' 'matplotlib' 'numpy' 'pandas' 'pygments' 'scipy'"
4545
]
4646

4747
# Run ALL examples serially - including slow ones after memory fixes

examples/mutation_selection_balance_highd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
for locus in range(L):
6666

6767
# make histogram
68-
y,x = np.histogram(allele_frequencies[:,locus], bins=af_bins, normed='True')
68+
y,x = np.histogram(allele_frequencies[:,locus], bins=af_bins, density=True)
6969

7070
# plot
7171
plt.plot(bc, y, color=plt.cm.jet(locus*4))
@@ -78,7 +78,7 @@
7878
# compare explicitly to diffusion theory by normalizing to the diffusion theory prediction
7979
plt.figure()
8080
for locus in range(L):
81-
y,x = np.histogram(allele_frequencies[:,locus], bins=af_bins, normed='True')
81+
y,x = np.histogram(allele_frequencies[:,locus], bins=af_bins, density=True)
8282

8383
# calculate the diffusion theory single locus result
8484
diffusion_theory = bc**(2*N*mu-1)*(1-bc)**(2*N*mu-1)*np.exp(2*N*s[locus]*bc)

0 commit comments

Comments
 (0)