Skip to content

Commit

Permalink
add additional import statement to get error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Apr 4, 2024
1 parent 6b421d3 commit 5221332
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymare/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

try:
import arviz as az
except ImportError:
except ImportError as e:
az = None

from pymare.stats import q_gen, q_profile
Expand Down Expand Up @@ -544,6 +544,7 @@ class BayesianMetaRegressionResults:
"""

def __init__(self, data, dataset, ci=95.0):
import arviz as az
if az is None:
raise ValueError(
"ArviZ package must be installed in order to work "
Expand Down

0 comments on commit 5221332

Please sign in to comment.