Skip to content
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

Taxonomic id is returned as float, not integer by get_object_set #769

Open
jiho opened this issue Feb 7, 2022 · 1 comment
Open

Taxonomic id is returned as float, not integer by get_object_set #769

jiho opened this issue Feb 7, 2022 · 1 comment
Assignees

Comments

@jiho
Copy link
Contributor

jiho commented Feb 7, 2022

Minimal example

import ecotaxa_py_client
from ecotaxa_py_client.api import objects_api
from ecotaxa_py_client.model.project_filters import ProjectFilters

client = ecotaxa_py_client.ApiClient()
objects_instance = objects_api.ObjectsApi(client)

objs = objects_instance.get_object_set(185, \
  project_filters=ProjectFilters(statusfilter="V"), fields='txo.id,fre.area,fre.mean')

objs['details']

I would expect area and mean to be float/double, as this is what is stored in the db (no mater what the input is) but I would expect the txo.id to be int.

@jiho
Copy link
Contributor Author

jiho commented Feb 17, 2022

This causes further request to the taxo API to fail.

@jiho jiho added the bug label Feb 17, 2022
@grololo06 grololo06 removed their assignment Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants