Skip to content

Commit f702b2e

Browse files
committed
rm unused variables
1 parent fcceffa commit f702b2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/stagpy/parfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _from_file(parfile: Path) -> StagyyPar:
3030
if not parfile.is_file():
3131
raise NoParFileError(parfile)
3232
par = f90nml.read(str(parfile))
33-
for section, content in par.items():
33+
for content in par.values():
3434
for option, value in content.items():
3535
try:
3636
content[option] = value.strip()

src/stagpy/step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def __getitem__(self, name: str) -> Field:
328328
raise error.MissingDataError(
329329
f"Missing field {name} in step {self.step.istep}"
330330
)
331-
header, fields = parsed_data
331+
_, fields = parsed_data
332332
for fld_name, fld_vals in zip(fld_names, fields):
333333
fld = Field(fld_vals, self.variables[fld_name])
334334
self._cache.insert(self.step.istep, fld_name, fld)

0 commit comments

Comments
 (0)