You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the issue here is that python 3 has dictionaries with an efficient .items() method which is equivalent to .iteritems() of python 2 (i.e. using a generator).
To make it compatible for both python version you should replace all instances of dict.iteritems with
from future.utils import iteritems
for (k, v) in iteritems(dict):
Christian did raise some interesting concerns:
1- Compatibility with Python3 has to be reviewed for most of the code
2- What do we want to do with the Update module of BOFdat. I think it is useful for users to have such functionality but ad hoc functions can easily be generated that will better suit their needs also.
AttributeError Traceback (most recent call last)
in ()
----> 1 bofdat_step1 = update.make_new_BOF(model_so,False,True,dna_coefficients,rna_coefficients,protein_coefficients,)
~/.local/lib/python3.6/site-packages/BOFdat-0.1.7-py3.6.egg/BOFdat/util/update.py in make_new_BOF(model, update_model, update_NGAM, *args, **kwargs)
159 ppi_coeff, h2o_coeff, atp_coeff = [], [], []
160 remove_keys = []
--> 161 for k, v in base_biomass.iteritems():
162 if k.id == 'ppi_c':
163 ppi_coeff.append(v)
AttributeError: 'dict' object has no attribute 'iteritems'
The text was updated successfully, but these errors were encountered: