Adding Sensor description to Channel inventory

Hello,

Does anyone know how to add a sensor description to a Channel when creating a stationXML?

I tried the following:

from obspy.core.inventory.channel import Channel
chan = Channel(code=chan, location_code=locID, latitude=lat, longitude=lon, sensor=sensor)

It does not seem to work.

Thanks,
Coralie

Coralie, we’d need a full error traceback to be able to tell whats wrong…is ensor of Equipment type? Or maybe something else wrong with your call?