Skip to content

Commit cd889e0

Browse files
authored
feat: break UTILMDG ("44...") / UTILMDS ("55...) degeneracy (both were mapped to UTILMD before) (#58)
* feat: UTILMDG / UTILMDS distinction * Update edifact_format.py
1 parent c74cfae commit cd889e0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/efoli/edifact_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def __str__(self) -> str:
6060
"25": EdifactFormat.UTILTS,
6161
"91": EdifactFormat.CONTRL,
6262
"92": EdifactFormat.APERAK,
63-
"44": EdifactFormat.UTILMD, # UTILMD for GAS since FV2310
64-
"55": EdifactFormat.UTILMD, # UTILMD for STROM since FV2310
63+
"44": EdifactFormat.UTILMDG, # UTILMD for GAS since FV2310
64+
"55": EdifactFormat.UTILMDS, # UTILMD for STROM since FV2310
6565
}
6666

6767

unittests/test_edifact_format.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
pytest.param("11042", EdifactFormat.UTILMD),
1212
("13002", EdifactFormat.MSCONS),
1313
("25001", EdifactFormat.UTILTS),
14-
("44001", EdifactFormat.UTILMD),
15-
("55001", EdifactFormat.UTILMD),
14+
("11001", EdifactFormat.UTILMD),
15+
("44001", EdifactFormat.UTILMDG),
16+
("55001", EdifactFormat.UTILMDS),
1617
],
1718
)
1819
def test_pruefi_to_format(pruefi: str, expected: EdifactFormat) -> None:

0 commit comments

Comments
 (0)