-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: be more explicit for errors (widget reduced + widget not ready) (…
…#107) * 🐛 Fix WCS recovering when widget is out of sight * 🥅 Add error when exporting the WCS while the widget is reduced when hidden * 🥅 Add ready decorator to prevent certains actions before Aladin Lite is ready * maint: upgrade aladin lite version (lighter package) * docs: be extra explicit about widget readiness and widget reduced errors --------- Co-authored-by: MARCHAND MANON <[email protected]>
- Loading branch information
1 parent
8612e25
commit 244e702
Showing
11 changed files
with
168 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 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 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,3 +1,3 @@ | ||
import A from "https://esm.sh/aladin-lite@3.4.5"; | ||
import A from "https://esm.sh/aladin-lite@3.5.1-alpha"; | ||
|
||
export default A; |
This file contains 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 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 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,6 +1,14 @@ | ||
class WidgetCommunicationError(OSError): | ||
"""Error raised when there is a communication error with the widget.""" | ||
class WidgetReducedError(ValueError): | ||
"""Error raised when a widget is reduced to a point when hidden.""" | ||
|
||
def __init__(self, message: str) -> None: | ||
self.message = message | ||
super(WidgetCommunicationError, self).__init__(message) | ||
super(WidgetReducedError, self).__init__(message) | ||
|
||
|
||
class WidgetNotReadyError(OSError): | ||
"""Error raised when the widget is not ready.""" | ||
|
||
def __init__(self, message: str) -> None: | ||
self.message = message | ||
super(WidgetNotReadyError, self).__init__(message) |
Oops, something went wrong.