Error when trying to plot on 'dev' or 'Master'
jnsebgosselin opened this issue · 0 comments
jnsebgosselin commented
Running the following script :
import hydsensread as hsr
import matplotlib.pyplot as plt
file_location = ("C:/Users/User/Downloads/2017/Automne/Monteregie/"
"2009772_Bromont_PO-02-B_2017_11_22.xle")
solinst_file = hsr.SolinstFileReader(file_location)
solinst_file.read_file()
solinst_file.plot()
plt.show(block=True)
yield the following error:
Traceback (most recent call last):
File "<ipython-input-10-6783579c4034>", line 1, in <module>
runfile('C:/Users/User/Downloads/2017/hydrosensor.py', wdir='C:/Users/User/Downloads/2017')
File "C:\Users\User\spyder-kernels\spyder_kernels\customize\spydercustomize.py", line 668, in runfile
execfile(filename, namespace)
File "C:\Users\User\spyder-kernels\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/User/Downloads/2017/hydrosensor.py", line 30, in <module>
solinst_file.plot()
File "C:\Users\User\HydroSensorReader\hydsensread\file_reader\compagny_file_reader\solinst_file_reader.py", line 78, in plot
level_param = [i for i in solinst_file.records.dtypes.index if 'TEMP' not in i]
NameError: name 'solinst_file' is not defined