get_version

method of dascore.io.pickle.core.PickleIO source

get_version(
    self ,
    resource: BinaryReader ,
    **kwargs ,
)-> ‘str | None’

Return the version if the header names a DASCore Patch or Spool.

This parses only the header’s opcodes and never unpickles. A DASCore pickle raises PickleFormatDisabledError unless allow_pickle_format is on; format detection treats that as an unknown format, and reports it only if no other format matches.