sir,
whenever I am using the given codes then line containing
tephigram= Tephigram()
giving error as below:
TypeError Traceback (most recent call last)
in
----> 1 tephigram= Tephigram()
~\miniconda3\lib\site-packages\tephigram_python\plotter.py in __init__(self, fig, subplotshape, plot_default_lines, y_range, x_range, with_labels, height_function, T_ticks)
75 self.plotted_lines += self.plot_temp_lines()
76 self.plotted_lines += self.plot_pot_temp_lines()
---> 77 self.plotted_lines += self.plot_pressure_lines()
78 self.plotted_lines += self.plot_qs_lines()
79 self.plotted_lines += self.plot_sat_adiabats()
~\miniconda3\lib\site-packages\tephigram_python\plotter.py in plot_pressure_lines(self, p, **kwargs)
226 lines = []
227 for P in P_:
--> 228 lines += self.plot_pressure_line(P=P, **kwargs)
229
230 return lines
~\miniconda3\lib\site-packages\tephigram_python\plotter.py in plot_pressure_line(self, P, p_label_format, z_label_format, label_inside, label_fontsize, alpha, **kwargs)
235 """
236 x0 = None
--> 237 T__ = np.linspace(T_min, T_max+10., 1000.)
238 theta_constP = -273.15 + self.f_theta(P, T__+273.15)
239
<__array_function__ internals> in linspace(*args, **kwargs)
~\miniconda3\lib\site-packages\numpy\core\function_base.py in linspace(start, stop, num, endpoint, retstep, dtype, axis)
111
112 """
--> 113 num = operator.index(num)
114 if num < 0:
115 raise ValueError("Number of samples, %s, must be non-negative." % num)
TypeError: 'float' object cannot be interpreted as an integer
sir please help me over this. I think there is an error related to Tephigram()
sir, whenever I am using the given codes then line containing tephigram= Tephigram() giving error as below: TypeError Traceback (most recent call last)