Skip to content

Commit

Permalink
RFR: Bugfix for is_empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 22, 2019
1 parent efc9aac commit 41e55f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ogs5py/fileclasses/ic/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,14 @@ def __init__(

@property
def is_empty(self):
"""state if the OGS file is empty"""
return bool(self.data.shape) and self.data.shape[0] > 0
"""State if the OGS file is empty."""
return not (bool(self.data.shape) and self.data.shape[0] > 0)

def check(self, verbose=True):
"""
Check if the external geometry definition is valid in the sence,
that the contained data is consistent.
Check if the external geometry definition is valid.
In the sence, that the contained data is consistent.
Parameters
----------
Expand Down

0 comments on commit 41e55f3

Please sign in to comment.