-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return NaN, not zero, in metadata export for bins w/o depth information #381
Comments
During metadata upload, a depth value for a bin is not set if there is no value in the uploaded CSV: ifcbdb/ifcbdb/dashboard/accession.py Lines 368 to 371 in 36cac45
During metadata download, there are three cases: 1) depth is set on the bin, 2) depth is set on the dataset, and 3) depth is NaN. ifcbdb/ifcbdb/dashboard/accession.py Lines 521 to 526 in 36cac45
|
This code may be relevant as well, since it's used in metadata upload and relies on ifcbdb/ifcbdb/dashboard/accession.py Lines 287 to 296 in 36cac45
|
@joefutrelle On the master branch, I'm not seeing things as outline in the original description here. I have a dataset where a few of the bins do not have depths set, and the value that comes out in the CSV file is an empty string, rather than a zero. Is that the expected outcome of this ticket (in which case, no changes are needed)? My other thought would be that you might want an explicit NaN value in the CSV - we can do that with an argument to represent NaN values with some other string: However, should that affect other columns besides depth as well? For example, the above change worked on the depth column, but you can see it also produced NaN values for latitude, longitude an some other columns as well |
I'm removing this from 4.2 until we can do more investigation. |
No description provided.
The text was updated successfully, but these errors were encountered: