openeemeter / eeweather

Fetch NCDC ISD, TMY3, or CZ2010 weather data that corresponds to ZIP Code Tabulation Areas or Latitude/Longitude.
http://eeweather.openee.io/
Apache License 2.0
50 stars 19 forks source link

Feature/international #79

Open jfenna opened 1 year ago

jfenna commented 1 year ago

Your checklist for this pull request

Please review the guidelines for contributing to this repository.

Description

EEWeather international is an international extension to the EEMeter international package of amendments submitted via pull request on 13 February 2023.

EEWeather international comprises:

A detailed walkthrough of amendments can be found in the eeweather-intl tutorial.ipynb notebook.

philngo-recurve commented 1 year ago

Thank you for your pull request Some big additions in here. As discussed, we have some requested changes:

Dependencies

The additional dependencies required for using CDS data should be added as an extras_require since core functionality with NOAA data does not need them.

Geocoding is out of scope for the library and can be removed.

Extra Data Files

The CSV files in samples/intl_samples seem to be used only in the tutorial notebook and can be removed from the repo or consolidated into a smaller set.

Unit Tests

All existing unit tests passed. However, the new international tests fail due to relative path issues and a requirement for CDS credentials

Please slim down the number of files used in testing the new functionality from 100 to the bare minimum required to maintain the current level of tested code coverage.

docker-compose run test should run the full test suite without any steps required after commit ffd9dba is merged.

test_get_weather_intl should either use a mocked version of the API call or just be omitted.