openalea / WALTer

WALTer is a 3D FSPM Wheat model
Other
4 stars 8 forks source link

Mix tillering #22

Closed Emblanc closed 6 years ago

Emblanc commented 6 years ago

Adding new genotypes that can each have a different value for the tillering parameters (GAIc and PARt)

chrlecarpentier commented 6 years ago

I've got 2 errors while proceeding nosetests :

====================================================================== ERROR: test.test_project.test_read_parameters

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/christophe/Documents/Developpement/WALTer/test/test_project.py", line 29, in test_read_parameters params = p.csv_parameters('sim_scheme_test.csv') File "/home/christophe/Documents/Developpement/WALTer/src/walter/project.py", line 120, in csv_parameters param_list = df.to_dict(orient='records') # a list of dict TypeError: to_dict() got an unexpected keyword argument 'orient'

====================================================================== ERROR: Failure: TypeError (to_dict() got an unexpected keyword argument 'orient')

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 251, in generate for test in g(): File "/home/christophe/Documents/Developpement/WALTer/test/test_simu1.py", line 29, in test_simu2 params = p.csv_parameters('sim_scheme_test.csv') File "/home/christophe/Documents/Developpement/WALTer/src/walter/project.py", line 120, in csv_parameters param_list = df.to_dict(orient='records') # a list of dict TypeError: to_dict() got an unexpected keyword argument 'orient'

However, I'm not sure this is due to this modification or others ...

Emblanc commented 6 years ago

Updating pandas fixed the problem for me