Skip to content

Commit f1fe477

Browse files
Renaming channel group code
Renaming channel group code to location code.
1 parent 8e1749d commit f1fe477

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

model_logic/station_model.rel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ value type Longitude = Float
2222
value type Elevation = Float
2323

2424
// Channel Group
25-
value type ChannelGroupCode = String
25+
value type LocationCode = String
2626

2727
// Channel
2828
value type ChannelCode = String
@@ -58,7 +58,7 @@ def station_schema =
5858
:channel_group, Entity, Entity;
5959
// Channel Group
6060
:in_station, Entity, Entity;
61-
:code, Entity, ChannelGroupCode;
61+
:code, Entity, LocationCode;
6262
:channel, Entity, Entity;
6363
// Channel
6464
:in_channel_group, Entity, Entity;

station_graph/sxml_data_insert.rel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def station_json[network, :Station, station] = network_json[network, :Station, :
1313
^Station(network, station_code, station)
1414

1515
def channel_json[network, :Station, station, :Channel, channelgroup, channel] = station_json[network, :Station, station, :Channel, :[], channel_index]
16-
from channel_index, channelgroup_code, channel_code, start_date
16+
from channel_index, location_code, channel_code, start_date
1717
where
18-
station_json(network, :Station, station, :Channel, :[], channel_index, :"@locationCode", channelgroup_code) and
18+
station_json(network, :Station, station, :Channel, :[], channel_index, :"@locationCode", location_code) and
1919
station_json(network, :Station, station, :Channel, :[], channel_index, :"@code", channel_code) and
2020
station_json(network, :Station, station, :Channel, :[], channel_index, :"@startDate", start_date) and
21-
^ChannelGroup(station, channelgroup_code, channelgroup) and
21+
^ChannelGroup(station, location_code, channelgroup) and
2222
^Channel(channelgroup, channel_code, start_date, channel)
2323

2424
def json_stationXML = channel_json

station_graph/sxml_mapping.rel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def edge_map:Station:Elevation = :Elevation, :at_elevation
6363

6464
// ChannelGroup
6565

66-
def node_map:ChannelGroup:ChannelGroupCode = ^ChannelGroupCode
67-
def edge_map:ChannelGroup:ChannelGroupCode = :"@locationCode", :code
66+
def node_map:ChannelGroup:LocationCode = ^LocationCode
67+
def edge_map:ChannelGroup:LocationCode = :"@locationCode", :code
6868

6969
// Channel
7070

0 commit comments

Comments
 (0)