From 98d9992a11d3f63010457c99222aed4664153446 Mon Sep 17 00:00:00 2001 From: Emily Soth Date: Tue, 27 May 2025 10:11:47 -0700 Subject: [PATCH] break long lists over multiple lines --- src/natcap/invest/routedem.py | 4 +++- src/natcap/invest/scenario_gen_proximity.py | 6 ++++-- src/natcap/invest/scenic_quality/scenic_quality.py | 3 ++- src/natcap/invest/sdr/sdr.py | 3 ++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/natcap/invest/routedem.py b/src/natcap/invest/routedem.py index d00908d90..61e555545 100644 --- a/src/natcap/invest/routedem.py +++ b/src/natcap/invest/routedem.py @@ -29,7 +29,9 @@ MODEL_SPEC = spec.build_model_spec({ ['algorithm'], ['calculate_flow_direction'], ['calculate_flow_accumulation'], - ['calculate_stream_threshold', 'threshold_flow_accumulation', 'calculate_downslope_distance', 'calculate_stream_order', 'calculate_subwatersheds'] + ['calculate_stream_threshold', 'threshold_flow_accumulation', + 'calculate_downslope_distance', 'calculate_stream_order', + 'calculate_subwatersheds'] ] }, "args": { diff --git a/src/natcap/invest/scenario_gen_proximity.py b/src/natcap/invest/scenario_gen_proximity.py index 553ee9d48..58714e9f2 100644 --- a/src/natcap/invest/scenario_gen_proximity.py +++ b/src/natcap/invest/scenario_gen_proximity.py @@ -37,8 +37,10 @@ MODEL_SPEC = spec.build_model_spec({ "order": [ ['workspace_dir', 'results_suffix'], ['base_lulc_path', 'aoi_path'], - ['area_to_convert', 'focal_landcover_codes', 'convertible_landcover_codes', 'replacement_lucode'], - ['convert_farthest_from_edge', 'convert_nearest_to_edge', 'n_fragmentation_steps'] + ['area_to_convert', 'focal_landcover_codes', + 'convertible_landcover_codes', 'replacement_lucode'], + ['convert_farthest_from_edge', 'convert_nearest_to_edge', + 'n_fragmentation_steps'] ] }, "args": { diff --git a/src/natcap/invest/scenic_quality/scenic_quality.py b/src/natcap/invest/scenic_quality/scenic_quality.py index 7ba568a8a..9ad7419cd 100644 --- a/src/natcap/invest/scenic_quality/scenic_quality.py +++ b/src/natcap/invest/scenic_quality/scenic_quality.py @@ -55,7 +55,8 @@ MODEL_SPEC = spec.build_model_spec({ "order": [ ['workspace_dir', 'results_suffix'], ['aoi_path', 'structure_path', 'dem_path', 'refraction'], - ['do_valuation', 'valuation_function', 'a_coef', 'b_coef', 'max_valuation_radius'], + ['do_valuation', 'valuation_function', 'a_coef', 'b_coef', + 'max_valuation_radius'], ] }, "args_with_spatial_overlap": { diff --git a/src/natcap/invest/sdr/sdr.py b/src/natcap/invest/sdr/sdr.py index ba5d7f6fd..69ab5a529 100644 --- a/src/natcap/invest/sdr/sdr.py +++ b/src/natcap/invest/sdr/sdr.py @@ -38,7 +38,8 @@ MODEL_SPEC = spec.build_model_spec({ ['dem_path', 'erosivity_path', 'erodibility_path'], ['lulc_path', 'biophysical_table_path'], ['watersheds_path', 'drainage_path'], - ['flow_dir_algorithm', 'threshold_flow_accumulation', 'k_param', 'sdr_max', 'ic_0_param', 'l_max'] + ['flow_dir_algorithm', 'threshold_flow_accumulation', + 'k_param', 'sdr_max', 'ic_0_param', 'l_max'] ] }, "args_with_spatial_overlap": {