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

Cannot generate the HTML interactive report file #25

Open
aldabrada opened this issue Dec 13, 2018 · 2 comments
Open

Cannot generate the HTML interactive report file #25

aldabrada opened this issue Dec 13, 2018 · 2 comments

Comments

@aldabrada
Copy link

aldabrada commented Dec 13, 2018

Hello,

While using pyNmonParser -b -o testReport -i test.nmon I'm getting this error:

INFO - Preparing CSV files..
INFO - Preparing interactive Report..
Traceback (most recent call last):
File "/usr/local/bin/pyNmonAnalyzer", line 11, in
sys.exit(pyNmonAnalyzer())
File "/usr/local/lib/python3.6/dist-packages/pynmonanalyzer/pyNmonAnalyzer.py", line 114, in init
self.processedData, self.args.dygraphLoc)
File "/usr/local/lib/python3.6/dist-packages/pynmonanalyzer/pyNmonAnalyzer.py", line 308, in buildInteractiveReport
reportConfig, self.args.outdir, data=data, dygraphLoc=dygraphLoc)
File "/usr/local/lib/python3.6/dist-packages/pynmonanalyzer/pyNmonReport.py", line 107, in createInteractiveReport
if max(numericArray) > localMax or localMax == None:
TypeError: '>' not supported between instances of 'float' and 'NoneType'

And while I can see the csv folder and its contents, the interactiveReport.html file is empty (0 Kb)

Can anyone tell me what could be the the reason behind this error?

@wsxzhmzwdfxeds
Copy link

change the compare order in pyNmonReport.py line 107:

if localMax == None or max(numericArray) > localMax: localMax = max(numericArray) if localMin == None or min(numericArray) < localMin: localMin = min(numericArray)

@WuJianyu-CN
Copy link

change the compare order in pyNmonReport.py line 107:

if localMax == None or max(numericArray) > localMax: localMax = max(numericArray) if localMin == None or min(numericArray) < localMin: localMin = min(numericArray)

It works! Thanks.

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

3 participants