From 5bb1fcebffe945ef5e491c1be4fd5006b897cf1a Mon Sep 17 00:00:00 2001 From: emmanesbit <84792288+emmanesbit@users.noreply.github.com> Date: Wed, 14 Jun 2023 14:00:17 +0100 Subject: [PATCH 1/2] Update well_interval_property_collection.py Update to ignore cells/intervals outside of the grid - which are represented with -1 (null) values --- resqpy/property/well_interval_property_collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resqpy/property/well_interval_property_collection.py b/resqpy/property/well_interval_property_collection.py index 3591aa85..2f6b1d27 100644 --- a/resqpy/property/well_interval_property_collection.py +++ b/resqpy/property/well_interval_property_collection.py @@ -30,7 +30,7 @@ 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 From 5ad7eaabd2b3728fa8ee5696ac66d938c458612a Mon Sep 17 00:00:00 2001 From: emmanesbit <84792288+emmanesbit@users.noreply.github.com> Date: Wed, 14 Jun 2023 14:11:12 +0100 Subject: [PATCH 2/2] Update well_interval_property_collection.py yapf --- resqpy/property/well_interval_property_collection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resqpy/property/well_interval_property_collection.py b/resqpy/property/well_interval_property_collection.py index 2f6b1d27..6288880b 100644 --- a/resqpy/property/well_interval_property_collection.py +++ b/resqpy/property/well_interval_property_collection.py @@ -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 if i != -1] + 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