Skip to content

Commit f325880

Browse files
committed
Fix overly long lines in tutorial examples
1 parent 93e1a12 commit f325880

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

doc/src/tutorial-ids.rst

Lines changed: 6 additions & 2 deletions
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
@@ -67,7 +69,9 @@ so let's create one::
6769
For each of the files, we create a new datafile object and call the
6870
:meth:`~icat.client.Client.putData` method to upload it::
6971

70-
>>> query = Query(client, "DatafileFormat", conditions=[("name", "= 'Text'")])
72+
>>> query = Query(client, "DatafileFormat", conditions=[
73+
... ("name", "= 'Text'")
74+
... ])
7175
>>> df_format = client.assertedSearch(query)[0]
7276
>>> for fname in ("greet-jdoe.txt", "greet-nbour.txt", "greet-rbeck.txt"):
7377
... datafile = client.new("Datafile",

doc/tutorial/ids.py

Lines changed: 6 additions & 2 deletions
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
@@ -25,7 +27,9 @@
2527

2628
# --------------------
2729

28-
query = Query(client, "DatafileFormat", conditions=[("name", "= 'Text'")])
30+
query = Query(client, "DatafileFormat", conditions=[
31+
("name", "= 'Text'")
32+
])
2933
df_format = client.assertedSearch(query)[0]
3034
for fname in ("greet-jdoe.txt", "greet-nbour.txt", "greet-rbeck.txt"):
3135
datafile = client.new("Datafile",

0 commit comments

Comments
 (0)