Import preplot file configuration into database.

We do this so that we can look for the "saillineOffset"
parameter, which we expect to be present in source
preplot imports and allows us to correlate source
and sail lines.

The change to bin/sps.py is necessary to let the JSON
serialisation take place.
This commit is contained in:
D. Berge
2020-10-04 03:42:19 +02:00
parent 0a684cd02a
commit 700e683022
2 changed files with 2 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ if __name__ == '__main__':
if type(preplot) is list:
print("Saving to DB")
db.save_preplots(preplot, file["path"], file["class"], survey["epsg"])
db.save_preplots(preplot, file["path"], file["class"], survey["epsg"], file)
elif type(preplot) is str:
print(preplot)
else:

View File

@@ -47,4 +47,5 @@ def from_file(path, spec = None):
line = fd.readline()
del spec["normalisers"]
return records