Skip to content

Commit

Permalink
fix hist command
Browse files Browse the repository at this point in the history
  • Loading branch information
wroscoe committed Nov 22, 2017
1 parent 9984e50 commit 929c5c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions docs/utility/donkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ donkey makemovie <tub_path> [--out=<tub_movie.mp4>] [--config=<config.py>]

This command allows you to see how many records are contained in any/all tubs. It will also open each record and ensure that the data is readable and intact. If not, it will allow you to remove corrupt records.

> Note: This should be moved from manage.py to donkey command
Usage:
```bash
donkey tubcheck <tub_path> [--fix]
Expand All @@ -99,8 +97,6 @@ donkey tubcheck <tub_path> [--fix]
This command will show a pop-up window showing the histogram of record values in a given tub.


> Note: This should be moved from manage.py to donkey command
Usage:
```bash
donkey tubhist <tub_path> --rec=<"user/angle">
Expand All @@ -110,12 +106,11 @@ donkey tubhist <tub_path> --rec=<"user/angle">

* When the `--tub` is omitted, it will check all tubs in the default data dir


## Plot Predictions

This command allows you plot steering and throttle against predictions coming from a trained model.

> Note: This should be moved from manage.py to donkey command
Usage:
```bash
donkey tubplot <tub_path> [--model=<model_path>]
Expand Down
2 changes: 1 addition & 1 deletion donkeycar/management/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def show_histogram(self, tub_paths, record_name):
from matplotlib import pyplot as plt
from donkeycar.parts.datastore import TubGroup

tg = TubGroup(tub_paths=tub_paths)
tg = TubGroup(tub_paths)
if record_name is not None:
tg.df[record_name].hist(bins=50)
else:
Expand Down

0 comments on commit 929c5c2

Please sign in to comment.