Skip to content
Snippets Groups Projects
Commit 98f863e1 authored by Lloyd Carothers's avatar Lloyd Carothers
Browse files

new chans get equipment from siblings

parent b34b475b
No related branches found
No related tags found
No related merge requests found
...@@ -628,6 +628,14 @@ class InventoryIm(Inventory): ...@@ -628,6 +628,14 @@ class InventoryIm(Inventory):
depth=0, sample_rate=sr, azimuth=azimuth, dip=dip_chan) depth=0, sample_rate=sr, azimuth=azimuth, dip=dip_chan)
inv_chan.start_date = station.start_date inv_chan.start_date = station.start_date
inv_chan.end_date = station.end_date inv_chan.end_date = station.end_date
try:
inv_chan.sensor = station.channels[0].sensor
except:
inv_chan.sensor = Equipment()
try:
inv_chan.data_logger = station.channels[0].data_logger
except:
inv_chan.sensor = Equipment()
station.channels.append(inv_chan) station.channels.append(inv_chan)
inv_chan._new = True inv_chan._new = True
return inv_chan return inv_chan
......
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