You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jaybgager edited this page Sep 29, 2026
·
2 revisions
Checks a list of segment IDs to see which are current and which are outdated.
Arguments:
datastack (string, mandatory)
the name of the CAVE datastack the segment IDs are from (e.g. "brain_and_nerve_cord")
seg_ids (list of integers, mandatory)
a list of segment IDs to check the freshness of
Returns:
freshness_list (list of booleans)
a list of True/False values for each segment ID, denoting whether they're fresh or not
Example
INPUT:
import tracertools as tt
# defines a list of potentially-outdated IDs
stale_ids = [
720575940379940739, # outdated #
720575941535667946, # current #
720575941539599858, # current #
720575940380068115, # outdated #
720575941609391725, # current #
720575940380207581, # outdated #
]
is_fresh = tt.check_seg_freshness(
datastack = "brain_and_nerve_cord",
seg_ids = stale_ids,
)
print(is_fresh)
OUTPUT:
[False, True, True, False, True, False]
Note
The freshness status of the example segment IDs may have changed since the writing of this example if any of them have been edited. If this is the case, running the above code may give you an output with more False results.