Skip to content

Commit

Permalink
Minor improvements to comments and messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorang committed Mar 29, 2022
1 parent 6e3fd36 commit 2cab3c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions od_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
You can include any of them in the dictionary in this file, and the tool will
use them. However, travelMode, timeUnits, distanceUnits, defaultImpedanceCutoff,
and defaultDestinationCount will be ignored because they are specified in the
tool dialog.
defaultDestinationCount, and timeOfDay will be ignored because they are specified
in the tool dialog.
Copyright 2022 Esri
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion parallel_odcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def solve(self, origins_criteria, destinations_criteria): # pylint: disable=too
solve_start = time.time()
self.solve_result = self.od_solver.solve()
solve_end = time.time()
self.logger.debug(f"Solving OD cost matrix completed in {round(solve_end - solve_start, 3)} (seconds).")
self.logger.debug(f"Solving OD cost matrix completed in {round(solve_end - solve_start, 3)} seconds.")

# Handle solve messages
solve_msgs = [msg[-1] for msg in self.solve_result.solverMessages(arcpy.nax.MessageSeverity.All)]
Expand Down
2 changes: 1 addition & 1 deletion solve_large_odcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _validate_od_settings(self):
# Validate time and distance units
time_units = helpers.convert_time_units_str_to_enum(self.time_units)
distance_units = helpers.convert_distance_units_str_to_enum(self.distance_units)
# Create a dummy ODCostMatrix object, initialize an OD solver object, and set properties
# Create a dummy ODCostMatrix object and set properties
try:
odcm = arcpy.nax.OriginDestinationCostMatrix(self.network_data_source)
odcm.travelMode = self.travel_mode
Expand Down

0 comments on commit 2cab3c4

Please sign in to comment.