Visitar URL original
Documentation: format docstrings for dev docs by C-Achard · Pull Request #3353 · DeepLabCut/DeepLabCut · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
867de4c
Add mdformat hook and update docs scan/exclude
C-Achard Jun 1, 2026
0937706
Use NumPy docstring style and widen line length
C-Achard Jun 1, 2026
1a8d3cf
Format all docstrings
C-Achard Jun 1, 2026
c99aa9d
Format all docs
C-Achard Jun 1, 2026
6125126
Add dev-docs to mdformat
C-Achard Jun 1, 2026
4f32679
Disable mdformat pre-commit hook (broken)
C-Achard Jun 1, 2026
84466b0
Revert "Format all docs"
C-Achard Jun 1, 2026
794619b
use google-style docstrings + remove numpydoc
deruyter92 Jun 2, 2026
640deb2
apply ruff safe fixes all docstrings
deruyter92 Jun 2, 2026
2078850
docs: convert docstrings to Google style (batch A1)
deruyter92 Jun 3, 2026
d59328d
docs: convert docstrings to Google style (batch A2)
deruyter92 Jun 3, 2026
00425f4
docs: convert docstrings to Google style (batch A3)
deruyter92 Jun 3, 2026
0998f8e
docs: convert docstrings to Google style (batch A4)
deruyter92 Jun 3, 2026
944a561
docs: convert docstrings to Google style (batch A5)
deruyter92 Jun 3, 2026
1e33ab0
docs: convert docstrings to Google style (batch B1)
deruyter92 Jun 3, 2026
aede4c4
docs: convert docstrings to Google style (batch B2)
deruyter92 Jun 3, 2026
fd68cb0
docs: convert docstrings to Google style (batch B3)
deruyter92 Jun 3, 2026
741eb42
docs: convert docstrings to Google style (batch B4)
deruyter92 Jun 3, 2026
c046c73
docs: convert docstrings to Google style (batch B5)
deruyter92 Jun 3, 2026
1a50d1c
docs: convert docstrings to Google style (batch B6)
deruyter92 Jun 3, 2026
75046ae
docs: fix existing malformed Google style docstrings (batch C)
deruyter92 Jun 3, 2026
e589365
docs: fix existing outdated Google style docstrings (batch D)
deruyter92 Jun 3, 2026
2580c8b
doc: google docstyle fixes (audit)
deruyter92 Jun 3, 2026
c6d0a46
docs: fix examples in docstrings
deruyter92 Jun 4, 2026
dd04239
Docs: fix cli Args (was Options)
deruyter92 Jun 4, 2026
47a7485
docs: fix docstring exceptions (Raises) prose -> structured
deruyter92 Jun 4, 2026
30a2e36
docs: fix missing function descriptions in docstrings
deruyter92 Jun 4, 2026
4cbef89
docs: fix DLCLoader to_coco docstring
deruyter92 Jun 4, 2026
c949ffc
docs: manually fix incorrect args in docstrings (using griffe)
deruyter92 Jun 4, 2026
0c74661
apply suggestion: adjust comment in modelzoo.py
deruyter92 Jun 5, 2026
4fe31c5
Normalize parameter names in docstrings
C-Achard Jun 9, 2026
3b7e671
Convert doctest examples to plain code
C-Achard Jun 10, 2026
de886e7
Rename videotype to video_extensions and fix docs
C-Achard Jun 10, 2026
583170a
Update analyze_skeleton.py
C-Achard Jun 10, 2026
4eba8c3
Merge remote-tracking branch 'origin/arash/dev_docs' into cy/dev-docs…
C-Achard Jun 10, 2026
7ea3890
Fix pre-commit failures
C-Achard Jun 10, 2026
10f9644
Update uv.lock
C-Achard Jun 10, 2026
2e69e69
auto-detect URLs
deruyter92 Jun 11, 2026
a3871b6
Fix docstrings (examples) in core and create_project
deruyter92 Jun 11, 2026
9887acd
fix docstrings (mostly examples)
deruyter92 Jun 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Docs: fix cli Args (was Options)
  • Loading branch information
deruyter92 committed Jun 4, 2026
commit dd04239fa188c16cb7f6d25dd59e4c316c2247ee
41 changes: 20 additions & 21 deletions deeplabcut/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def create_new_project(_, *args, **kwargs):
The configuration file is loaded with default values. Change its parameters to your
projects need.

Options:
Args:
project (string): String containing the name of the project.
experimenter (string): String containing the name of the experimenter.
videos (list): A list of string containing the full paths of the videos to include in the project.
Expand All @@ -66,14 +66,13 @@ def create_new_project(_, *args, **kwargs):
The default is ``True``; if provided it must be either ``True`` or ``False``.

Examples:
To create the project in the current working directory:

