Skip to content

Commit

Permalink
Fix GRDECL bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB committed Feb 16, 2024
1 parent ced0638 commit d42a6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions splipy/io/grdecl.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def cell_property(self, dtype=np.float64):
while len(numbers) < ntot:
numbers += next(self.fstream).split()
numbers = numbers[:ntot] # strip away any '/' characters at the end of the line
# # return np.array(numbers, dtype=dtype)
return np.array(numbers, dtype=dtype)

def read(self):
for line in self.fstream:
Expand Down Expand Up @@ -231,7 +231,7 @@ def read(self):
warnings.showwarning(
f'Unkown keyword "{line.split()[0]}" encountered in file',
SyntaxWarning,
self.filename,
str(self.filename),
self.line_number,
line=[],
)
Expand Down

0 comments on commit d42a6c5

Please sign in to comment.