imperial-qore / pyJMT

Python wrapper for Java Modelling Tools
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Dictionary does not contain all results #1

Closed bbbrandyn closed 7 months ago

bbbrandyn commented 7 months ago

When attempting to view the output metrics as a dictionary, only the latest one will show.

model.addMetric(openclass, queue, jmt.Metrics.RESPONSE_TIME)  
model.addMetric(openclass, queue, jmt.Metrics.QUEUE_TIME)  
model.addMetric(openclass, queue, jmt.Metrics.UTILIZATION)  
results_dict = model.getResults()  
print(results_dict["myQueue"])

Output:

{'Class1': {'meanValue': '0.496953737041098', 'nodeType': 'station', 'precision': '0.03', 'alfa': '0.01', 'analyzedSamples': '46080', 'measureType': 'Utilization', 'successful': 'true', 'discardedSamples': '630', 'maxSamples': '1000000', 'upperLimit': '0.5090235375229217', 'lowerLimit': '0.48488393655927425'}}

I can only view utilization which was the last metric added

gcasale commented 7 months ago

Thank you - we will look into this. Could you please share the full script?

gcasale commented 7 months ago

This should now be fixed by the last commit.