Skip to content

Commit 43008a5

Browse files
[pre-commit.ci] pre-commit autoupdate (#19)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v2.3.0 → v4.0.1](pre-commit/pre-commit-hooks@v2.3.0...v4.0.1) - [github.com/psf/black: 19.3b0 → 21.9b0](psf/black@19.3b0...21.9b0) - [github.com/kynan/nbstripout: master → 0.5.0](kynan/nbstripout@master...0.5.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8f0776e commit 43008a5

File tree

5 files changed

+22
-102
lines changed

5 files changed

+22
-102
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v4.0.1
44
hooks:
55
- id: check-yaml
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 19.3b0
9+
rev: 21.9b0
1010
hooks:
1111
- id: black
1212
- repo: https://github.com/kynan/nbstripout
13-
rev: master
13+
rev: 0.5.0
1414
hooks:
1515
- id: nbstripout

data/biodeg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
nArCOOR: Number of esters (aromatic),
4242
nX: Number of halogen atoms,
4343
experimental class: ready biodegradable (RB) and not ready biodegradable (NRB),
44-
}
44+
}

data/biodeg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ nN: Number of Nitrogen atoms
3939
SM6_B(m): Spectral moment of order 6 from Burden matrix weighted by mass
4040
nArCOOR: Number of esters (aromatic)
4141
nX: Number of halogen atoms
42-
experimental class: ready biodegradable (RB) and not ready biodegradable (NRB)
42+
experimental class: ready biodegradable (RB) and not ready biodegradable (NRB)

notebooks/.ipynb_checkpoints/README-checkpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ $ conda env create -f environment.yml
55
$ source activate dl-workshop
66
$ python -m ipykernel install --user --name dl-workshop
77
$ jupyter labextension install @jupyter-widgets/jupyterlab-manager
8-
```
8+
```

notebooks/appendix/02-partials.ipynb

Lines changed: 16 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -34,7 +34,7 @@
3434
},
3535
{
3636
"cell_type": "code",
37-
"execution_count": 2,
37+
"execution_count": null,
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "code",
54-
"execution_count": 3,
54+
"execution_count": null,
5555
"metadata": {},
5656
"outputs": [],
5757
"source": [
@@ -69,20 +69,9 @@
6969
},
7070
{
7171
"cell_type": "code",
72-
"execution_count": 4,
72+
"execution_count": null,
7373
"metadata": {},
74-
"outputs": [
75-
{
76-
"data": {
77-
"text/plain": [
78-
"23"
79-
]
80-
},
81-
"execution_count": 4,
82-
"metadata": {},
83-
"output_type": "execute_result"
84-
}
85-
],
74+
"outputs": [],
8675
"source": [
8776
"add_three(20)"
8877
]
@@ -96,26 +85,9 @@
9685
},
9786
{
9887
"cell_type": "code",
99-
"execution_count": 5,
88+
"execution_count": null,
10089
"metadata": {},
101-
"outputs": [
102-
{
103-
"data": {
104-
"text/plain": [
105-
"\u001b[0;31mSignature:\u001b[0m \u001b[0madd_three\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mb\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
106-
"\u001b[0;31mCall signature:\u001b[0m \u001b[0madd_three\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
107-
"\u001b[0;31mType:\u001b[0m partial\n",
108-
"\u001b[0;31mString form:\u001b[0m functools.partial(<function add at 0x163aaeaf0>, b=3)\n",
109-
"\u001b[0;31mFile:\u001b[0m ~/anaconda/envs/dl-workshop/lib/python3.9/functools.py\n",
110-
"\u001b[0;31mDocstring:\u001b[0m \n",
111-
"partial(func, *args, **keywords) - new function with partial application\n",
112-
"of the given arguments and keywords.\n"
113-
]
114-
},
115-
"metadata": {},
116-
"output_type": "display_data"
117-
}
118-
],
90+
"outputs": [],
11991
"source": [
12092
"add_three?"
12193
]
@@ -131,26 +103,9 @@
131103
},
132104
{
133105
"cell_type": "code",
134-
"execution_count": 6,
106+
"execution_count": null,
135107
"metadata": {},
136-
"outputs": [
137-
{
138-
"data": {
139-
"text/plain": [
140-
"\u001b[0;31mSignature:\u001b[0m \u001b[0madd_three_v2\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0ma\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mb\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
141-
"\u001b[0;31mCall signature:\u001b[0m \u001b[0madd_three_v2\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
142-
"\u001b[0;31mType:\u001b[0m partial\n",
143-
"\u001b[0;31mString form:\u001b[0m functools.partial(<function add at 0x163aaeaf0>, a=3)\n",
144-
"\u001b[0;31mFile:\u001b[0m ~/anaconda/envs/dl-workshop/lib/python3.9/functools.py\n",
145-
"\u001b[0;31mDocstring:\u001b[0m \n",
146-
"partial(func, *args, **keywords) - new function with partial application\n",
147-
"of the given arguments and keywords.\n"
148-
]
149-
},
150-
"metadata": {},
151-
"output_type": "display_data"
152-
}
153-
],
108+
"outputs": [],
154109
"source": [
155110
"add_three_v2 = partial(add, a=3)\n",
156111
"add_three_v2?"
@@ -181,20 +136,9 @@
181136
},
182137
{
183138
"cell_type": "code",
184-
"execution_count": 7,
139+
"execution_count": null,
185140
"metadata": {},
186-
"outputs": [
187-
{
188-
"data": {
189-
"text/plain": [
190-
"6"
191-
]
192-
},
193-
"execution_count": 7,
194-
"metadata": {},
195-
"output_type": "execute_result"
196-
}
197-
],
141+
"outputs": [],
198142
"source": [
199143
"add_three_v2(b=3)"
200144
]
@@ -210,7 +154,7 @@
210154
},
211155
{
212156
"cell_type": "code",
213-
"execution_count": 8,
157+
"execution_count": null,
214158
"metadata": {},
215159
"outputs": [],
216160
"source": [
@@ -229,20 +173,9 @@
229173
},
230174
{
231175
"cell_type": "code",
232-
"execution_count": 9,
176+
"execution_count": null,
233177
"metadata": {},
234-
"outputs": [
235-
{
236-
"data": {
237-
"text/plain": [
238-
"8"
239-
]
240-
},
241-
"execution_count": 9,
242-
"metadata": {},
243-
"output_type": "execute_result"
244-
}
245-
],
178+
"outputs": [],
246179
"source": [
247180
"def make_add_something(value):\n",
248181
" def closed_function(b):\n",
@@ -255,22 +188,9 @@
255188
},
256189
{
257190
"cell_type": "code",
258-
"execution_count": 10,
191+
"execution_count": null,
259192
"metadata": {},
260-
"outputs": [
261-
{
262-
"data": {
263-
"text/plain": [
264-
"\u001b[0;31mSignature:\u001b[0m \u001b[0madd_three_v3\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mb\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
265-
"\u001b[0;31mDocstring:\u001b[0m <no docstring>\n",
266-
"\u001b[0;31mFile:\u001b[0m ~/github/tutorials/dl-workshop/notebooks/appendix-01-functional-programming/<ipython-input-9-78be55fdfc22>\n",
267-
"\u001b[0;31mType:\u001b[0m function\n"
268-
]
269-
},
270-
"metadata": {},
271-
"output_type": "display_data"
272-
}
273-
],
193+
"outputs": [],
274194
"source": [
275195
"add_three_v3?"
276196
]

0 commit comments

Comments
 (0)