Skip to content

Commit

Permalink
Fix an overly long line in a tutorial example
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Aug 29, 2024
1 parent 93e1a12 commit cd6e732
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion doc/src/tutorial-ids.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ We need a dataset in ICAT that the uploaded files should be put into,
so let's create one::

>>> from icat.query import Query
>>> query = Query(client, "Investigation", conditions=[("name", "= '12100409-ST'")])
>>> query = Query(client, "Investigation", conditions=[
... ("name", "= '12100409-ST'")
... ])
>>> investigation = client.assertedSearch(query)[0]
>>> dataset = client.new("Dataset")
>>> dataset.investigation = investigation
Expand Down
4 changes: 3 additions & 1 deletion doc/tutorial/ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# --------------------

from icat.query import Query
query = Query(client, "Investigation", conditions=[("name", "= '12100409-ST'")])
query = Query(client, "Investigation", conditions=[
("name", "= '12100409-ST'")
])
investigation = client.assertedSearch(query)[0]
dataset = client.new("Dataset")
dataset.investigation = investigation
Expand Down

0 comments on commit cd6e732

Please sign in to comment.