Skip to content

Commit

Permalink
Fix Python 2.7 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
acroz committed Jun 21, 2019
1 parent c36e1cf commit b41a9c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions faculty/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def _get_runs():
client = ExperimentClient(session)

response = client.query_runs(project_id, filter, sort)
yield from map(cls._from_client_model, response.runs)
for run in response.runs:
yield cls._from_client_model(run)

while response.pagination.next is not None:
response = client.query_runs(
Expand All @@ -119,7 +120,8 @@ def _get_runs():
start=response.pagination.next.start,
limit=response.pagination.next.limit,
)
yield from map(cls._from_client_model, response.runs)
for run in response.runs:
yield cls._from_client_model(run)

return ExperimentRunList(_get_runs())

Expand Down

0 comments on commit b41a9c9

Please sign in to comment.