You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datajoint/external.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -406,8 +406,8 @@ def delete(
406
406
):
407
407
"""
408
408
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.
411
411
:param errors_as_string: If True any errors returned when deleting from external files will be strings
412
412
:param limit: (integer) limit the number of items to delete
413
413
:param display_progress: if True, display progress as files are cleaned up
Copy file name to clipboardExpand all lines: datajoint/fetch.py
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -155,12 +155,17 @@ def __call__(
155
155
Fetches the expression results from the database into an np.array or list of dictionaries and
156
156
unpacks blob attributes.
157
157
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.
159
160
:param offset: the number of tuples to skip in the returned result
160
161
: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')
164
169
:param squeeze: if True, remove extra dimensions from arrays
165
170
:param download_path: for fetches that download data, e.g. attachments
166
171
:return: the contents of the relation in the form of a structured numpy.array or a dict list
Copy file name to clipboardExpand all lines: datajoint/table.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -341,7 +341,8 @@ def insert(
341
341
"""
342
342
Insert a collection of rows.
343
343
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.
345
346
:param replace: If True, replaces the existing tuple.
346
347
:param skip_duplicates: If True, silently skip duplicate inserts.
347
348
:param ignore_extra_fields: If False, fields that are not in the heading raise error.
Deletes the contents of the table and its dependent tables, recursively.
459
460
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.
461
463
:param safemode: If True, prohibit nested transactions and prompt to confirm. Default is dj.config['safemode'].
462
464
:param force_parts: Delete from parts even when not deleting from their masters.
463
465
:return: number of deleted rows (excluding those from dependent tables)
0 commit comments