mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #16169 from mvdbeek/fix_gits_formatting
Fix linting of FITS datatype code
This commit is contained in:
@@ -4369,8 +4369,13 @@ class FITS(Binary):
|
||||
file_ext = "fits"
|
||||
|
||||
MetadataElement(
|
||||
name="HDUs", default=['FITS File HDUs'], desc="Header Data Units", param=metadata.ListParameter, readonly=True,
|
||||
visible=True, no_value=()
|
||||
name="HDUs",
|
||||
default=["FITS File HDUs"],
|
||||
desc="Header Data Units",
|
||||
param=metadata.ListParameter,
|
||||
readonly=True,
|
||||
visible=True,
|
||||
no_value=(),
|
||||
)
|
||||
|
||||
def __init__(self, **kwd):
|
||||
@@ -4405,9 +4410,11 @@ class FITS(Binary):
|
||||
with fits.open(dataset.file_name) as hdul:
|
||||
dataset.metadata.HDUs = []
|
||||
for i in range(len(hdul)):
|
||||
dataset.metadata.HDUs.append(' '.join(filter(None, [
|
||||
str(i), hdul[i].__class__.__name__, hdul[i].name, str(hdul[i]._summary()[4])
|
||||
])))
|
||||
dataset.metadata.HDUs.append(
|
||||
" ".join(
|
||||
filter(None, [str(i), hdul[i].__class__.__name__, hdul[i].name, str(hdul[i]._summary()[4])])
|
||||
)
|
||||
)
|
||||
except Exception as e:
|
||||
log.warning("%s, set_meta Exception: %s", self, e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user