Skip to content

Commit

Permalink
fixed docstring suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
zenon18 committed May 21, 2024
1 parent 586fc4f commit 16fdce6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/nrel/routee/compass/compass_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,19 @@ def run_in_batches(
self, query_file: Union[str | Path], batch_size: int
) -> Generator[List[Result], None, None]:
"""
Reads in upto batch_size of queries from a query file before
calling run
Reads in up to batch_size of queries iteratively from a query file
before calling run
Args:
query_file: Path to a file of queries to run
batch_size: Max number of queries to read in from the json
file.
batch_size: Max number of queries to read in at a time from
the json file.
Returns:
A list of results (or a single result if a single query was read in)
A list of results (or a single result if a single query was
read in). If no queries are read in, None is returned
Example:
>>> from nrel.routee.compass import CompassApp
Expand Down

0 comments on commit 16fdce6

Please sign in to comment.