Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please have look and reply fast!!!!!!! #7

Open
singhvasu1626 opened this issue Sep 11, 2021 · 0 comments
Open

please have look and reply fast!!!!!!! #7

singhvasu1626 opened this issue Sep 11, 2021 · 0 comments

Comments

@singhvasu1626
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant