Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError in demo_prepare.ipynb #154

Open
vncntprvst opened this issue Mar 27, 2023 · 1 comment
Open

FileNotFoundError in demo_prepare.ipynb #154

vncntprvst opened this issue Mar 27, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vncntprvst
Copy link

Bug Report

Description

The repo's Instructions say: "We recommend you start by navigating to the notebooks directory on the left panel and go through the demo_prepare.ipynb".
When executing code cell 5 in that notebook

populate_settings = {"display_progress": True}

ephys.EphysRecording.populate(**populate_settings)

a FileNotFoundError occurs.

Reproducibility

Repository environment created with Dev Containers extension.
Navigate to demo_prepare.ipynb notebook, select kernel and execute code.
Error stack:

Output exceeds the [size limit](command:workbench.action.openSettings?[). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?5cae5363-0515-4d6b-9fe4-f0979c9a6448)
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
Cell In[5], line 3
      1 populate_settings = {"display_progress": True}
----> 3 ephys.EphysRecording.populate(**populate_settings)

File /usr/local/lib/python3.9/site-packages/datajoint/autopopulate.py:241, in AutoPopulate.populate(self, suppress_errors, return_exception_objects, reserve_jobs, order, limit, max_calls, display_progress, processes, make_kwargs, *restrictions)
    237 if processes == 1:
    238     for key in (
    239         tqdm(keys, desc=self.__class__.__name__) if display_progress else keys
    240     ):
--> 241         error = self._populate1(key, jobs, **populate_kwargs)
    242         if error is not None:
    243             error_list.append(error)

File /usr/local/lib/python3.9/site-packages/datajoint/autopopulate.py:292, in AutoPopulate._populate1(self, key, jobs, suppress_errors, return_exception_objects, make_kwargs)
    290 self.__class__._allow_insert = True
    291 try:
--> 292     make(dict(key), **(make_kwargs or {}))
    293 except (KeyboardInterrupt, SystemExit, Exception) as error:
    294     try:

File /usr/local/lib/python3.9/site-packages/element_array_ephys/ephys_acute.py:291, in EphysRecording.make(self, key)
    289 def make(self, key):
    290     """Populates table with electrophysiology recording information."""
...
     43     "No valid full-path found (from {})"
     44     " for {}".format(root_directories, relative_path)
     45 )

FileNotFoundError: No valid full-path found (from [PosixPath('/workspaces/workflow-array-ephys/example_data/raw'), PosixPath('/workspaces/workflow-array-ephys/example_data/processed')]) for subject5/session1

Expected Behavior

The data should be downloaded first then used to populate the database.

@vncntprvst vncntprvst added the bug Something isn't working label Mar 27, 2023
@kabilar
Copy link
Collaborator

kabilar commented Apr 5, 2023

Thanks for the report @vncntprvst.

  • We recommend using GitHub Codespaces for tutorials which will have the example data automatically mounted.

  • We will be adding a tutorial.ipynb notebook shortly that provides a more comprehensive overview of the Element and Workflow.

  • Once you are ready to run the workflow on your data, you can set up the workflow locally.

@kabilar kabilar self-assigned this May 2, 2023
@kabilar kabilar transferred this issue from datajoint/workflow-array-ephys Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants