From 8620c550341ebf454d95e635d32d8eb9993d0b9a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 29 Sep 2020 00:04:12 -0700 Subject: [PATCH] Don't care what version we read --- klamath/library.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/klamath/library.py b/klamath/library.py index f85b517..bbe8bee 100644 --- a/klamath/library.py +++ b/klamath/library.py @@ -26,7 +26,7 @@ class FileHeader: File header records: HEADER BGNLIB LIBNAME UNITS Optional record are ignored if present and never written. - Version is assumed to be `600`. + Version is written as `600`. """ name: bytes """ Library name """ @@ -55,8 +55,6 @@ class FileHeader: FileHeader object """ version = HEADER.read(stream)[0] - if version != 600: - raise KlamathError(f'Got GDS version {version}, expected 600') mod_time, acc_time = BGNLIB.read(stream) name = LIBNAME.skip_and_read(stream) uu, dbu = UNITS.skip_and_read(stream)