Skip to content

Commit

Permalink
thank you test_galaxy_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Nov 12, 2021
1 parent 9a34f9a commit 2eaea1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def sniff_prefix(self, file_prefix):
('header_size', 'i4'),
]
np_dtype = np.dtype(header_def)
header = np.ndarray(
header: np.ndarray = np.ndarray(
shape=(),
dtype=np_dtype,
buffer=header_raw)
Expand Down
8 changes: 5 additions & 3 deletions lib/galaxy/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@

if TYPE_CHECKING:
from galaxy.tools.actions.metadata import SetMetadataToolAction
from galaxy.managers.jobs import JobSearch

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -538,6 +539,8 @@ class Tool(Dictifiable):
dict_collection_visible_keys = ['id', 'name', 'version', 'description', 'labels']
__help: Optional[threading.Lock]
__help_by_page: Union[threading.Lock, List[str]]
job_search: 'JobSearch'
version: str

def __init__(self, config_file, tool_source, app, guid=None, repository_id=None, tool_shed_repository=None, allow_code_files=True, dynamic=False):
"""Load a tool from the config named by `config_file`"""
Expand Down Expand Up @@ -587,7 +590,6 @@ def __init__(self, config_file, tool_source, app, guid=None, repository_id=None,
# guid attribute since it is useful to have.
self.guid = guid
self.old_id = None
self.version = None
self.python_template_version = None
self._lineage = None
self.dependencies = []
Expand Down Expand Up @@ -2604,7 +2606,7 @@ def exec_before_job(self, app, inp_data, out_data, param_dict=None):
json_params['output_data'].append(data_dict)
if json_filename is None:
json_filename = file_name
if not json_filename:
if json_filename is None:
raise Exception(
"Must call 'exec_before_job' with 'out_data' containing at least one entry."
)
Expand Down Expand Up @@ -2759,7 +2761,7 @@ def exec_before_job(self, app, inp_data, out_data, param_dict=None):
json_params['output_data'].append(data_dict)
if json_filename is None:
json_filename = file_name
if not json_filename:
if json_filename is None:
raise Exception(
"Must call 'exec_before_job' with 'out_data' containing at least one entry."
)
Expand Down

0 comments on commit 2eaea1f

Please sign in to comment.