Closed jhong26 closed 1 year ago
Hi @jhong26, this looks like an import error with arviz. Could you please check which version of arviz is installed in your environment?
import arviz
arviz.__version__
Looks like it was an older version (0.14.0). I no longer get the error after updating the package. Thank you.
pip install arviz --upgrade
Hi, I am trying to work through the tutorial but I am getting stuck at the very beginning when I try to run the command below. Any input would be much appreciated. Thank you.
from sccoda.util import comp_ana as mod
output:
AttributeError Traceback (most recent call last) /tmp/ipykernel_48124/3275336626.py in
----> 1 from sccoda.util import comp_ana as mod
~/.local/lib/python3.9/site-packages/sccoda/util/comp_ana.py in
8
9 from anndata import AnnData
---> 10 from sccoda.model import scCODA_model as dm
11 from typing import Union, Optional
12
~/.local/lib/python3.9/site-packages/sccoda/model/scCODA_model.py in
14 import tensorflow_probability as tfp
15
---> 16 from sccoda.util import result_classes as res
17 from typing import Optional, Tuple, Collection, Union, List
18
~/.local/lib/python3.9/site-packages/sccoda/util/result_classes.py in
16
17
---> 18 class CAResultConverter(az.data.io_dict.DictConverter):
19 """
20 Helper class for result conversion into arviz's format
AttributeError: module 'arviz' has no attribute 'data'