Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Bug in Google Colab #85

Open
LaRiffle opened this issue Oct 26, 2020 · 0 comments
Open

Bug in Google Colab #85

LaRiffle opened this issue Oct 26, 2020 · 0 comments

Comments

@LaRiffle
Copy link
Member

Description

When I run in G colab

import fhir2dataset as query
sql_query = "SELECT p.name.family, p.address.city FROM Patient AS p WHERE p.birthdate=1944 AND p.gender = 'female'"
query.sql(sql_query)

I get:

 10%|█         | 100/1000 [00:00<00:07, 115.14it/s]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-d4f3918b384c> in <module>()
      1 import fhir2dataset as query
      2 sql_query = "SELECT p.name.family, p.address.city FROM Patient AS p WHERE p.birthdate=1944 AND p.gender = 'female'"
----> 3 query.sql(sql_query)

2 frames
/usr/local/lib/python3.6/dist-packages/fhir2dataset/api_caller.py in get_all(self)
    188 
    189         urls = []
--> 190         for i in range(number_calls):
    191             urls.append(
    192                 (self.auth.token, f"{self.url}&_getpagesoffset={i*PAGE_SIZE}&_count={PAGE_SIZE}")

TypeError: 'numpy.float64' object cannot be interpreted as an integer
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant