Skip to content

Commit

Permalink
Moved misplaced ee import when running tseb without ee.
Browse files Browse the repository at this point in the history
Updated version in setup.py
  • Loading branch information
lopezvoliver committed Jan 13, 2022
1 parent 7b5cc40 commit c092127
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion geeet/solar.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def compute_solar_declination(doy):
Output: solar_declination (np.array or ee.Number; matches the input type) in radians
"""
import numpy as np
from ee import Number
DTOR = np.deg2rad(1) # constant to convert degrees to radians
if is_eenum(doy):
from ee import Number
doy_scaled = doy.multiply(0.9856)
sin1 = doy_scaled.add(356.6).multiply(DTOR).sin()
sin2 = sin1.multiply(1.9165).add(doy_scaled).add(278.97).multiply(DTOR).sin()
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
setup(
author="Oliver Lopez",
author_email='[email protected]',
python_requires='>=3.5',
python_requires='>=3.6',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
Expand All @@ -53,6 +52,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/lopezvoliver/geeet',
version='0.0.1',
version='0.0.2',
zip_safe=False,
)

0 comments on commit c092127

Please sign in to comment.