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

Refactor Phase 2 #354

Closed elehmer closed 1 month ago

elehmer commented 3 months ago

Description of PR

This PR is the beginning of attempting to separate core from GUI classes/functions in climakitae to minimize the required packages for doing command line work.

Summary of changes and related issue

Relevant motivation and context

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

import takes less than a second!!! :))))

elehmer commented 3 months ago

At this point I'm able to load DataParameters and retrieve data!

import climakitae as ck
from climakitae.core.data_interface import DataParameters
selections = DataParameters()
selections.resolution="45 km"
selections.time_slice=(2000,2005)