fafbseg.flywire.is_latest_root¶
- fafbseg.flywire.is_latest_root(id, timestamp=None, progress=True, *, dataset=None, **kwargs)[source]¶
Check if root is the current one.
- Parameters:
id (int | list-like) – Single ID or list of FlyWire (root) IDs.
timestamp (int | str | datetime | "mat", optional) – Checks if roots existed at given date (and time). Int must be unix timestamp. String must be ISO 8601 - e.g. ‘2021-11-15’. “mat” will use the timestamp of the most recent materialization. You can also use e.g. “mat_438” to get the root ID at a specific materialization.
progress (bool) – Whether to show progress bar.
dataset ("public" | "production" | "sandbox", optional) – Against which FlyWire dataset to query. If
None
will fall back to the default dataset (seeset_default_dataset()
).
- Returns:
Array of booleans
- Return type:
numpy array
See also
update_ids()
If you want the new ID. Also allows mapping to a specific time or materialization.
Examples
>>> from fafbseg import flywire >>> flywire.is_latest_root(720575940631693610) array([ True])