Skip to content

Commit 3a278ba

Browse files
authored
Merge pull request #2106 from caternuson/tides_fix
MagTag Tides patch - fix off by one
2 parents 33b0f58 + aec1608 commit 3a278ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MagTag_Tides/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def get_tide_data():
164164
raw_data = magtag.fetch()
165165

166166
# Results will be stored in a list that is PLOT_WIDTH long
167-
new_tide_data = [PLOT_HEIGHT] * PLOT_WIDTH
167+
new_tide_data = [PLOT_HEIGHT - 1] * PLOT_WIDTH
168168

169169
# Convert raw data to display coordinates
170170
for data in raw_data:

0 commit comments

Comments
 (0)