Skip to content

Commit bc2f832

Browse files
committed
styling changes
1 parent 4ee4c6c commit bc2f832

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

datajoint/fetch.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ def __call__(
155155
Fetches the expression results from the database into an np.array or list of dictionaries and
156156
unpacks blob attributes.
157157
158-
:param attrs: zero or more attributes to fetch. If not provided, the call will return all attributes of this
158+
:param attrs: zero or more attributes to fetch. If not provided, the call will return all attributes of this
159159
relation. If provided, returns tuples with an entry for each attribute.
160160
:param offset: the number of tuples to skip in the returned result
161161
:param limit: the maximum number of tuples to return
162-
:param order_by: a single attribute or the list of attributes to order the results. No ordering should be assumed
163-
if order_by=None. To reverse the order, add DESC to the attribute name or names: e.g. ("age DESC",
162+
:param order_by: a single attribute or the list of attributes to order the results. No ordering should be assumed
163+
if order_by=None. To reverse the order, add DESC to the attribute name or names: e.g. ("age DESC",
164164
"frequency") To order by primary key, use "KEY" or "KEY DESC"
165-
:param format: Effective when as_dict=None and when attrs is empty None: default from config['fetch_format'] or
165+
:param format: Effective when as_dict=None and when attrs is empty None: default from config['fetch_format'] or
166166
'array' if not configured "array": use numpy.key_array "frame": output pandas.DataFrame. .
167167
:param as_dict: returns a list of dictionaries instead of a record array. Defaults to False for .fetch() and to
168168
True for .fetch('KEY')
@@ -289,10 +289,11 @@ def __call__(
289289
ret = pandas.DataFrame(ret).set_index(heading.primary_key)
290290
return ret
291291

292+
292293
class Fetch1:
293294
"""
294295
Fetch object for fetching the result of a query yielding one row.
295-
296+
296297
:param expression: a query expression to fetch from.
297298
"""
298299

datajoint/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def insert(
341341
"""
342342
Insert a collection of rows.
343343
344-
:param rows: An iterable where an element is a numpy record, a dict-like object, a pandas.DataFrame, a sequence,
344+
:param rows: An iterable where an element is a numpy record, a dict-like object, a pandas.DataFrame, a sequence,
345345
or a query expression with the same heading as self.
346346
:param replace: If True, replaces the existing tuple.
347347
:param skip_duplicates: If True, silently skip duplicate inserts.
@@ -458,7 +458,7 @@ def delete(self, transaction=True, safemode=None, force_parts=False):
458458
"""
459459
Deletes the contents of the table and its dependent tables, recursively.
460460
461-
:param transaction: if True, use the entire delete becomes an atomic transaction. This is the default and
461+
:param transaction: if True, use the entire delete becomes an atomic transaction. This is the default and
462462
recommended behavior. Set to False if this delete is nested within another transaction.
463463
:param safemode: If True, prohibit nested transactions and prompt to confirm. Default is dj.config['safemode'].
464464
:param force_parts: Delete from parts even when not deleting from their masters.

0 commit comments

Comments
 (0)