Skip to content

Conversation

@spiani
Copy link
Collaborator

@spiani spiani commented Oct 5, 2023

This commit solves a bug in the DataExtractor class and improves its performances for some corner cases.

Before this commit, the DataExtractor class failed if a variable had a dimension 1 on an axis with index i and if there was an axis with index j of dimension > 1 such that j < i. This should be fixed with this commit.

Moreover, it cleans a little bit the code making some statements more readable.

Finally, it also improves the performance of the classes when we read the first layer of a 3D variable (i.e., when we submit the argument dimvar=2). Before, it read all the variable and then it discarded all the layers different from 0. Now the routine reads only the required data.

@spiani spiani requested a review from gbolzon October 5, 2023 18:26
@spiani spiani self-assigned this Oct 5, 2023
This commit solves a bug in the DataExtractor class and improves
its performance in some corner cases.

Before this commit, the DataExtractor class failed if a variable
had a dimension 1 on an axis with index i if there was an axis
with index j of dimension > 1 such that j < i. This should be
fixed with this commit.

Moreover, it cleans a little bit the code making some statements
more readable.

Finally, it also improves the performance of the classes when
we read the first layer of a 3D variable (i.e., when we submit
the argument dimvar=2). Before, it read all the variable and
then it discarded all the layers different from 0. Now the
routine reads only the required data.
@spiani spiani force-pushed the improve_dataextractor branch from d373a61 to 4605c78 Compare February 16, 2024 09:44
@gbolzon gbolzon merged commit 4605c78 into inogs:master Feb 16, 2024
@spiani spiani deleted the improve_dataextractor branch February 16, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants