Skip to content

Commit

Permalink
Minor clarification/typo fix in datatypes.data
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Nov 8, 2023
1 parent 7404ed0 commit c2432d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/datatypes/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c2432d0

Please sign in to comment.