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
21 stars 2 forks source link

Adding `constants.py` and integrating it into AE #468

Open claalmve opened 9 hours ago

claalmve commented 9 hours ago

Description of PR

Summary of changes and related issue

Introducing a constants.py file in AE that can house a variety of constants we define across the codebase. The first constant introduced in this PR is WARMING_LEVELS = [0.8, 1.2, 1.5, 2.0, 3.0, 4.0], and it's integration into places of the codebase (where appropriate) are detailed within this PR.

Relevant motivation and context

We want to reduce the number of hard-coded definitions of 'constants' around the codebase, so that when one gets changed, the others can all follow suit easily.

Type of change

Definition of Done Checklist

Practical

Conceptual