Skip to content

Commit 920595e

Browse files
authored
Merge pull request #5 from CCPBioSim/fixes
Fixes for deployment tests
2 parents 0f5d71e + fc7e6ee commit 920595e

File tree

7 files changed

+57
-13
lines changed

7 files changed

+57
-13
lines changed

02_lists.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@
7575
{
7676
"cell_type": "code",
7777
"execution_count": null,
78-
"metadata": {},
78+
"metadata": {
79+
"tags": [
80+
"raises-exception"
81+
]
82+
},
7983
"outputs": [],
8084
"source": [
8185
"a[3]"

03_dictionaries.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@
6161
{
6262
"cell_type": "code",
6363
"execution_count": null,
64-
"metadata": {},
64+
"metadata": {
65+
"tags": [
66+
"raises-exception"
67+
]
68+
},
6569
"outputs": [],
6670
"source": [
6771
"a['fish']"

04_functions.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@
168168
{
169169
"cell_type": "code",
170170
"execution_count": null,
171-
"metadata": {},
171+
"metadata": {
172+
"tags": [
173+
"raises-exception"
174+
]
175+
},
172176
"outputs": [],
173177
"source": [
174178
"list5 = multiply(list1)"

08_class_documentation.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@
255255
{
256256
"cell_type": "code",
257257
"execution_count": null,
258-
"metadata": {},
258+
"metadata": {
259+
"tags": [
260+
"raises-exception"
261+
]
262+
},
259263
"outputs": [],
260264
"source": [
261265
"p.setHeight(\"cat\")"

09_exceptions.ipynb

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@
8888
{
8989
"cell_type": "code",
9090
"execution_count": null,
91-
"metadata": {},
91+
"metadata": {
92+
"tags": [
93+
"raises-exception"
94+
]
95+
},
9296
"outputs": [],
9397
"source": [
9498
"setHeight(-5)"
@@ -129,7 +133,11 @@
129133
{
130134
"cell_type": "code",
131135
"execution_count": null,
132-
"metadata": {},
136+
"metadata": {
137+
"tags": [
138+
"raises-exception"
139+
]
140+
},
133141
"outputs": [],
134142
"source": [
135143
"setHeight(400)"
@@ -170,7 +178,11 @@
170178
{
171179
"cell_type": "code",
172180
"execution_count": null,
173-
"metadata": {},
181+
"metadata": {
182+
"tags": [
183+
"raises-exception"
184+
]
185+
},
174186
"outputs": [],
175187
"source": [
176188
"setHeight(-10)"

10_error_handling.ipynb

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
{
3434
"cell_type": "code",
3535
"execution_count": null,
36-
"metadata": {},
36+
"metadata": {
37+
"tags": [
38+
"raises-exception"
39+
]
40+
},
3741
"outputs": [],
3842
"source": [
3943
"setHeight(\"cat\")"
@@ -72,7 +76,11 @@
7276
{
7377
"cell_type": "code",
7478
"execution_count": null,
75-
"metadata": {},
79+
"metadata": {
80+
"tags": [
81+
"raises-exception"
82+
]
83+
},
7684
"outputs": [],
7785
"source": [
7886
"setHeight(\"cat\")"
@@ -105,7 +113,11 @@
105113
{
106114
"cell_type": "code",
107115
"execution_count": null,
108-
"metadata": {},
116+
"metadata": {
117+
"tags": [
118+
"raises-exception"
119+
]
120+
},
109121
"outputs": [],
110122
"source": [
111123
"setHeight(\"cat\")"
@@ -123,7 +135,11 @@
123135
{
124136
"cell_type": "code",
125137
"execution_count": null,
126-
"metadata": {},
138+
"metadata": {
139+
"tags": [
140+
"raises-exception"
141+
]
142+
},
127143
"outputs": [],
128144
"source": [
129145
"setHeight(\"1.8 m\")"

15_matplotlib.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"df = pd.read_csv(\n",
7474
" 'data/cetml1659on.dat', # file name\n",
7575
" skiprows=6, # skip header\n",
76-
" sep='\\s+', # whitespace separated\n",
76+
" sep=r'\\s+', # whitespace separated\n",
7777
" na_values=['-99.9', '-99.99'], # NaNs\n",
7878
")\n",
7979
"df.head()"
@@ -522,7 +522,7 @@
522522
"outputs": [],
523523
"source": [
524524
"by_decade = df.groupby('decade')\n",
525-
"agg = by_decade.aggregate(np.mean)\n",
525+
"agg = by_decade.aggregate('mean')\n",
526526
"\n",
527527
"agg.head()"
528528
]

0 commit comments

Comments
 (0)