Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
4d85c099
Commit
4d85c099
authored
3 years ago
by
Robert Rosca
Browse files
Options
Downloads
Patches
Plain Diff
Add root argument, change in/out folders
parent
75f97897
No related branches found
No related tags found
1 merge request
!466
Feat/user notebooks
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
notebooks/test/test-cli.ipynb
+8
-11
8 additions, 11 deletions
notebooks/test/test-cli.ipynb
with
8 additions
and
11 deletions
notebooks/test/test-cli.ipynb
+
8
−
11
View file @
4d85c099
...
...
@@ -19,8 +19,11 @@
"metadata": {},
"outputs": [],
"source": [
"in_folder = \"/dev/null\" # input folder\n",
"out_folder = \"/dev/null\" # output folder\n",
"root = \"root/path/for/nb\" # Variables included in the user notebook path must\n",
"# be included in the notebook for reasons\n",
"\n",
"in_folder = \"./\" # input folder\n",
"out_folder = \"./\" # output folder\n",
"list_normal = [10] # parameterized list, range allowed\n",
"list_intellilist = [2345] # parameterized list with ranges, range allowed\n",
"concurrency_parameter = [1] # concurrency parameter, range allowed\n",
...
...
@@ -56,15 +59,9 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.6.8 64-bit",
"name": "python3"
},
"language_info": {
"name": "python",
"version": ""
}
"language_info": {},
"orig_nbformat": 3
},
"nbformat": 4,
"nbformat_minor": 0
}
}
\ No newline at end of file
%% Cell type:markdown id: tags:
# Test Notebook - CLI
Author: Robert Rosca
Version: 0.1
Notebook for use with the unit and continuous integration tests.
%% Cell type:code id: tags:
```
in_folder = "/dev/null" # input folder
out_folder = "/dev/null" # output folder
root = "root/path/for/nb" # Variables included in the user notebook path must
# be included in the notebook for reasons
in_folder = "./" # input folder
out_folder = "./" # output folder
list_normal = [10] # parameterized list, range allowed
list_intellilist = [2345] # parameterized list with ranges, range allowed
concurrency_parameter = [1] # concurrency parameter, range allowed
number = 0 # parameterized number
```
%% Cell type:markdown id: tags:
Tests notebook execution by just creating an empty file in the output directory.
%% Cell type:code id: tags:
```
from pathlib import Path
```
%% Cell type:code id: tags:
```
in_folder = Path(in_folder)
(in_folder / "touch").touch()
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment