Skip to content
Snippets Groups Projects
Commit 3f53ab4a authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Support location as data type for SNCL's

parent f015314f
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!138Locations as Data Types
......@@ -62,6 +62,8 @@ def get_channel(element: str, interval: str) -> str:
def get_location(element: str, data_type: str) -> str:
if len(data_type) == 2 and data_type[0] in ["R", "A", "Q", "D"]:
return data_type
return _get_location_start(data_type=data_type) + _get_location_end(element=element)
......
......@@ -95,6 +95,8 @@ def get_channel(element: str, interval: str, data_type: str) -> str:
def get_location(element: str, data_type: str) -> str:
if len(data_type) == 2 and data_type[0] in ["R", "A", "Q", "D"]:
return data_type
return _get_location_start(data_type=data_type) + _get_location_end(element=element)
......@@ -166,7 +168,7 @@ def _get_channel_end(element: str, data_type: str) -> str:
elif "_Temp" in element:
channel_middle = "K"
channel_end = element.split("_")[0]
if data_type == "variation":
if data_type in ["variation", "R0", "R1", "RD", "RQ", "RV"]:
if channel_end == "H":
channel_end = "U"
elif channel_end == "E":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment