From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:DICOM" |
|---|
| claim | "The group 0002 File Meta Information is read as explicit VR little endian until the first element outside group 2; pydicom retries it as implicit VR if the first element cannot be interpreted (non-conformant writers)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "DICOM Part 10 files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "reading the File Meta Information after DICM (also attempted without a DICM prefix when force=True)" |
|---|
| effect | "parse group 0002 with is_implicit_VR=False, is_little_endian=True, stop at the first tag whose group is not 2; fall back to implicit VR on failure" |
|---|
| condition | "the data set after the meta group uses the transfer syntax of (0002,0010) when present (deflated is inflated first); without it pydicom guesses implicit/explicit VR and endianness from the first element" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "_read_file_meta_info with _not_group_0002 stop function" |
|---|
| repo | "pydicom/pydicom" |
|---|
| commit | "a6374203fe842a2936647cf75ed749227a384ccb" |
|---|
| path | "src/pydicom/filereader.py" |
|---|
| lines | "670-705" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "File meta is explicit VR little endian" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:36:04.066Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:48:55.759Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read pydicom filereader.py at a637420: _read_file_meta_info (explicit LE, stop at group != 2, implicit retry on NotImplementedError), read_preamble (force without DICM rewinds to 0), read_partial transfer-syntax branches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:31:03.263Z" |
|---|
| summary | "Branches left out in pydicom read_partial/read_preamble (filereader.py 760-905): the meta group is also read without 'DICM' when force is set, and the data set encoding comes from (0002,0010) only…" |
|---|
| changed | |
|---|
|
|
|---|