forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release_24.0' into dev
- Loading branch information
Showing
26 changed files
with
249 additions
and
127 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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from collections.abc import MutableMapping | ||
|
||
|
||
class workflow_building_modes: | ||
DISABLED = False | ||
ENABLED = True | ||
USE_HISTORY = 1 | ||
|
||
|
||
def runtime_to_json(runtime_value): | ||
if isinstance(runtime_value, ConnectedValue) or ( | ||
isinstance(runtime_value, MutableMapping) and runtime_value["__class__"] == "ConnectedValue" | ||
): | ||
return {"__class__": "ConnectedValue"} | ||
else: | ||
return {"__class__": "RuntimeValue"} | ||
|
||
|
||
def runtime_to_object(runtime_value): | ||
if isinstance(runtime_value, ConnectedValue) or ( | ||
isinstance(runtime_value, MutableMapping) and runtime_value["__class__"] == "ConnectedValue" | ||
): | ||
return ConnectedValue() | ||
else: | ||
return RuntimeValue() | ||
|
||
|
||
class RuntimeValue: | ||
""" | ||
Wrapper to note a value that is not yet set, but will be required at runtime. | ||
""" | ||
|
||
|
||
class ConnectedValue(RuntimeValue): | ||
""" | ||
Wrapper to note a value that is not yet set, but will be inferred from a connection. | ||
""" | ||
|
||
|
||
def is_runtime_value(value): | ||
return isinstance(value, RuntimeValue) or ( | ||
isinstance(value, MutableMapping) and value.get("__class__") in ["RuntimeValue", "ConnectedValue"] | ||
) |
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
Oops, something went wrong.