Skip to content

Commit cd6e732

Browse files
committed
Fix an overly long line in a tutorial example
1 parent 93e1a12 commit cd6e732

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/src/tutorial-ids.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ We need a dataset in ICAT that the uploaded files should be put into,
5454
so let's create one::
5555

5656
>>> from icat.query import Query
57-
>>> query = Query(client, "Investigation", conditions=[("name", "= '12100409-ST'")])
57+
>>> query = Query(client, "Investigation", conditions=[
58+
... ("name", "= '12100409-ST'")
59+
... ])
5860
>>> investigation = client.assertedSearch(query)[0]
5961
>>> dataset = client.new("Dataset")
6062
>>> dataset.investigation = investigation

doc/tutorial/ids.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# --------------------
1414

1515
from icat.query import Query
16-
query = Query(client, "Investigation", conditions=[("name", "= '12100409-ST'")])
16+
query = Query(client, "Investigation", conditions=[
17+
("name", "= '12100409-ST'")
18+
])
1719
investigation = client.assertedSearch(query)[0]
1820
dataset = client.new("Dataset")
1921
dataset.investigation = investigation

0 commit comments

Comments
 (0)