get_data() to return an iterator object to retrieve data from file automatically
(suggested by @marcus.oscarsson )
When long scans are finished, get_data()
may return partial data because only 2048 samples are kept in redis for a stream.
Ideally, get_data()
could have an option to return an iterator to be able to go through all data, reading from the saved file if scan is finished.