Skip to content

Commit

Permalink
simplify handling of output flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshalgren committed May 21, 2021
1 parent 8969e64 commit fa93df6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/python_routing_v02/compute_nhd_routing_SingleSeg_v02.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,13 +1273,12 @@ def main():
if verbose:
print(f"Handling output ...")

if output_parameters:
csv_output = output_parameters.get("csv_output", None)
if csv_output:
csv_output_folder = output_parameters["csv_output"].get(
"csv_output_folder", None
)
csv_output_segments = csv_output.get("csv_output_segments", None)
csv_output = output_parameters.get("csv_output", None)
if csv_output:
csv_output_folder = output_parameters["csv_output"].get(
"csv_output_folder", None
)
csv_output_segments = csv_output.get("csv_output_segments", None)

if (debuglevel <= -1) or csv_output:

Expand Down

0 comments on commit fa93df6

Please sign in to comment.