diff --git a/lib/galaxy/datatypes/data.py b/lib/galaxy/datatypes/data.py index 723581f07b1c..6b7646a892ba 100644 --- a/lib/galaxy/datatypes/data.py +++ b/lib/galaxy/datatypes/data.py @@ -163,7 +163,7 @@ def _is_binary_file(data): return isinstance(data.datatype, binary.Binary) or type(data.datatype) is Data -def _get_max_peak_size(data): +def _get_max_peek_size(data): from galaxy.datatypes import ( binary, text, @@ -589,7 +589,7 @@ def display_data( return self._serve_file_download(headers, dataset, trans, to_ext, file_size, **kwd) else: # displaying trans.log_event(f"Display dataset id: {str(dataset.id)}") - max_peek_size = _get_max_peak_size(dataset) + max_peek_size = _get_max_peek_size(dataset) if ( _is_binary_file(dataset) and preview and hasattr(trans, "fill_template_mako") ): # preview file which format is unknown (to Galaxy), we still try to display this as text @@ -604,7 +604,7 @@ def display_as_markdown(self, dataset_instance: DatasetProtocol) -> str: on datatypes not tightly tied to a Galaxy version (e.g. datatypes in the Tool Shed). - Speaking very losely - the datatype should load a bounded amount + Speaking very loosely - the datatype should load a bounded amount of data from the supplied dataset instance and prepare for embedding it into Markdown. This should be relatively vanilla Markdown - the result of this is bleached and it should not contain nested Galaxy Markdown