Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLN: Remove last usages of the Any type #489

Merged
merged 1 commit into from
Mar 7, 2024
Merged

CLN: Remove last usages of the Any type #489

merged 1 commit into from
Mar 7, 2024

Conversation

janbjorge
Copy link
Contributor

@janbjorge janbjorge commented Mar 1, 2024

Extends: #484

@janbjorge janbjorge self-assigned this Mar 1, 2024
@janbjorge janbjorge marked this pull request as ready for review March 1, 2024 11:01
Copy link
Collaborator

@mferrera mferrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks OK to me, but I think it may be best to have @jcrivenaes or @perolavsvendsen weigh in on it as well

@@ -699,6 +704,9 @@ def _get_columns(self) -> list[str]:
columns = list(self.obj.columns)
else:
logger.debug("arrow")
from pyarrow import Table
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if and when these lazy imports start to become numerous enough to bite us later on... the import doesn't seem excessively slow to my mind, about half a second (at least as far as Python is concerned). Probably few enough to be OK now, but will there be more?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ive wondered so as well. But i think for now, its fine. But if i go back and look at older versions it looks like there was a period of time where we could not really upon pyarrow being installed.

@@ -176,7 +185,7 @@ def _get_path(self) -> tuple[Path, Path | None]:

def _get_path_generic(
self,
mode: Literal[FmuContext.REALIZATION, FmuContext.PREPROCESSED],
mode: FmuContext,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed with @jcrivenaes

@janbjorge janbjorge merged commit 1745d4b into equinor:main Mar 7, 2024
13 checks passed
@janbjorge janbjorge deleted the remove-last-usages-of-any branch March 7, 2024 14:27
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