Skip to content

Commit 4ee4c6c

Browse files
committed
Styling error correction
1 parent 8c51bde commit 4ee4c6c

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

datajoint/external.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ def delete(
406406
):
407407
"""
408408
409-
:param delete_external_files: True or False. If False, only the tracking info is removed from the external store table but the external files remain intact. If True, then the external files themselves are deleted too.
410-
409+
:param delete_external_files: True or False. If False, only the tracking info is removed from the external
410+
store table but the external files remain intact. If True, then the external files themselves are deleted too.
411411
:param errors_as_string: If True any errors returned when deleting from external files will be strings
412412
:param limit: (integer) limit the number of items to delete
413413
:param display_progress: if True, display progress as files are cleaned up

datajoint/fetch.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,17 @@ 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 relation. If provided, returns tuples with an entry for each attribute.
158+
:param attrs: zero or more attributes to fetch. If not provided, the call will return all attributes of this
159+
relation. If provided, returns tuples with an entry for each attribute.
159160
:param offset: the number of tuples to skip in the returned result
160161
:param limit: the maximum number of tuples to return
161-
:param order_by: a single attribute or the list of attributes to order the results. No ordering should be assumed if order_by=None. To reverse the order, add DESC to the attribute name or names: e.g. ("age DESC", "frequency") To order by primary key, use "KEY" or "KEY DESC"
162-
:param format: Effective when as_dict=None and when attrs is empty None: default from config['fetch_format'] or 'array' if not configured "array": use numpy.key_array "frame": output pandas.DataFrame. .
163-
:param as_dict: returns a list of dictionaries instead of a record array. Defaults to False for .fetch() and to True for .fetch('KEY')
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",
164+
"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
166+
'array' if not configured "array": use numpy.key_array "frame": output pandas.DataFrame. .
167+
:param as_dict: returns a list of dictionaries instead of a record array. Defaults to False for .fetch() and to
168+
True for .fetch('KEY')
164169
:param squeeze: if True, remove extra dimensions from arrays
165170
:param download_path: for fetches that download data, e.g. attachments
166171
:return: the contents of the relation in the form of a structured numpy.array or a dict list
@@ -284,7 +289,6 @@ def __call__(
284289
ret = pandas.DataFrame(ret).set_index(heading.primary_key)
285290
return ret
286291

287-
288292
class Fetch1:
289293
"""
290294
Fetch object for fetching the result of a query yielding one row.

datajoint/table.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ 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, or a query expression with the same heading as self.
344+
:param rows: An iterable where an element is a numpy record, a dict-like object, a pandas.DataFrame, a sequence,
345+
or a query expression with the same heading as self.
345346
:param replace: If True, replaces the existing tuple.
346347
:param skip_duplicates: If True, silently skip duplicate inserts.
347348
:param ignore_extra_fields: If False, fields that are not in the heading raise error.
@@ -457,7 +458,8 @@ def delete(self, transaction=True, safemode=None, force_parts=False):
457458
"""
458459
Deletes the contents of the table and its dependent tables, recursively.
459460
460-
:param transaction: if True, use the entire delete becomes an atomic transaction. This is the default and recommended behavior. Set to False if this delete is nested within another transaction.
461+
:param transaction: if True, use the entire delete becomes an atomic transaction. This is the default and
462+
recommended behavior. Set to False if this delete is nested within another transaction.
461463
:param safemode: If True, prohibit nested transactions and prompt to confirm. Default is dj.config['safemode'].
462464
:param force_parts: Delete from parts even when not deleting from their masters.
463465
:return: number of deleted rows (excluding those from dependent tables)

0 commit comments

Comments
 (0)