File tree 4 files changed +11
-12
lines changed
src/python/BuildingControlsSimulator/DataClients
4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 27
27
"**/Output_EPExport_Slave" : true ,
28
28
"**/Output_EPExport_Test FMI 1.0 CS" : true ,
29
29
"**/test/data" : true ,
30
- "external" : true
30
+ "external" : true ,
31
+ "bcs_venv" : true ,
31
32
},
32
33
"python.linting.pylintEnabled" : false ,
33
34
"python.linting.flake8Enabled" : true ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Babel==2.9.0
9
9
backcall == 0.2.0
10
10
beautifulsoup4 == 4.8.0
11
11
black == 20.8b1
12
- bleach == 3.2.1
12
+ bleach == 3.3.0
13
13
Bottleneck == 1.3.2
14
14
cachetools == 4.2.0
15
15
casadi == 3.5.5
@@ -112,6 +112,7 @@ pyparsing==2.4.7
112
112
pyrsistent == 0.17.3
113
113
pytest == 6.2.1
114
114
pytest-ordering == 0.6
115
+ pytest-profiling == 1.7.0
115
116
python-dateutil == 2.8.1
116
117
pytz == 2020.5
117
118
PyYAML == 5.4
@@ -148,7 +149,7 @@ traitlets==5.0.5
148
149
typed-ast == 1.4.2
149
150
typing-extensions == 3.7.4.3
150
151
typing-inspect == 0.6.0
151
- tzwhere == 3.0.3
152
+ timezonefinder == 5.2.0
152
153
urllib3 == 1.26.2
153
154
wcwidth == 0.2.5
154
155
webencodings == 0.5.1
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ google-cloud-bigquery==2.3.1
2
2
jupyterlab==2.2.9
3
3
pytest
4
4
pytest-ordering
5
+ pytest-profiling
5
6
black
6
7
coverage
7
8
sphinx
28
29
requests
29
30
scikit-learn
30
31
statsmodels
31
- tzwhere
32
+ timezonefinder
32
33
numexpr
33
34
bottleneck
34
35
casadi
Original file line number Diff line number Diff line change 1
1
# created by Tom Stesco tom.s@ecobee.com
2
2
import logging
3
- from pprint import pprint
4
3
import pytz
5
4
6
- from tzwhere import tzwhere
5
+ from timezonefinder import TimezoneFinder
6
+
7
7
import attr
8
8
import pandas as pd
9
9
@@ -33,11 +33,7 @@ def timezone(self):
33
33
@staticmethod
34
34
def get_timezone (latitude , longitude ):
35
35
"""Get pytz timezone object given latitude and longitude."""
36
- tzw = tzwhere . tzwhere ( forceTZ = True )
36
+ tf = TimezoneFinder ( )
37
37
return pytz .timezone (
38
- tzw .tzNameAt (
39
- latitude = latitude ,
40
- longitude = longitude ,
41
- forceTZ = True ,
42
- )
38
+ tf .timezone_at (lng = longitude , lat = latitude )
43
39
)
You can’t perform that action at this time.
0 commit comments