Skip to content

Commit

Permalink
update snippets.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisdoukas committed Jun 9, 2020
1 parent 865bc97 commit f2016e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions examples/snippets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"id": "head"
},
"text/plain": [
"<IPython.core.display.JSON object>"
"{\"class\": \"CommandLineTool\", \"cwlVersion\": \"v1.0\", \"id\": \"head\", \"baseCommand\": [\"head\"]}"
]
},
"metadata": {
Expand Down Expand Up @@ -77,7 +77,7 @@
]
},
"text/plain": [
"<IPython.core.display.JSON object>"
"{\"class\": \"CommandLineTool\", \"cwlVersion\": \"v1.0\", \"id\": \"head\", \"baseCommand\": [\"head\"], \"inputs\": [{\"id\": \"number_of_lines\", \"type\": \"int?\", \"inputBinding\": {\"position\": 0, \"prefix\": \"-n\"}}, {\"id\": \"headinput\", \"type\": \"File\", \"inputBinding\": {\"position\": 1}}]}"
]
},
"metadata": {
Expand Down Expand Up @@ -142,7 +142,7 @@
]
},
"text/plain": [
"<IPython.core.display.JSON object>"
"{\"class\": \"CommandLineTool\", \"cwlVersion\": \"v1.0\", \"id\": \"head\", \"baseCommand\": [\"head\"], \"inputs\": [{\"id\": \"number_of_lines\", \"type\": \"int?\", \"inputBinding\": {\"position\": 0, \"prefix\": \"-n\"}}, {\"id\": \"headinput\", \"type\": \"File\", \"inputBinding\": {\"position\": 1}}], \"outputs\": [{\"id\": \"headoutput\", \"type\": \"stdout\"}]}"
]
},
"metadata": {
Expand Down Expand Up @@ -222,7 +222,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -241,15 +241,15 @@
"class": "File",
"http://commonwl.org/cwltool#generation": 0,
"id": "headoutput",
"location": "file:///private/tmp/CWLKERNEL_DATA/055914f7-cd2a-457b-ac3a-cdb72b07a606/runtime_data/head.out",
"location": "file:///private/tmp/CWLKERNEL_DATA/7b8a73e9-d889-4a4f-b887-b04dfac5c7e0/runtime_data/head.out",
"nameext": ".out",
"nameroot": "head",
"result_counter": 0,
"size": 656
}
},
"text/plain": [
"{\"headoutput\": {\"location\": \"file:///private/tmp/CWLKERNEL_DATA/055914f7-cd2a-457b-ac3a-cdb72b07a606/runtime_data/head.out\", \"basename\": \"head.out\", \"nameroot\": \"head\", \"nameext\": \".out\", \"class\": \"File\", \"checksum\": \"sha1$728aa6b07e4a63f29b8ab55af49609d84c8482e1\", \"size\": 656, \"http://commonwl.org/cwltool#generation\": 0, \"id\": \"headoutput\", \"result_counter\": 0}}"
"{\"headoutput\": {\"location\": \"file:///private/tmp/CWLKERNEL_DATA/7b8a73e9-d889-4a4f-b887-b04dfac5c7e0/runtime_data/head.out\", \"basename\": \"head.out\", \"nameroot\": \"head\", \"nameext\": \".out\", \"class\": \"File\", \"checksum\": \"sha1$728aa6b07e4a63f29b8ab55af49609d84c8482e1\", \"size\": 656, \"http://commonwl.org/cwltool#generation\": 0, \"id\": \"headoutput\", \"result_counter\": 0}}"
]
},
"metadata": {
Expand All @@ -270,7 +270,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_CWLKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def test_sample_csv(self):

shape = pd.read_html(responses[-1][0][2]['data']['text/html'], header=None)[0].shape
print('shape:', shape)
self.assertAlmostEqual(shape[0], 4, delta=2)
self.assertAlmostEqual(shape[0], 4, delta=3)
self.assertEqual(shape[1], 20)


Expand Down

0 comments on commit f2016e5

Please sign in to comment.