NeuroMorphoDownloadItem#
- class braincell.io.NeuroMorphoDownloadItem(kind, url, filename, path, downloaded_now, reason=None)[source]#
Result of a single file download for a neuron.
- Parameters:
kind (
str)url (
str) – URL the file was fetched from. Empty whendownloaded_nowisFalsebecause the plan was skipped.filename (
str) – Final filename inside the cache folder.path (
Path) – Absolute path of the downloaded (or expected) file.downloaded_now (
bool) –Truewhen this call wrote the file to disk;Falsewhen the file was already cached, the plan was skipped, or the call was a dry run.reason (
str|None) – Set when the file was skipped or the call was a dry run.