Skip to content

Commit

Permalink
MNT Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gadorlhiac committed May 24, 2024
1 parent 78eff25 commit da8feac
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lute/execution/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import time
import os
import signal
from typing import Dict, Callable, List, Optional, Any, Union
from typing import Dict, Callable, List, Optional, Any
from typing_extensions import Self
from abc import ABC, abstractmethod
import warnings
Expand Down Expand Up @@ -416,15 +416,11 @@ def _set_result_from_parameters(self) -> None:

# First try to set from result_from_params (faster)
if self._analysis_desc.task_parameters.Config.result_from_params is not None:
# if hasattr(self._analysis_desc.task_parameters.Config, "result_from_params"):
result_from_params: str = (
self._analysis_desc.task_parameters.Config.result_from_params
)
logger.info(f"TaskResult specified as {result_from_params}.")
self._analysis_desc.task_result.payload = result_from_params
# if isinstance(result_from_params, str) and result_from_params != "":
# logger.info(f"TaskResult specified as {result_from_params}.")
# self._analysis_desc.task_result.payload = result_from_params
else:
# Iterate parameters to find the one that is the result
schema: Dict[str, Any] = self._analysis_desc.task_parameters.schema()
Expand Down Expand Up @@ -454,7 +450,7 @@ def _set_result_from_parameters(self) -> None:
)
)
# Now check for impl_schemas and pass to result.impl_schemas
# Only get to this point if set_result == True
# Currently unused
impl_schemas: Optional[str] = (
self._analysis_desc.task_parameters.Config.impl_schemas
)
Expand Down Expand Up @@ -624,7 +620,8 @@ def _process_results(self) -> None:
"""Performs result processing.
Actions include:
- For `ElogSummaryPlots`, will save the summary plot to a
- For `ElogSummaryPlots`, will save the summary plot to the appropriate
directory for display in the eLog.
"""
task_result: TaskResult = self._analysis_desc.task_result
self._process_result_payload(task_result.payload)
Expand Down

0 comments on commit da8feac

Please sign in to comment.