@@ -54,7 +54,9 @@ We need a dataset in ICAT that the uploaded files should be put into,
5454so 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::
6769For 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",
0 commit comments