-
Notifications
You must be signed in to change notification settings - Fork 0
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
Serving size for nutrient info #2
Comments
Hi @wordsmith189, Thank you for reporting this issue. It seems the package interfaces a very early version of the FDC API or perhaps there was an error in defining the API's url. The link to the API should look like https://github.com/Nelson-Gon/pyfdc/blob/f0635d03ee89231d58cb70aad752be858312a74e/pyfdc/pyfdc.py#L29 instead. Thank you |
Hi @wordsmith189, please let me know if this fixes this issue or if further help is needed. Thanks, |
Hi, thanks - no, it doesn't fix it.
Many thanks again! |
Thanks for the feedback @wordsmith189, Using the most recent commit, I read the API [documentation](https://fdc.nal.usda.gov/api-spec/fdc_api.html#/FDC/get Foods Search) again but it's not clear what amount means. I assumed this is the RDA/serving. If you need a more raw format, you can set target field to "foodNutrients" in You can also PR to fix this by changing Line 115 in 06c9e1a
I still need to rewrite the Happy to take a further look at this if it's still not what you need. |
OK I see in the README that there are now columns However, I tried to get the latest version by installing with |
Thanks, I will check to see what could be the issue with getting the latest commit to work as expected. |
@wordsmith189, Hi it seems I am unable to reproduce the non-install issue. Could you create a new issue specific for the install? |
Good morning,
Thank you for this package. For the nutrient information retrieved with
get_nutrients()
, where can I grab the serving size information?Many thanks!!
The text was updated successfully, but these errors were encountered: