Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Hunter committed Apr 11, 2024
1 parent 33e0b38 commit 3e101df
Show file tree
Hide file tree
Showing 11 changed files with 47,736 additions and 46,404 deletions.
989 changes: 987 additions & 2 deletions _sources/ingestion.ipynb

Large diffs are not rendered by default.

1,118 changes: 533 additions & 585 deletions _sources/initial_analysis.ipynb

Large diffs are not rendered by default.

90,154 changes: 45,013 additions & 45,141 deletions _sources/sce_diffs.ipynb

Large diffs are not rendered by default.

739 changes: 359 additions & 380 deletions _sources/uncertainty_drilldown.ipynb

Large diffs are not rendered by default.

577 changes: 574 additions & 3 deletions ingestion.html

Large diffs are not rendered by default.

183 changes: 84 additions & 99 deletions initial_analysis.html

Large diffs are not rendered by default.

Binary file modified objects.inv
Binary file not shown.
64 changes: 28 additions & 36 deletions reports/initial_analysis.err.log
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
Traceback (most recent call last):
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-Yg9kLiuM-py3.10/lib/python3.10/site-packages/jupyter_cache/executors/utils.py", line 58, in single_nb_execution
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 782, in _async_poll_for_reply
msg = await ensure_async(self.kc.shell_channel.get_msg(timeout=new_timeout))
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/jupyter_core/utils/__init__.py", line 198, in ensure_async
result = await obj
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/jupyter_client/channels.py", line 315, in get_msg
raise Empty
_queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/jupyter_cache/executors/utils.py", line 58, in single_nb_execution
executenb(
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-Yg9kLiuM-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 1314, in execute
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 1314, in execute
return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-Yg9kLiuM-py3.10/lib/python3.10/site-packages/jupyter_core/utils/__init__.py", line 165, in wrapped
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/jupyter_core/utils/__init__.py", line 165, in wrapped
return loop.run_until_complete(inner)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-Yg9kLiuM-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 709, in async_execute
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 709, in async_execute
await self.async_execute_cell(
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-Yg9kLiuM-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 1062, in async_execute_cell
await self._check_raise_for_error(cell, cell_index, exec_reply)
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-Yg9kLiuM-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 918, 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:
------------------
cedf = ct.read_country_emissions()
------------------


---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[3], line 1
----> 1 cedf = ct.read_country_emissions()

File ~/work/carbonmap/science/tutorials/src/ctrace/data.py:104, in read_country_emissions(p)
 102 for fname in _files:
 103 _logger.debug(f"open {fname}")
--> 104 zf = ZipFile(Path(p) / fname)
 105 source_names = [
 106 n for n in zf.namelist() if n.endswith("_country_emissions.csv")
 107 ]
 108 _logger.debug(f"sources: {source_names}")

File /usr/lib/python3.10/zipfile.py:1251, in ZipFile.__init__(self, file, mode, compression, allowZip64, compresslevel, strict_timestamps)
 1249 while True:
 1250 try:
-> 1251 self.fp = io.open(file, filemode)
 1252 except OSError:
 1253 if filemode in modeDict:

FileNotFoundError: [Errno 2] No such file or directory: '/home/tjhunter/Downloads/agriculture.zip'
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 1005, in async_execute_cell
exec_reply = await self.task_poll_for_reply
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 806, in _async_poll_for_reply
error_on_timeout_execute_reply = await self._async_handle_timeout(timeout, cell)
File "/home/tjhunter/.cache/pypoetry/virtualenvs/climate-tutorials-nO4nxH9g-py3.10/lib/python3.10/site-packages/nbclient/client.py", line 856, in _async_handle_timeout
raise CellTimeoutError.error_from_timeout_and_cell(
nbclient.exceptions.CellTimeoutError: A cell timed out while it was being executed, after 30 seconds.
The message was: Cell execution timed out.
Here is a preview of the cell contents:
-------------------
# TODO: this specific query takes a while, understand why this is the case
sdf_gy.filter(c_subsector == "wastewater-treatment-and-discharge").head(3).collect()
-------------------

Loading

0 comments on commit 3e101df

Please sign in to comment.