Skip to content

Commit

Permalink
export
Browse files Browse the repository at this point in the history
  • Loading branch information
fenke committed Jul 5, 2024
1 parent 50f5256 commit 725a968
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 33 deletions.
13 changes: 13 additions & 0 deletions corebridge/rscript.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/02_rscriptbridge.ipynb.

# %% auto 0
__all__ = []

# %% ../nbs/02_rscriptbridge.ipynb 3
import json, os
import subprocess
import warnings

from functools import reduce


8 changes: 4 additions & 4 deletions nbs/01_aicorebridge.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"outputs": [],
"source": [
"#| hide\n",
"addroot.sys.path.append(addroot.os.path.join(addroot.project_root, 'corebridge'))"
"#addroot.sys.path.append(addroot.os.path.join(addroot.project_root, 'corebridge'))"
]
},
{
Expand Down Expand Up @@ -822,7 +822,7 @@
"]\n",
"Result Message\n",
" [\n",
" \"Startup time: 2024-06-27T07:39:55.974705+00:00\",\n",
" \"Startup time: 2024-07-05T07:59:40.492169+00:00\",\n",
" \"test_function((data: pandas.core.frame.DataFrame, anumber: float | numpy.ndarray = 0))\",\n",
" \"init_args: (1, 2), init_kwargs: {'num_1': 3, 'num_2': 4, 'assets_dir': None, 'save_dir': '/home/fenke/repos/corebridge/nbs/cache'}\",\n",
" \"lastSeen: False, recordformat: records, timezone: Europe/Amsterdam\",\n",
Expand Down Expand Up @@ -931,7 +931,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Loading corebridge.aicorebridge 0.2.14 from /home/fenke/repos/corebridge/corebridge/aicorebridge.py\n"
"Loading corebridge.aicorebridge 0.2.15 from /home/fenke/repos/corebridge/corebridge/aicorebridge.py\n"
]
}
],
Expand Down Expand Up @@ -981,7 +981,7 @@
"]\n",
"Result Message\n",
" [\n",
" \"Startup time: 2024-06-27T07:39:56.067780+00:00\",\n",
" \"Startup time: 2024-07-05T07:59:40.611130+00:00\",\n",
" \"test_function((data: pandas.core.frame.DataFrame, anumber: float | numpy.ndarray = 0))\",\n",
" \"init_args: (1, 2), init_kwargs: {'num_1': 3, 'num_2': 4, 'assets_dir': None, 'save_dir': '/home/fenke/repos/corebridge/nbs/cache'}\",\n",
" \"lastSeen: False, recordformat: records, timezone: Europe/Amsterdam\",\n",
Expand Down
2 changes: 1 addition & 1 deletion nbs/02_rscriptbridge.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@
"\n",
"if md5_check_result.returncode:\n",
" run_script_result = subprocess.run(\n",
" ['Rscript', '--vanilla', os.path.join(assets_dir, script_name)],\n",
" ['Rscript', '--vanilla', get_asset_path(script_name)],\n",
" cwd=save_dir,\n",
" capture_output=True\n",
" )\n",
Expand Down
31 changes: 3 additions & 28 deletions nbs/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -176,27 +176,8 @@
"\n",
" nbdev_install_quarto\n",
"\n",
"But this ask for the system admin password.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"But this ask for the system admin password.\n",
"\n",
"\n",
"### Local editing & testing\n",
"\n",
Expand All @@ -212,13 +193,7 @@
"```\n",
" pip install -e .[dev]\n",
"\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```\n",
"### nbdev cycle\n",
"\n",
"- edit\n",
Expand Down

0 comments on commit 725a968

Please sign in to comment.