Skip to content

Commit 4105b85

Browse files
committed
run linting
1 parent 5be9ae8 commit 4105b85

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

rest/processing/process.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ def id_to_data_collection(self, collection_id):
154154

155155
if collection_type == "byoc-ID":
156156
load_collection_nodes = self.get_all_load_collection_nodes()
157-
load_collection_node = next(lcn for lcn in load_collection_nodes.values() if lcn["arguments"]["id"] is collection_id)
157+
load_collection_node = next(
158+
lcn for lcn in load_collection_nodes.values() if lcn["arguments"]["id"] is collection_id
159+
)
158160
featureflags = load_collection_node["arguments"].get("featureflags", {})
159161
byoc_collection_id = featureflags.get("byoc_collection_id")
160162

rest/processing/processing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,16 @@ def get_batch_job_estimate(batch_request_id, process, deployment_endpoint):
189189
)
190190
temporal_intervals = p.get_temporal_interval(in_days=True)
191191
average_temporal_interval = 0
192-
for node_id, temporal_interval in temporal_intervals.items():
192+
for node_id, temporal_interval in temporal_intervals.items():
193193
if temporal_interval is None:
194194
temporal_interval = default_temporal_interval
195195

196196
average_temporal_interval += temporal_interval
197197

198198
average_temporal_interval = average_temporal_interval / len(temporal_intervals)
199-
estimated_pu = estimate_secure_factor * batch_request.value_estimate * default_temporal_interval / average_temporal_interval
199+
estimated_pu = (
200+
estimate_secure_factor * batch_request.value_estimate * default_temporal_interval / average_temporal_interval
201+
)
200202

201203
n_pixels = batch_request.tile_count * batch_request.tile_width_px * batch_request.tile_height_px
202204
estimated_file_size = p.estimate_file_size(n_pixels=n_pixels)

0 commit comments

Comments
 (0)