Make `get_tuids_containing` inclusive
We have a function called get_tuids_containing
which generates a list of tuids between two particular timestamps
The function is called like this:
tuids = get_tuids_containing("name", t_start=t_start, t_stop=t_stop)
It searches for TUIDs from t_start
, inclusive, until t_stop
, exclusive. That is, it which search up until the TUID before t_stop
. So if you are running a multifile experiment, you have to put in the next TUID after the end of your experiment.
As a user, I have found this functionality to be awkward for a number of reasons, and I would rather that t_stop
was also inclusive.
For one thing, it's awkward when you have to search up until the latest TUID that has been generated, as there is no later TUID that you can enter. Of course, you can put in t_stop=None
, but its just annoying to have to put in two different things depending on whether an experiment is the last thing you ran. Sometimes, I have to start by puting in t_stop=None
, then I have to change it to an actual TUID number if I want to run the analysis again after I have run more experiments.
Another thing is, when doing multifile analyses, we may have a list of TUIDs for all the sub-experimemts which we ran. But we might not necessarily know the TUID of the next experiment that was run after our multifile experiment was finished. Thus, we do not know what timestamp to put in to get the list of TUIDs we want. If we simply put in the last TUID of our experiment, we will miss this last TUID from the end of our list. This would be solved if we searched up to t_stop
inclusive.