Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Show Create DB log in dataset view - #222

Merged
lukeyeager merged 1 commit into
NVIDIA:masterfrom
gheinrich:dev/createDbLog
Aug 18, 2015
Merged

Show Create DB log in dataset view#222
lukeyeager merged 1 commit into
NVIDIA:masterfrom
gheinrich:dev/createDbLog

Conversation

@gheinrich

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread digits/dataset/tasks/create_db.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a little wordy. Would create_%s.log be too short?

@lukeyeager

Copy link
Copy Markdown
Member

Great PR! This should definitely help with some of the confusion about DIGITS silently ignoring errors when creating datasets.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to explicitly delete the dataset. It will be deleted in tearDownClass():

# delete any created datasets
for job_id in cls.created_datasets:
cls.delete_dataset(job_id)

@gheinrich
gheinrich force-pushed the dev/createDbLog branch 2 times, most recently from ce544fe to a915e24 Compare August 17, 2015 18:51
@gheinrich

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback Luke! I have made the changes you suggested. I am not sure why code coverage went down. The tool reports a miss on lines https://github.com/gheinrich/DIGITS/blob/dev/createDbLog/digits/dataset/images/classification/test_views.py#L267-L274 even though they are part of a test that passed.

This opens an interesting can of worms. Do you envision exposing all available files via the REST API eventually?

I leave this decision to you :-)

@lukeyeager

Copy link
Copy Markdown
Member

I am not sure why code coverage went down

I've noticed that there are some lines in the scheduler which run sometimes and not others. It's not really a problem, but it makes our test coverage vary somewhat from run to run.

The tool reports a miss on lines ... even though they are part of a test that passed

Yeah that's weird.

Comment thread digits/dataset/tasks/create_db.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use .log instead of .txt? That's what we have for the Caffe output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sorry I read the first comment too quickly. I used the .txt extension because in Firefox it shows the file automatically without asking the user to download/choose an external tool to open it. But you're right, it's better to keep consistency in the project.

lukeyeager added a commit that referenced this pull request Aug 18, 2015
Show Create DB log in dataset view
@lukeyeager
lukeyeager merged commit 2dcfe2f into NVIDIA:master Aug 18, 2015
@gheinrich
gheinrich deleted the dev/createDbLog branch August 25, 2015 19:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants