diff --git a/lib/galaxy/datatypes/larch.py b/lib/galaxy/datatypes/larch.py index 212f41af1a00..160e9eadea32 100644 --- a/lib/galaxy/datatypes/larch.py +++ b/lib/galaxy/datatypes/larch.py @@ -88,7 +88,7 @@ def extract_arg(args: List[str], arg_name: str): except ValueError: return - headers = get_headers(dataset.file_name, sep=" = ", count=3, comment_designator="#") + headers = get_headers(dataset.get_file_name(), sep=" = ", count=3, comment_designator="#") args = [] for header in headers: if header[0] == "@args": @@ -104,7 +104,7 @@ def extract_arg(args: List[str], arg_name: str): def set_peek(self, dataset: DatasetProtocol, **kwd) -> None: if not dataset.dataset.purged: - dataset.peek = get_file_peek(dataset.file_name) + dataset.peek = get_file_peek(dataset.get_file_name()) dataset.info = ( f"atsym: {dataset.metadata.atsym}\n" f"bkg_e0: {dataset.metadata.bkg_e0}\n" @@ -201,7 +201,7 @@ def set_meta(self, dataset: DatasetProtocol, overwrite: bool = True, **kwd) -> N Extract metadata from TITLE """ title_block = "" - headers = get_headers(dataset.file_name, sep=None, comment_designator="*") + headers = get_headers(dataset.get_file_name(), sep=None, comment_designator="*") for header in headers: if header and header[0] == "TITLE": title_block += " ".join(header[1:]) + "\n" @@ -210,7 +210,7 @@ def set_meta(self, dataset: DatasetProtocol, overwrite: bool = True, **kwd) -> N def set_peek(self, dataset: DatasetProtocol, **kwd) -> None: if not dataset.dataset.purged: - dataset.peek = get_file_peek(dataset.file_name) + dataset.peek = get_file_peek(dataset.get_file_name()) dataset.info = dataset.metadata.title_block else: