tyjo / clv

Compositional Lotka-Volterra
MIT License
15 stars 7 forks source link

simulation_bucci_clv.py #1

Closed gaofengjie-2019 closed 3 years ago

gaofengjie-2019 commented 3 years ago

Hello, Dr. Tyler, thank you so much for your publication of script! I found a problem in simulation_bucci_clv.py: def adjust_concentrations(Y): """Change the scale of observed concentrations. """ con = [] for y in Y: con += y.sum(axis=1).tolist() con = np.array(con) C = 1 / np.mean(con)

Y_adjusted = []
for y in Y:
    Y_adjusted.append(y)

return Y_adjusted

Maybe C was neglected in Y_adjusted.append(y)? Could you please help me to solve this problem? Thanks a lot. Fengjie