Skip to content

Commit

Permalink
Merge pull request TileDB-Inc#38 from TileDB-Inc/nb/limit_track_attrs
Browse files Browse the repository at this point in the history
limit attributes for tracks
  • Loading branch information
Shelnutt2 authored Mar 26, 2021
2 parents 94b9b31 + d4842b8 commit 0b15576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo/exactEarth/Ship_Tracks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"t2 = np.datetime64('2019-08-31T00:00:00')\n",
"\n",
"with tiledb.SparseArray(tiledb_mmsi_uri) as arr:\n",
" pts = arr.multi_index[t1:t2, 308371000]\n",
" pts = arr.query(attrs=['latitude', 'longitude']).multi_index[t1:t2, 308371000]\n",
"\n",
"print(f\"Retrieved {len(pts['longitude'])} points\")\n",
" \n",
Expand Down

0 comments on commit 0b15576

Please sign in to comment.