diff options
author | Frederick Muriuki Muriithi | 2024-09-27 16:42:44 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-27 16:42:44 -0500 |
commit | b57d43ff863fd1e9a80d1579bc66ce8a7174480e (patch) | |
tree | 801f7f5e1b4e980910d234a961410aed29ef015b /gn3 | |
parent | dbc548bc4bbab7dbb5c7a61f6b46a746153e2bca (diff) | |
download | genenetwork3-b57d43ff863fd1e9a80d1579bc66ce8a7174480e.tar.gz |
Debug command.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py index d5215f8..9617663 100644 --- a/gn3/commands.py +++ b/gn3/commands.py @@ -21,6 +21,7 @@ from redis.client import Redis # Used only in type hinting from pymonad.either import Either, Left, Right +from gn3.debug import __pk__ from gn3.chancy import random_string from gn3.exceptions import RedisConnectionError @@ -153,7 +154,7 @@ def run_sample_corr_cmd(method, this_trait_data, target_dataset_data): def run_cmd(cmd: str, success_codes: Tuple = (0,), env: Optional[str] = None) -> Dict: """Run CMD and return the CMD's status code and output as a dict""" - parsed_cmd = json.loads(cmd) + parsed_cmd = json.loads(__pk__("Attempting to parse command", cmd)) parsed_env = (json.loads(env) if env is not None else None) results = subprocess.run( |