cal-adapt / climakitae

A Python toolkit for retrieving, visualizing, and performing scientific analyses with data from the Cal-Adapt Analytics Engine.
https://climakitae.readthedocs.io
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

Standalone: needed changes to ease use of climakitae outside of HUB environment #351

Closed elehmer closed 3 weeks ago

elehmer commented 3 months ago

Description of PR

This PR works on making climakitae work outside of the HUB in local python environments using pip or conda.

Summary of changes and related issue

Relevant motivation and context

Some entities wish to use climakitae outside of the HUB environment and in their python setup.

Dependencies required for this change?

Fixes # (issue), delete if not necessary

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

elehmer commented 3 months ago

By adding to the requirements.txt file I was able to load climakitae and run through the commands in _gettingstarted NB. All GUI are non-functional (but don't break) in command line python. All map renders also don't work but don't crash.

Language in export function refers to HUB downloading from left pane so maybe this language needs to change?

elehmer commented 3 months ago

warming levels NB runs (can't change using GUI) up to error that is being addressed at this time in #343

elehmer commented 3 months ago

DFU annual comsumption NB we run into an issue where CSV file for forecast weather stations is not accessible without NB hierarchy downloaded. Maybe strictly not an error just a setup issue.

elehmer commented 3 months ago

Conda: Successfully installed pangeo-notebook image conda lock-file packages to create new conda env. Then installed xclim, dask-gateway, dask-geopandas upgrades needed. Was then able to import climakitae and retrieve data.

elehmer commented 3 months ago

Scoping ClimaKitAE as a standalone package