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

PlotData raises TypeError #54

Open
wcarthur opened this issue Feb 18, 2018 · 0 comments
Open

PlotData raises TypeError #54

wcarthur opened this issue Feb 18, 2018 · 0 comments

Comments

@wcarthur
Copy link
Member

wcarthur commented Feb 18, 2018

Running PlotData on a small region generates a TypeError when plotting pressure data:

TypeError: 'numpy.float64' object cannot be interpreted as an index

Full traceback below:

2018-01-16 16:44:03: Plotting pressure data
2018-01-16 16:44:03: Plotting results:    5% complete
2018-01-16 16:44:03: Traceback (most recent call last):
2018-01-16 16:44:03: File "tcrm.py", line 634, in startup
2018-01-16 16:44:03: main(configFile)
2018-01-16 16:44:03: File "tcrm.py", line 53, in wrap
2018-01-16 16:44:03: res = f(*args, **kwargs)
2018-01-16 16:44:03: File "tcrm.py", line 536, in main
2018-01-16 16:44:03: doDataPlotting(configFile)
2018-01-16 16:44:03: File "/home/craig/tcrm/Utilities/parallel.py", line 70, in wrap
2018-01-16 16:44:03: return f(*args, **kwargs)
2018-01-16 16:44:03: File "tcrm.py", line 290, in doDataPlotting
2018-01-16 16:44:03: PrsPlot.plotPressure(pAllData)
2018-01-16 16:44:03: File "/home/craig/tcrm/PlotInterface/plotStats.py", line 250, in plotPressure
2018-01-16 16:44:03: xlim=(850, 1020), ylim=(850, 1020))
2018-01-16 16:44:03: File "/home/craig/tcrm/PlotInterface/plotStats.py", line 104, in scatterHistogram
2018-01-16 16:44:03: **kwargs)
2018-01-16 16:44:03: File "/home/craig/.local/lib/python2.7/site-packages/seaborn/distributions.py", line 1014, in jointplot
2018-01-16 16:44:03: grid.plot_marginals(distplot, **marginal_kws)
2018-01-16 16:44:03: File "/home/craig/.local/lib/python2.7/site-packages/seaborn/axisgrid.py", line 1224, in plot_marginals
2018-01-16 16:44:03: func(self.x, **kwargs)
2018-01-16 16:44:03: File "/home/craig/.local/lib/python2.7/site-packages/seaborn/distributions.py", line 576, in distplot
2018-01-16 16:44:03: color=hist_color, **hist_kws)
2018-01-16 16:44:03: File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1814, in inner
2018-01-16 16:44:03: return func(ax, *args, **kwargs)
2018-01-16 16:44:03: File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 6010, in hist
2018-01-16 16:44:03: m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
2018-01-16 16:44:03: File "/home/craig/.local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 729, in histogram
2018-01-16 16:44:03: n = np.zeros(bins, ntype)
2018-01-16 16:44:03: TypeError: 'numpy.float64' object cannot be interpreted as an index

Reported by Amit Ghosh (2018-01-17)

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

No branches or pull requests

1 participant