Skip to content

Commit

Permalink
lint: lines too long
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed May 12, 2024
1 parent 477aa73 commit 227e1af
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 140 deletions.
12 changes: 6 additions & 6 deletions reV/SAM/SAM.py
Expand Up @@ -713,7 +713,7 @@ def ensure_res_len(arr, time_index):

freq = pd.infer_freq(time_index[:s])
msg = "frequencies do not match before and after 2/29"
assert freq == pd.infer_freq(time_index[s + 1 :]), msg
assert freq == pd.infer_freq(time_index[s + 1:]), msg
else:
freq = pd.infer_freq(time_index)
else:
Expand Down Expand Up @@ -798,8 +798,9 @@ def _parse_meta(meta):
"""

if isinstance(meta, pd.DataFrame):
msg = "Meta data must only be for a single site but received: {}".format(
meta
msg = (
"Meta data must only be for a single site but received: {}"
.format(meta)
)
assert len(meta) == 1, msg
meta = meta.iloc[0]
Expand Down Expand Up @@ -888,9 +889,8 @@ def collect_outputs(self, output_lookup):
bad_requests.append(req)

if any(bad_requests):
msg = 'Could not retrieve outputs "{}" from PySAM object "{}".'.format(
bad_requests, self.pysam
)
msg = ('Could not retrieve outputs "{}" from PySAM object "{}".'
.format(bad_requests, self.pysam))
logger.error(msg)
raise SAMExecutionError(msg)

Expand Down
8 changes: 4 additions & 4 deletions reV/supply_curve/points.py
Expand Up @@ -1836,8 +1836,8 @@ def sc_point_capital_cost(self):
return None

cap_cost_per_mw = (
self.mean_h5_dsets_data['capital_cost'] /
self.mean_h5_dsets_data['system_capacity'])
self.mean_h5_dsets_data['capital_cost']
/ self.mean_h5_dsets_data['system_capacity'])
return cap_cost_per_mw * self.capacity

@property
Expand All @@ -1864,8 +1864,8 @@ def sc_point_fixed_operating_cost(self):
return None

fixed_cost_per_mw = (
self.mean_h5_dsets_data['fixed_operating_cost'] /
self.mean_h5_dsets_data['system_capacity'])
self.mean_h5_dsets_data['fixed_operating_cost']
/ self.mean_h5_dsets_data['system_capacity'])
return fixed_cost_per_mw * self.capacity

@property
Expand Down

0 comments on commit 227e1af

Please sign in to comment.