OpenIxia / IxNetwork

A central location for IxNetwork sample scripts and utilities. Please also visit http://openixia.com
MIT License
50 stars 59 forks source link

Incorrect snapshot file at debugging session #137

Closed ErikCoen closed 1 week ago

ErikCoen commented 2 years ago

If you like to debug the sample code like DemoScripts\loadConfigFile.py, you should not set a breakpoint between 2 lines: trafficItemStatistics = session.StatViewAssistant(...) ... last row read like: rxFrames = trafficItemStatistics.Rows[0]['Rx Frames']

It will cause a wrong time stamp so at readout of a snapshot csv file, this file does not exist.

I think the variable 'snapshot_name' is not updated with correct timestamp. Have a look at this picture.

image

ErikCoen commented 2 years ago

Suppose you have slow machine (windows / linux), the processing time is not fast. It can cause a file IO error due to wrong time stamp.

hubogee commented 1 week ago

Noted! Thanks!