File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- " master"
7
- pull_request_target :
7
+ pull_request :
8
8
branches :
9
9
- " *"
10
10
schedule :
27
27
outputs :
28
28
skip : ${{ steps.result_step.outputs.ci-skip }}
29
29
steps :
30
- - uses : actions/checkout@v2
30
+ - uses : actions/checkout@v3
31
31
with :
32
32
fetch-depth : 0
33
33
- id : result_step
51
51
run :
52
52
shell : bash
53
53
steps :
54
- - uses : actions/checkout@v2
54
+ - uses : actions/checkout@v3
55
55
- name : " Set up python"
56
56
uses : actions/setup-python@v2
57
57
with :
74
74
name : Lint with flake8
75
75
steps :
76
76
- name : Check out source repository
77
- uses : actions/checkout@v2
77
+ uses : actions/checkout@v3
78
78
79
79
- name : Set up Python environment
80
80
uses : actions/setup-python@v2
Original file line number Diff line number Diff line change 1
1
"""Tools for representing and manipulating meta-regression results."""
2
2
3
3
import itertools
4
+ import math
4
5
from functools import lru_cache
5
6
from inspect import getfullargspec
6
7
from warnings import warn
@@ -322,7 +323,7 @@ def permutation_test(self, n_perm=1000):
322
323
323
324
# Calculate # of permutations and determine whether to use exact test
324
325
if has_mods :
325
- n_exact = np . math .factorial (n_obs )
326
+ n_exact = math .factorial (n_obs )
326
327
else :
327
328
n_exact = 2 ** n_obs
328
329
if n_exact < n_perm :
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ classifiers =
24
24
[options]
25
25
python_requires = >= 3.8
26
26
install_requires =
27
- numpy>=1.8.0
27
+ numpy>=1.8.0,<2.0; python_version == "3.9" and extra == 'stan'
28
+ numpy>=1.8.0; python_version != "3.9" or extra != 'stan'
28
29
pandas
29
30
scipy
30
31
sympy
You can’t perform that action at this time.
0 commit comments