Skip to content

Commit 022775b

Browse files
dkylewardjpn--
andauthored
Minor typo/bug fixes (#945)
* Fix typos in summarize docstring * Fix log message in util.delete_files * Fix docstring for VehicleAllocationSettings --------- Co-authored-by: Jeffrey Newman <[email protected]>
1 parent 4063cd6 commit 022775b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

activitysim/abm/models/summarize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ def summarize(
234234
trace_label: str = "summarize",
235235
) -> None:
236236
"""
237-
A standard model that uses expression files to summarize pipeline tables for vizualization.
237+
A standard model that uses expression files to summarize pipeline tables for visualization.
238238
239239
Summaries are configured in `summarize.yaml`, including specification of the
240240
expression file (`summarize.csv` by default).
241241
242242
Columns in pipeline tables can also be sliced and aggregated prior to summarization.
243243
This preprocessing is configured in `summarize.yaml`.
244244
245-
Outputs a seperate csv summary file for each expression;
245+
Outputs a separate csv summary file for each expression;
246246
outputs starting with '_' are saved as temporary local variables.
247247
"""
248248

activitysim/abm/models/vehicle_allocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_skim_dict(network_los: los.Network_LOS, choosers: pd.DataFrame):
8787

8888
class VehicleAllocationSettings(LogitComponentSettings, extra="forbid"):
8989
"""
90-
Settings for the `joint_tour_scheduling` component.
90+
Settings for the `vehicle_allocation` component.
9191
"""
9292

9393
preprocessor: PreprocessorSettings | None = None

activitysim/core/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def delete_files(file_list, trace_label):
7474
logger.debug(f"{trace_label} deleting {file_path}")
7575
os.unlink(file_path)
7676
except Exception as e:
77-
logger.warning(f"{trace_label} exception (e) trying to delete {file_path}")
77+
logger.warning(
78+
f"{trace_label} exception ({e}) trying to delete {file_path}"
79+
)
7880

7981

8082
def df_size(df):

0 commit comments

Comments
 (0)