Skip to content

Commit

Permalink
deploy: eb09963
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuboudreau committed Feb 7, 2024
1 parent 7c55610 commit db36ba8
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 86 deletions.
Binary file removed _images/index_51_0.png
Binary file not shown.
86 changes: 0 additions & 86 deletions index.html

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions reports/index.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/jupyter_cache/executors/utils.py", line 51, in single_nb_execution
executenb(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/nbclient/client.py", line 1204, in execute
return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/nbclient/util.py", line 84, in wrapped
return just_run(coro(*args, **kwargs))
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/nbclient/util.py", line 62, in just_run
return loop.run_until_complete(coro)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/nbclient/client.py", line 663, in async_execute
await self.async_execute_cell(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/nbclient/client.py", line 965, in async_execute_cell
await self._check_raise_for_error(cell, cell_index, exec_reply)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/nbclient/client.py", line 862, in _check_raise_for_error
raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
# Download data and define path variables

# Google Colab-Only
if notebook=='colab':
!datalad install https://github.com/OpenNeuroDatasets/ds004906.git
os.chdir("ds004906")
!datalad get . # uncomment for production
# !datalad get sub-01/ # debugging
# Get derivatives containing manual labels
!datalad get derivatives

if notebook!='colab':
os.chdir("../data/rf-shimming-7t/ds004906")
if notebook=='neurolibre-clean':
flist = open('cleanup.txt', 'r')
for f in flist:
fname = f.rstrip('\n')
fname = Path(os.getcwd()) / Path(fname)

# or, if you get rid of os.chdir(path) above,
# fname = os.path.join(path, f.rstrip())
if os.path.isfile(fname): # this makes the code more robust
print('Removing file: ' + str(fname))
os.remove(fname)
elif os.path.isdir(fname):
print('Removing directory: ' + str(fname))
rmtree(fname)

# also, don't forget to close the text file:
flist.close()

------------------

---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[5], line 13
 10 get_ipython().system('datalad get derivatives')
 12 if notebook!='colab':
---> 13 os.chdir("../data/rf-shimming-7t/ds004906")
 14 if notebook=='neurolibre-clean':
 15 flist = open('cleanup.txt', 'r')

FileNotFoundError: [Errno 2] No such file or directory: '../data/rf-shimming-7t/ds004906'
FileNotFoundError: [Errno 2] No such file or directory: '../data/rf-shimming-7t/ds004906'

0 comments on commit db36ba8

Please sign in to comment.