-
Notifications
You must be signed in to change notification settings - Fork 10
Sail by waypoint #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Sail by waypoint #46
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
798144b
wip
surgura 7ed6f0c
fix crash
surgura c86d61e
works except for ongoing measurements
surgura 1db01b5
codetools fixes
surgura 8c42c79
remove duplication
surgura c6851bc
add small sanity check
surgura 4f1c114
magic it actually works
surgura 396b747
simplify
surgura 00247c8
cleanup
surgura ae8ff0a
codetools
surgura 1978c43
rename to priority queue
surgura 512a2c2
cleanup
surgura 0d00cee
cleanup
surgura 592d873
typo
surgura 7ac763f
doc
surgura 6252377
added drifters & argos
surgura 2e95eb5
Add cruise cost
surgura 15a7165
comments
surgura 186c46d
add drifter & argos to test waypoints
surgura 9f50f6e
improve schedule error
surgura 159235c
docstring improvements
surgura 363cd34
remove match statements as they are not available before python 3.10
surgura 3b8afb5
comment
surgura 791e138
add disabling adcp, shipst
surgura 497d0d8
Replace PriorityQueue with sortedcontainers.SortedList
surgura 4e3b639
rename cruise to expedition
surgura 3ee7c45
Capitalize parcels to Parcels
surgura a3ee894
comment
surgura c4d4a16
commets and improved error messages
surgura File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,18 @@ | ||
| """Code for the Virtual Ship Classroom, where Marine Scientists can combine Copernicus Marine Data with an OceanParcels ship to go on a virtual expedition.""" | ||
|
|
||
| from . import instruments, sailship | ||
| from .instrument_type import InstrumentType | ||
| from .location import Location | ||
| from .planning_error import PlanningError | ||
| from .spacetime import Spacetime | ||
| from .waypoint import Waypoint | ||
|
|
||
| __all__ = ["Location", "Spacetime", "instruments", "sailship"] | ||
| __all__ = [ | ||
| "InstrumentType", | ||
| "Location", | ||
| "PlanningError", | ||
| "Spacetime", | ||
| "Waypoint", | ||
| "instruments", | ||
| "sailship", | ||
| ] |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| """InstrumentType Enum.""" | ||
|
|
||
| from enum import Enum, auto | ||
|
|
||
|
|
||
| class InstrumentType(Enum): | ||
| """Types of instruments.""" | ||
|
|
||
| CTD = auto() | ||
| DRIFTER = auto() | ||
| ARGO_FLOAT = auto() |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| """PlanningError Exception.""" | ||
|
|
||
|
|
||
| class PlanningError(RuntimeError): | ||
| """An error when checking the schedule or during sailing.""" | ||
|
|
||
| pass | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.