Fix bug introduced in PR #2764 by maximpavliv · Pull Request #2772 · DeepLabCut/DeepLabCut

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@maximpavliv

Copy link

Contributor

In Pull Request #2764, I accidentaly introduced a bug:
gpus key may not be present in run_config, and it crashed when trying to get the corresponding value like this.
Using .get() instead of [] synthax returns Null when the key is not defined, instead of crashing.

@n-poulsen n-poulsen merged commit 17d7205 into pytorch_dlc

Nov 1, 2024

@n-poulsen n-poulsen deleted the maxim/bugfix branch

November 1, 2024 08:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@n-poulsen n-poulsen n-poulsen approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@maximpavliv @n-poulsen