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

Remove eofs #1621

Merged
merged 4 commits into from
Jan 25, 2024
Merged

Remove eofs #1621

merged 4 commits into from
Jan 25, 2024

Conversation

Zeitsperre
Copy link
Collaborator

@Zeitsperre Zeitsperre commented Jan 24, 2024

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features)
    • (If applicable) Documentation has been added / updated (for bug fixes / features)
  • CHANGES.rst has been updated (with summary of main changes)
    • Link to issue (:issue:number) and pull request (:pull:number) has been added

What kind of change does this PR introduce?

  • The eofs library has been removed from the optional dependencies.
  • The empirical orthogonal functionality (xclim.sdba.properties.first_eof and associated test) has been removed from the code base.
  • CI builds no longer test eofs functionality.

Does this PR introduce a breaking change?

Yes. eofs has been completely removed since this violated its GPLv3 license. Associated functionality is reproducible by users

Other information:

Should we be offering users a note about how to migrate? I feel like it's not necessary.

@Zeitsperre Zeitsperre added standards / conventions Suggestions on ways forward priority Immediate priority dependencies Pull requests that update a dependency file labels Jan 24, 2024
@Zeitsperre Zeitsperre self-assigned this Jan 24, 2024
@github-actions github-actions bot added sdba Issues concerning the sdba submodule. CI Automation and Contiunous Integration docs Improvements to documenation labels Jan 24, 2024
Copy link

Note
It appears that this Pull Request modifies the main.yml workflow.

On inspection, the XCLIM_TESTDATA_BRANCH environment variable is set to the most recent tag (v2023.12.14).

No further action is required.

Copy link
Collaborator

@aulemahal aulemahal left a comment

Choose a reason for hiding this comment

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

What does @juliettelavoie think of this.
Were you using that property anywhere ? If yes, we'll need to reimplement it in a private script somewhere.

@github-actions github-actions bot added the approved Approved for additional tests label Jan 24, 2024
@coveralls
Copy link

coveralls commented Jan 24, 2024

Coverage Status

coverage: 90.303% (+0.004%) from 90.299%
when pulling 5dfa324 on remove-eofs
into a569e91 on master.

@juliettelavoie
Copy link
Contributor

I don't have active scripts that use that property. I am okay to delete it without reimplementing it until we have a clear need for it.

CHANGES.rst Outdated Show resolved Hide resolved
Zeitsperre and others added 2 commits January 25, 2024 11:33
Co-authored-by: David Huard <huard.david@ouranos.ca>
@Zeitsperre Zeitsperre merged commit 36d49e9 into master Jan 25, 2024
20 checks passed
@Zeitsperre Zeitsperre deleted the remove-eofs branch January 25, 2024 20:54
Zeitsperre added a commit that referenced this pull request Jan 29, 2024
### What kind of change does this PR introduce?

* Drops Python3.8 references and marks Python3.9 as base requirement.
* Drops older `xarray` and `pandas` support.
* Updates documentation and CI for dropped Python3.8.
* Raises required versions of `scipy` and `numpy` (`1.9.0` and `1.20.0`,
respectively).
* Removes the `winter_storm` indice and indicator (deprecated in `xclim`
v0.46.0).
* Adopts the new syntax for frequency codes:
  - "A" is no more
  - Y -> YE, Q -> QE, M -> ME
  - H -> h, T -> min, S -> s, L -> ms, U -> us, N -> ns
* Addresses several `DeprecationWarning` and `RuntimeWarning` messages
related to `numpy`, `xarray`, and `pint`

### Does this PR introduce a breaking change?

**Yes**, Python3.8 is no longer supported and base dependency versions
have been augmented:
- `numpy>=1.20.0`
- `pandas>=2.2.0`
- `scipy>=1.9.0`
- `xarray>=2023.11.0`

### Other information:

~Python3.12 support is still not possible due to missing Python3.12
builds for `numba`. (This is being addressed in #1613)~ - This has been
addressed.

A Pull Request has been opened to address `DeprecationWarning`s stemming
from `numpy` calls in `eofs` (ajdawson/eofs#148;
`eofs` has been removed due to licensing-related issues (#1621))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved for additional tests CI Automation and Contiunous Integration dependencies Pull requests that update a dependency file docs Improvements to documenation priority Immediate priority sdba Issues concerning the sdba submodule. standards / conventions Suggestions on ways forward
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants