Code Monkey home page Code Monkey logo

iozone-results-comparator's People

Contributors

mkocka avatar pbenas avatar

Watchers

 avatar

iozone-results-comparator's Issues

ValueError: invalid literal for int() with base 10: '5 13301'

What steps will reproduce the problem?
(attempted this on osx 10.9 and ubuntu 12.04)
1. Download git repo based on wiki instructions (git clone 
https://code.google.com/p/iozone-results-comparator/)
2. Navigate to iozone_results_comparator.py
3. Send comparison command based on output I have (e.g. 
./iozone_results_comparator.py --baseline ~/Downloads/result1.iozone --set1 
~/Downloads/results2.iozone

What is the expected output? What do you see instead?
I was hoping the tool would generate the graphical output that you see from the 
example setup it has. Currently it just prints the following error to my 
console:
ValueError: invalid literal for int() with base 10: '5  13301'

I have attached the output in a text file as it doesn't look so pretty on here.


What version of the product are you using? On what operating system?
The last rev that was checked (0ba5f4484af0).

Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 19 Dec 2014 at 12:35

Attachments:

Tracebacks (matplotlib version mismatch?)

What steps will reproduce the problem?
1. clone the git repository (on Ubuntu 12.04)
2. run the script as of exaplained on the wiki

What is the expected output? What do you see instead?

The script fails with the following traceback:

Traceback (most recent call last):
  File "/home/david/hg/public/iozone-results-comparator/src/iozone_results_comparator.py", line 132, in <module>
    comparator.compare()
  File "/home/david/hg/public/iozone-results-comparator/src/iozone_results_comparator.py", line 98, in compare
    self.html.normal_mode()
  File "/home/david/hg/public/iozone-results-comparator/src/html.py", line 128, in normal_mode
    self.norm_operation(op)            
  File "/home/david/hg/public/iozone-results-comparator/src/html.py", line 142, in norm_operation
    self.norm_percentual(Op)
  File "/home/david/hg/public/iozone-results-comparator/src/html.py", line 267, in norm_percentual
    self.plotter.percentual_plot(Op, self.fs)
  File "/home/david/hg/public/iozone-results-comparator/src/plotter.py", line 176, in percentual_plot
    plt.scatter(baseX, baseY, baseDia, colorsSlower[catNr], label='Slower in Set1 ' + name)
  File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 2557, in scatter
    ret = ax.scatter(x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, faceted, verts, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 5876, in scatter
    self.add_collection(collection)
  File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1445, in add_collection
    self.update_datalim(collection.get_datalim(self.transData))
  File "/usr/lib/pymodules/python2.7/matplotlib/collections.py", line 160, in get_datalim
    offsets = transOffset.transform_non_affine(offsets)
  File "/usr/lib/pymodules/python2.7/matplotlib/transforms.py", line 1922, in transform_non_affine
    self._a.transform(points))
  File "/usr/lib/pymodules/python2.7/matplotlib/transforms.py", line 1415, in transform
    return affine_transform(points, mtx)
ValueError: Invalid vertices array.


If I fix it by removing str calls:

-------------------------------- src/plotter.py --------------------------------
index 71b7ae0..d01e899 100644
@@ -157,12 +157,12 @@ class Plotter:
                 if (pcnt < categories[catNr]) or (pcnt >= categories[catNr + 1]): 
                     continue
                 if set1Avg > baseAvg:
-                    set1X.append(str(fs))
-                    set1Y.append(str(bs))
+                    set1X.append(fs)
+                    set1Y.append(bs)
                     set1Dia.append(10 * pcnt)
                 else:
-                    baseX.append(str(fs))
-                    baseY.append(str(bs))
+                    baseX.append(fs)
+                    baseY.append(bs)
                     baseDia.append(10 * pcnt)

             intLeft = str(categories[catNr])


It runs up to the next traceback:

Traceback (most recent call last):
  File "/home/david/hg/public/iozone-results-comparator/src/iozone_results_comparator.py", line 132, in <module>
    comparator.compare()
  File "/home/david/hg/public/iozone-results-comparator/src/iozone_results_comparator.py", line 98, in compare
    self.html.normal_mode()
  File "/home/david/hg/public/iozone-results-comparator/src/html.py", line 128, in normal_mode
    self.norm_operation(op)            
  File "/home/david/hg/public/iozone-results-comparator/src/html.py", line 142, in norm_operation
    self.norm_percentual(Op)
  File "/home/david/hg/public/iozone-results-comparator/src/html.py", line 267, in norm_percentual
    self.plotter.percentual_plot(Op, self.fs)
  File "/home/david/hg/public/iozone-results-comparator/src/plotter.py", line 185, in percentual_plot
    plt.legend(loc = 'upper left', scatterpoints = 1, fontsize = 10)
  File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 2800, in legend
    ret =  gca().legend(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 4519, in legend
    self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'fontsize'


It runs then fine if I remove this fontsize argument.


What version of the product are you using? On what operating system?


My system is an Ubuntu 12.04 (using matplotlib 1.1.1, but I've also tried 
with matplotlib 1.3)



Original issue reported on code.google.com by [email protected] on 9 Sep 2013 at 10:38

multiset function don't work

What steps will reproduce the problem?
1. get latest version 
2. Install on debian wheezy

aptitude install iozone3 python-numpy python-scipy python-matplotlib 
python-jinja2 python-pip libpng12-0-dev libfreetype6 libfreetype6-dev
easy_install -U distribute
easy_install -U matplotlib

for info:

pip freeze
Jinja2==2.6
MarkupSafe==0.15
PIL==1.1.7
argparse==1.2.1
distribute==0.7.3
matplotlib==1.4.2
medusa==0.5.4
meld3==0.6.5
mock==1.0.1
nose==1.3.4
numpy==1.6.2
pyparsing==1.5.6
python-apt==0.8.8.2
python-dateutil==1.5
pytz==2012rc0
scipy==0.10.1
six==1.9.0
supervisor==3.0a8
wsgiref==0.1.2

#dpkg -l|grep python
libpython2.6 2.6.8-1.1
libpython2.7 2.7.3-6+deb7u2
python 2.7.3-4+deb7u1
python-apt 0.8.8.2
python-apt-common 0.8.8.2
python-cairo 1.8.8-1+b2
python-dateutil 1.5+dfsg-0.1
python-dev 2.7.3-4+deb7u1
python-gi 3.2.2-2
python-glade2 2.24.0-3+b1
python-gobject 3.2.2-2
python-gobject-2 2.28.6-10
python-gtk2 2.24.0-3+b1
python-imaging 1.1.7-4+deb7u1
python-jinja2 2.6-1
python-markupsafe 0.15-1
python-matplotlib 1.1.1~rc2-1
python-matplotlib-data 1.1.1~rc2-1
python-medusa 1:0.5.4-7
python-meld3 0.6.5-3.1
python-minimal 2.7.3-4+deb7u1
python-numpy 1:1.6.2-1.2
python-pip 1.1-3
python-pkg-resources 0.6.24-1
python-pyparsing 1.5.6+dfsg1-2
python-scipy 0.10.1+dfsg2-1
python-setuptools 0.6.24-1
python-support 1.0.15
python-tk 2.7.3-1
python-tz 2012c-1
python2.6 2.6.8-1.1
python2.6-dev 2.6.8-1.1
python2.6-minimal 2.6.8-1.1
python2.7 2.7.3-6+deb7u2
python2.7-dev 2.7.3-6+deb7u2
python2.7-minimal 2.7.3-6+deb7u2


3. launch multiset

./iozone_results_comparator.py --baseline 
/data/LH56/iozone.tmp-sign-2015-01-22-1456-1.iozone --set1 
/data/LH7/iozone.tmp-sign-2015-01-23-0813-1.iozone --set2 
/data/LH8/iozone.tmp-sign-2015-01-23-0840-1.iozone  --multiset
Processing...
Traceback (most recent call last):
  File "./iozone_results_comparator.py", line 137, in <module>
    comparator.multiset_mode()
  File "./iozone_results_comparator.py", line 126, in multiset_mode
    self.html.multiset_mode()
  File "/root/iozone-comparator/html.py", line 303, in multiset_mode
    self.multiset_operation(op)            
  File "/root/iozone-comparator/html.py", line 310, in multiset_operation
    self.htmldoc.write(self.googlecharts.multiset_plot(op, self.multiset.fs, 'fs'))
  File "/root/iozone-comparator/googlecharts.py", line 103, in multiset_plot
    for xVal in range(0, len(Source['baseline'][Op].medians)):
KeyError: 'randwr'



Original issue reported on code.google.com by [email protected] on 26 Jan 2015 at 4:00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.