To create the project in the current working directory but do not want to create the symlinks \n
python3 dlc.py create_new_project reaching-task
Tanmay /data/videos/mouse1.avi /data/videos/mouse2.avi /data/videos/mouse3.avi /analysis/project/ -c False

To create the project in the current working directory but do not want to create the symlinks:

To create the project in the current working directory without symbolic links:
```bash
python3 dlc.py create_new_project reaching-task Tanmay \\
/data/videos/mouse1.avi /data/videos/mouse2.avi \\
/data/videos/mouse3.avi /analysis/project/ -c False
```
To create the project in the current working directory with symbolic links:
```bash
python3 dlc.py create_new_project reaching-task Tanmay \\
/data/videos/mouse1.avi /data/videos/mouse2.avi \\
Expand Down Expand Up @@ -111,7 +110,7 @@ def add_new_videos(_, *args, **kwargs):

Delegates to ``deeplabcut.add_new_videos``.

Options:
Args:
config (string): String containing the full path of the config file in the project.
videos (list): A list of string containing the full paths of the videos to include in the project.
copy_videos (bool, optional): If True, symlinks of the videos are copied to
Expand Down Expand Up @@ -158,7 +157,7 @@ def extract_frames(_, *args, **kwargs):
function ``add_new_videos`` at any stage of the project to add new videos to the
config file and extract their frames.

Options:
Args:
config (string): Full path of the config.yaml file as a string.
mode (string): Mode of extraction. Must be either ``automatic`` or ``manual``.
algo (string, optional): For automatic extraction, the algorithm to use:
Expand Down Expand Up @@ -207,7 +206,7 @@ def label_frames(_, config):

Update the list of body parts you want to localize in the config.yaml file first.

Options:
Args:
config (string): Full path of the config.yaml file.

Examples:
Expand Down Expand Up @@ -257,7 +256,7 @@ def create_training_dataset(_, *args, **kwargs):
Update parameters TrainFraction and iteration in config.yaml. Also update
parameters for pose_config.yaml as wanted.

Options:
Args:
config (string): Full path of the config.yaml file in the train directory of a
project.
num_shuffles (int, optional): Number of shuffles of training dataset to create.
Expand Down Expand Up @@ -301,7 +300,7 @@ def train_network(_, *args, **kwargs):

Delegates to ``deeplabcut.train_network``.

Options:
Args:
config (string): Full path of the config.yaml file in the train directory of a
project.
shuffle (int, optional): Shuffle index of the training dataset. Defaults to 1.
Expand Down Expand Up @@ -335,7 +334,7 @@ def evaluate_network(_, config, **kwargs):

Delegates to ``deeplabcut.evaluate_network``.

Options:
Args:
config (string): Full path of the config.yaml file in the train directory of a
project.
shuffle (list, optional): Shuffle index of the training dataset. Defaults to [1].
Expand Down Expand Up @@ -386,7 +385,7 @@ def analyze_videos(_, *args, **kwargs):

Delegates to ``deeplabcut.analyze_videos``.

Options:
Args:
config (string): Full path of the config.yaml file in the train directory of a
project.
videos (list): Full path(s) to video(s).
Expand Down Expand Up @@ -514,7 +513,7 @@ def extract_outlier_frames(_, *args, **kwargs):
Another crucial parameter in config.yaml is how many frames to extract
'numframes2extract'.

Options:
Args:
config (string): Full path of the config.yaml file as a string.
video (string): Full path of the video to extract frames from. Make sure that
this video is already analyzed.
Expand Down Expand Up @@ -579,7 +578,7 @@ def refine_labels(_, config):
analyze a video and extract the outlier frames using ``extract_outlier_frames``
before refining the labels.

Options:
Args:
config (string): Full path of the config.yaml file.

Examples:
Expand Down Expand Up @@ -640,7 +639,7 @@ def create_labeled_video(_, *args, **kwargs):

Make sure the video is already analyzed by the function ``analyze_videos``.

Options:
Args:
config (string): Full path of the config.yaml file.
videos (list): Full path(s) to video(s).
shuffle (int, optional): Shuffle index of the training dataset. Defaults to 1.
Expand Down Expand Up @@ -689,7 +688,7 @@ def plot_trajectories(_, *args, **kwargs):

Delegates to ``deeplabcut.plot_trajectories``.

Options:
Args:
config (string): Full path of the config.yaml file.
videos (list): Full path(s) to video(s).
shuffle (int, optional): Shuffle index of the training dataset. Defaults to 1.
Expand Down Expand Up @@ -779,7 +778,7 @@ def export_model(_, *args, **kwargs):
Saves the pose configuration, snapshot files, and frozen graph of the model to a
directory named exported-models within the project directory.

Options:
Args:
cfg_path (string): Path to the DLC Project config.yaml file.
iteration (int, optional): The model iteration you wish to export.
If None, uses the iteration listed in the config file.
Expand Down