-
Notifications
You must be signed in to change notification settings - Fork 38
Fix #116 and #129: label import bug and matplotlib backend conflict #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
923a470
a1d9586
4e6fa34
5fd2fe6
7d8834f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -171,7 +171,12 @@ def add_label_to_project(path_to_labels: Union[str, os.PathLike], path_to_video) | |
| if os.path.isfile(label_dst): | ||
| warnings.warn("Label already exists in destination {}, overwriting...".format(label_dst)) | ||
|
|
||
| df = pd.read_csv(path_to_labels, index_col=0) | ||
| df = pd.read_csv(path_to_labels) | ||
| # Drop unnamed index column if present (DEG-generated CSVs have one) | ||
| first_col = df.columns[0] | ||
| if first_col == "" or str(first_col).startswith("Unnamed"): | ||
| df = df.drop(columns=[first_col]) | ||
|
Comment on lines
+177
to
+178
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a label CSV was written with a named pandas index, such as Useful? React with 👍 / 👎. |
||
|
|
||
| if "none" in list(df.columns): | ||
| df = df.rename(columns={"none": "background"}) | ||
| if "background" not in list(df.columns): | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.