Skip to content

Add signature and lidar wave gauge endpoints#22

Merged
SBFRF merged 2 commits into
mainfrom
feature/add-signature-and-lidar-gauges
Jan 29, 2026
Merged

Add signature and lidar wave gauge endpoints#22
SBFRF merged 2 commits into
mainfrom
feature/add-signature-and-lidar-gauges

Conversation

@SBFRF

@SBFRF SBFRF commented Jan 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add sig940-300 and sig769-300 endpoints for currents data retrieval
  • Add lidar wave gauges (140m, 110m, 100m) to wave gauge list
  • Add signature sensors to directional wave gauge list
  • Fix bug in getWaveData where None index check failed, causing "arrays used as indices must be of integer type" error

Changes

  • getDataFRF.py:
    • Updated waveGaugeList, directionalWaveGaugeList, and currentsGaugeList
    • Added sig940-300 and sig769-300 to getCurrents() method
    • Fixed assertion on line 329 from broken np.array(self.wavedataindex).all() is not None to self.wavedataindex is not None
  • test_wave_and_imagery.py: Updated gauge list to only include gauges with recent data

Test plan

  • Tested sig940-300 waves endpoint (175 records)
  • Tested sig940-300 currents endpoint (350 records)
  • Tested lidar wave gauges (682 records each)
  • Verified bug fix resolves "arrays used as indices" error for gauges with no data in time range

🤖 Generated with Claude Code

SBFRF and others added 2 commits January 29, 2026 16:42
- Add sig940-300 and sig769-300 to currents gauge lookup and list
- Add lidar wave gauges (140m, 110m, 100m) to wave gauge list
- Add signature sensors to directional wave gauge list
- Fix None index check bug in getWaveData that caused "arrays used as
  indices must be of integer type" error when no data in time range
- Update test script to use gauges with recent data

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@SBFRF
SBFRF merged commit 10c2811 into main Jan 29, 2026
4 checks passed
@SBFRF
SBFRF deleted the feature/add-signature-and-lidar-gauges branch January 29, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant