EdinburghGenomics / pyclarity-lims

Python interface to the GenoLogics LIMS server via its REST API.
MIT License
11 stars 5 forks source link

Lims _get_instances() returns empty array when start_index is set. #32

Closed jonathandixon closed 6 years ago

jonathandixon commented 6 years ago

An empty array is always returned when retrieving a list of entities using the get_* methods of theLims class. For example:

samples = l.get_samples(start_index=500)
# samples == []

The problem is in the _get_instances() method. The response is only parsed when start_index is None.

tcezard commented 6 years ago

Thanks for reporting this. I can confirm that this is happening when start_index is provided. I never used this option myself and am still unclear what the expected behaviour would be: