mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:17:09 +00:00
Rename "SPS" preplots import to "legacy fixed width"
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user