NeuroMorphoDownloadItem

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 when downloaded_now is False because 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) – True when this call wrote the file to disk; False when 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.