Claude/review changes mjux96vr0mz96409 jm0 oo#33
Merged
arandomguyhere merged 5 commits intomainfrom Jan 1, 2026
Merged
Conversation
Critical bugs fixed: - dark_fleet.py: Fix AttributeError when accessing BehaviorEvent.get() Now handles both object and dict returns from detect_ais_gaps() - laden_status.py: Replace bare except with specific ValueError/AttributeError Skip invalid timestamps instead of using datetime.now() fallback Standardization: - gfw_integration.py: Add missing risk levels (critical, minimal) to match other modules - all now use: minimal < 15 < low < 30 < medium < 50 < high < 70 < critical - venezuela.py: Update STS_ZONE_RADIUS_KM from 20.0 to 25.0 for consistency - Add analytics_constants.py: Centralized thresholds and scoring weights for future consistency across all analytics modules
- Add ports_database.py with 150+ major world ports: - Baltic Sea ports (cable incident monitoring) - Venezuela/Caribbean (dark fleet operations) - Iran/Middle East (sanctions evasion routes) - Malaysia/SE Asia (STS transfer hubs) - China (destination ports) - Russia (shadow fleet origins) - Key oil terminals, refineries, STS zones - Update /api/ports/nearby endpoint: - Try Marinesia API first - Fallback to built-in database if empty/failed - Response includes 'source' field (marinesia/built-in) Data sourced from World Port Index (US NGA) and UN/LOCODE
- Add dropdown in UI to select port data source: - Auto (try Marinesia, fallback to built-in) - Marinesia (API only) - Built-in (local database only) - Update /api/ports/nearby to accept source parameter - Add /api/data-sources endpoint to show available sources - Display source label in ports results
Configure Marinesia to use environment variable for API key authentication, consistent with other data sources.
Global Fishing Watch provides historical events (AIS gaps, encounters, loitering) and vessel identity data for enhanced analytics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.