@@ -54,7 +54,9 @@ We need a dataset in ICAT that the uploaded files should be put into,
54
54
so let's create one::
55
55
56
56
>>> 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
+ ... ])
58
60
>>> investigation = client.assertedSearch(query)[0]
59
61
>>> dataset = client.new("Dataset")
60
62
>>> dataset.investigation = investigation
@@ -67,7 +69,9 @@ so let's create one::
67
69
For each of the files, we create a new datafile object and call the
68
70
:meth: `~icat.client.Client.putData ` method to upload it::
69
71
70
- >>> query = Query(client, "DatafileFormat", conditions=[("name", "= 'Text'")])
72
+ >>> query = Query(client, "DatafileFormat", conditions=[
73
+ ... ("name", "= 'Text'")
74
+ ... ])
71
75
>>> df_format = client.assertedSearch(query)[0]
72
76
>>> for fname in ("greet-jdoe.txt", "greet-nbour.txt", "greet-rbeck.txt"):
73
77
... datafile = client.new("Datafile",
0 commit comments