Skip to content

Commit fd2fcfe

Browse files
committed
Bug fixes for solar
1 parent 693f821 commit fd2fcfe

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

compass/extraction/solar/ordinance.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,8 @@ def ordinance_text(self):
155155
logger.debug("Ordinance chunk inds: %s", self._ordinance_chunk_inds)
156156

157157
inds_to_grab = set()
158-
for info in self._ordinance_chunk_inds:
159-
inds_to_grab |= {
160-
info["ind"] + x for x in range(1 - self.num_to_recall, 2)
161-
}
158+
for ind in self._ordinance_chunk_inds:
159+
inds_to_grab |= {ind + x for x in range(1 - self.num_to_recall, 2)}
162160

163161
inds_to_grab = [
164162
ind
@@ -450,7 +448,10 @@ def parsers(self):
450448
"large_solar_energy_systems_text",
451449
self.extract_large_solar_energy_system_section,
452450
)
453-
yield "cleaned_ordinance_text", self.check_for_correct_size
451+
yield (
452+
"cleaned_ordinance_text",
453+
self.extract_large_solar_energy_system_text,
454+
)
454455

455456

456457
def _valid_chunk(chunk):

0 commit comments

Comments
 (0)