Closed miguelcleon closed 6 years ago
I see that the first one, this is caused by Dataloggerfiles model, mapping to the wrong column within the database: https://github.com/ODM2/ODM2PythonAPI/blob/master/odm2api/ODM2/models.py#L458.
For the second one, measurementequation
is indeed misspelled: https://github.com/ODM2/ODM2PythonAPI/blob/master/odm2api/ODM2/models.py#L514.
Thanks for catching these @miguelcleon. I won't be able to implement the fix probably until tomorrow.
found two more problems with dataloggerfiles model
There is no column dataloggeroutputfiledescription
instead it is dataloggerfiledescription
https://github.com/ODM2/ODM2PythonAPI/blob/master/odm2api/ODM2/models.py#L460
There is no column dataloggeroutputfilelink
instead it is dataloggerfilelink
https://github.com/ODM2/ODM2PythonAPI/blob/master/odm2api/ODM2/models.py#L461
@miguelcleon Can you verify that this is all fixed now and close the issue? Thanks!
yes, I installed from development and can confirm these issues are fixed.
Great! Thanks for the fix :smile:
@lsetiawan
I'm trying to run a JupyterNotebook with ODM2 PythonAPI and I'm getting errors acessing DataLoggerFiles and DataLoggerFileColumns When I run:
I get:
When I then run:
I get:
It looks like in the first one odm2.dataloggerfiles.actionid is not a column.
In the second one dataloggerfilecolumns.measurementequation is misspelled I'm trying to run this on jupyter.cuahsi.org it has odm2api v0.6.0.a0 that appears to be the latest release. I also tried setting up a new conda environment but I got the same result.