We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53ce251 commit 43dc4eeCopy full SHA for 43dc4ee
1 file changed
src/openstudio_hpxml_calibration/weather_normalization/utility_data.py
@@ -4,12 +4,24 @@
4
import eeweather
5
import numpy as np
6
import pandas as pd
7
+import requests
8
import yaml
9
from lxml import objectify
10
11
from openstudio_hpxml_calibration.hpxml import EnergyUnitType, FuelType, HpxmlDoc
12
from openstudio_hpxml_calibration.units import convert_units
13
14
+# To bypass SSL verification when making requests to NOAA API
15
+old_init = requests.Session.__init__
16
+
17
18
+def new_init(self, *args, **kwargs):
19
+ old_init(self, *args, **kwargs)
20
+ self.verify = False # Force all sessions to ignore SSL
21
22
23
+requests.Session.__init__ = new_init
24
25
26
def read_yaml_file(config_path: str):
27
with open(config_path) as file:
0 commit comments