Skip to content

Commit

Permalink
Convert DataProcessor x1 maps to tuple from list when reading config
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersson committed Sep 13, 2023
1 parent a16f319 commit 363a5fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deepsensor/data/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ def __init__(
)
with open(fpath, "r") as f:
self.config = json.load(f)
self.config["coords"]["x1"]["map"] = tuple(
self.config["coords"]["x1"]["map"]
)
self.config["coords"]["x2"]["map"] = tuple(
self.config["coords"]["x2"]["map"]
)

self.x1_none = self.config["coords"]["x1"]["map"] is None
self.x2_none = self.config["coords"]["x2"]["map"] is None
Expand Down

0 comments on commit 363a5fc

Please sign in to comment.