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

Clean warning update #129

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open

Clean warning update #129

wants to merge 19 commits into from

Conversation

aburrell
Copy link
Member

@aburrell aburrell commented Jul 6, 2023

Description

Addresses pysat/pysat#1129 changes by adding the new test attribute to the existing model Instruments.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Ran unit tests locally with the new pysat updates.

Test Configuration:

  • Operating system: OS X Big Sur
  • Version number: Python 3.9
  • Any details about your local setup that are relevant: pysat branch TST: Clean warnings pysat#1129

Checklist:

  • Make sure you are merging into the develop (not main) branch
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • Add a note to CHANGELOG.md, summarizing the changes

If this is a release PR, replace the first item of the above checklist with the
release checklist on the pysat wiki:
https://github.com/pysat/pysat/wiki/Checklist-for-Release

Created a general clean warning variable for the general clean method.
Added the `_clean_warn` test attribute to the existing model Instruments.
Added a description of the changes to the log.
Pandas changed their behaviour at some point, added a try/except loop to ensure the missing time selection works regardless of the available kwargs.
@aburrell aburrell requested a review from jklenzing July 6, 2023 17:15
@aburrell aburrell mentioned this pull request Jul 6, 2023
10 tasks
Removed extra whitespace.
@aburrell
Copy link
Member Author

aburrell commented Jul 6, 2023

@jklenzing there's a problem with the pysatNASA integration 😿

@jklenzing
Copy link
Member

@jklenzing there's a problem with the pysatNASA integration 😿

#128

@jklenzing
Copy link
Member

I think you just need to update the data_path usage

Updated the minimum version of pysatNASA and changed the download behaviour.
Update the tests run, partially complying with new standards.
Remove the pandas version limit to support earlier versions of python.
@aburrell
Copy link
Member Author

aburrell commented Jul 7, 2023

Ok @jklenzing any idea why pysatNASA isn't importing in these test? 🦦

Cycle the supported python versions.
Fixed the commands that expected us to have a pyproject.toml file.
Making some hopeful changes.
Forgot to add the file suffixes.
Coverage dropped to zero, this might fix it.
aburrell and others added 5 commits July 10, 2023 13:09
Update operational test version limits.

Co-authored-by: Jeff Klenzing <19592220+jklenzing@users.noreply.github.com>
Added a debug line to see if pysatNASA is being installed correctly before trying the pysatModels unit tests.
Added another import to see if pysatNASA can eventually succeed.
See what and where python is.
@jklenzing
Copy link
Member

jklenzing commented Jul 10, 2023

I've managed to generate a different error locally in a python 3.7 virtual environment after downgrading to pip 21.3.1 (same as in the GA workflow) and attempting to install pysatNASA. I get an ImportError for urllib3.

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.

None yet

2 participants