Skip to content

Commit

Permalink
Merge pull request #732 from bp/bwell_props_fix
Browse files Browse the repository at this point in the history
Update well_interval_property_collection.py to handle BlockedWell properties with null cells
  • Loading branch information
andy-beer committed Jun 16, 2023
2 parents 626491d + 5ad7eaa commit 8a6ed31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resqpy/property/well_interval_property_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def logs(self):
def to_pandas(self, include_units = False):
"""Returns a dataframe with a column for each well log included in the collection."""

cell_indices = [rqp_c.return_cell_indices(i, self.support.cell_indices) for i in self.support.cell_grid_link]
cell_indices = [
rqp_c.return_cell_indices(i, self.support.cell_indices) for i in self.support.cell_grid_link if i != -1
]
data = {}
for log in self.logs():
col_name = log.name
Expand Down

0 comments on commit 8a6ed31

Please sign in to comment.