From 786a4580aa1abad799d11dc6d7544302a100f784 Mon Sep 17 00:00:00 2001 From: Ian Weaver Date: Sat, 21 Mar 2026 06:03:45 -0700 Subject: [PATCH 1/2] feat: add asdf file support --- src/registry.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/registry.jl b/src/registry.jl index 16a597a..369d703 100644 --- a/src/registry.jl +++ b/src/registry.jl @@ -525,6 +525,12 @@ add_format(format"FITS", [:FITSIO => UUID("525bcba6-941b-5504-bd06-fd0dc1a4d2eb")], [:AstroImages => UUID("fe3fc30c-9b16-11e9-1c73-17dabf39f4ad")]) +add_format(format"ASDF", + # See https://www.asdf-format.org/projects/asdf-standard/en/latest/file_layout.html#header + # #ASDF == ([0x23,0x41,0x53,0x44,0x46]) + [0x23,0x41,0x53,0x44,0x46], + [".asdf"], + [:ASDF => UUID("686f71d1-807d-59a4-a860-28280ea06d7b")]) function detect_gadget2(io) From f97e8857b9a231a228eae83b5da637572cfe96fc Mon Sep 17 00:00:00 2001 From: Ian Weaver Date: Sat, 21 Mar 2026 06:07:52 -0700 Subject: [PATCH 2/2] style: whitespace --- src/registry.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/registry.jl b/src/registry.jl index 369d703..37d59a1 100644 --- a/src/registry.jl +++ b/src/registry.jl @@ -532,7 +532,6 @@ add_format(format"ASDF", [".asdf"], [:ASDF => UUID("686f71d1-807d-59a4-a860-28280ea06d7b")]) - function detect_gadget2(io) pos = position(io) seekend(io)