Closed cbeddow closed 2 years ago
Same problem with map features:
data=mly.get_detections_with_map_feature_id(map_feature_id=852766358956987).to_dict()
Thanks for the issue! There is probably a problem with a default value somewhere, or the dict
not being read correctly as the data type and thus resulting in a NoneType
. I'll look at this sometime this week.
@Rubix982 did you get a chance to investigate this one?
I assumed that None
is the same as []
- I'm not sure why. Replacing the default arguments with []
instead of None
works. I am not sure why this broke just now and not previously in August's release.
Also, a minor issue with format.py
where a loop was deleting the same array it was traversing.
Describe the bug I request a detection with the image key, and the function fails.
To Reproduce Run the following:
Expected behavior This should return a list of detections for the image key specified
Screenshots
Additional context If I add
fields="captured_at"
, it gets a 200 but then tries to parse the text and finds "c". If I addfields=["captured_at"]
if gets a 200 , but then says the dictionary changed size and fails.