Skip to content

Commit

Permalink
Fix deprecated numpy arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfByttner committed Apr 6, 2024
1 parent 22e39b0 commit 963b4b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion traja/dataset/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
def jaguar(cache_url=default_cache_url):
# Sample data
data_url = "https://raw.githubusercontent.com/traja-team/traja-research/dataset_und_notebooks/dataset_analysis/jaguar5.csv"
df = pd.read_csv(data_url, error_bad_lines=False)
df = pd.read_csv(data_url, on_bad_lines='skip')
return df
2 changes: 1 addition & 1 deletion traja/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ def trip_grid(
x, y = zip(*df.values)

hist, x_edges, y_edges = np.histogram2d(
x, y, bins, range=((xmin, xmax), (ymin, ymax)), normed=normalize
x, y, bins, range=((xmin, xmax), (ymin, ymax)), density=normalize
)

# rotate to keep y as first dimension
Expand Down

0 comments on commit 963b4b8

Please sign in to comment.