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

about make_plots_and_stats --input links.blp --out stats/ and Exception ValueError: 'zero-size array to reduction operation minimum which has no identity' in 'primo.linking.plots_and_stats.PlotHistogram' ignored #6

Open
shipanda opened this issue Jul 11, 2017 · 0 comments

Comments

@shipanda
Copy link

The command line is like follow and there is an Exception ValueError: 'zero-size array to reduction operation minimum which has no identity' in 'primo.linking.plots_and_stats.PlotHistogram' ignored.
How to deal with it?

xxx$ make_plots_and_stats --input links.blp --out stats/
2017-07-11 12:03:27,441 [root] [INFO ] Loading file links.blp.
2017-07-11 12:03:27,444 [root] [INFO ] Loaded 21 Intent links.
2017-07-11 12:03:27,445 [root] [INFO ] Plotting probability distribution CDF.
/usr/lib/pymodules/python2.7/matplotlib/font_manager.py:1236: UserWarning: findfont: Font family ['Times New Roman'] not found. Falling back to Bitstream Vera Sans
(prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/pymodules/python2.7/matplotlib/font_manager.py:1246: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=22.0. Returning /usr/share/matplotlib/mpl-data/fonts/ttf/cmb10.ttf
UserWarning)
2017-07-11 12:03:28,078 [root] [INFO ] Finished plotting probability distribution CDF.
2017-07-11 12:03:28,079 [root] [INFO ] Plotting probability distribution histogram.
2017-07-11 12:03:28,383 [root] [INFO ] Finished plotting probability distribution histogram.
2017-07-11 12:03:28,384 [root] [INFO ] Plotting probability distribution by inter/intra app Intent.
/usr/lib/pymodules/python2.7/matplotlib/font_manager.py:1246: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=32.0. Returning /usr/share/matplotlib/mpl-data/fonts/ttf/cmb10.ttf
UserWarning)
/usr/lib/pymodules/python2.7/matplotlib/axes.py:8261: UserWarning: 2D hist input should be nsamples x nvariables;
this looks transposed (shape is 0 x 1)
'this looks transposed (shape is %d x %d)' % x.shape[::-1])
Exception ValueError: 'zero-size array to reduction operation minimum which has no identity' in 'primo.linking.plots_and_stats.PlotHistogram' ignored
Exception ValueError: 'zero-size array to reduction operation minimum which has no identity' in 'primo.linking.plots_and_stats.PlotHistogram' ignored
Exception ValueError: 'zero-size array to reduction operation minimum which has no identity' in 'primo.linking.plots_and_stats.PlotHistogram' ignored
2017-07-11 12:03:28,785 [root] [INFO ] Finished plotting histograms.
2017-07-11 12:03:28,785 [root] [INFO ] Computing Intent connectivities.
2017-07-11 12:03:28,800 [root] [INFO ] Finished computing Intent connectivities from Intent links.
2017-07-11 12:03:28,800 [root] [INFO ] Computing connectivity CDFs.
/usr/lib/pymodules/python2.7/matplotlib/axes.py:8332: RuntimeWarning: divide by zero encountered in true_divide
m = (m.astype(float) / db) / m.sum()
/usr/lib/pymodules/python2.7/matplotlib/axes.py:8332: RuntimeWarning: invalid value encountered in true_divide
m = (m.astype(float) / db) / m.sum()
/usr/lib/pymodules/python2.7/matplotlib/axes.py:8348: RuntimeWarning: invalid value encountered in multiply
n = [(m * np.diff(bins))[slc].cumsum()[slc] for m in n]
/usr/lib/pymodules/python2.7/matplotlib/axes.py:2536: UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=1.0, right=1.0

  • 'left=%s, right=%s') % (left, right))
    2017-07-11 12:03:29,001 [root] [INFO ] Plotting link CDF.
    2017-07-11 12:03:29,200 [root] [INFO ] Finished plotting link CDF.
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