Rename "SPS" preplots import to "legacy fixed width"

This commit is contained in:
D. Berge
2023-11-15 21:36:12 +01:00
parent 6fa0f8e659
commit 8ec918bc7c
3 changed files with 23 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import sps
import legacy_fwr
"""
Preplot importing functions.
@@ -7,7 +7,7 @@ Preplot importing functions.
def from_file (file, realpath = None):
filepath = realpath or file["path"]
if not "type" in file or file["type"] == "sps":
records = sps.from_file(filepath, file["format"] if "format" in file else None )
records = legacy_fwr.from_file(filepath, file["format"] if "format" in file else None )
else:
return "Not an SPS file"