diff --git a/fdsn2nodes.py b/fdsn2nodes.py index acd466f..92c5b50 100644 --- a/fdsn2nodes.py +++ b/fdsn2nodes.py @@ -159,11 +159,10 @@ def create_cnf_file(self, node_path, node_name, network_code, station, ''' file_name = "%s/%s.cnf" % (node_path, node_name) - contents = station.get_contents() # TODO : check if encoding is valid cnf_file = codecs.open(file_name, 'w', self.output_encoding) cnf_file.write("=key|value\n") - cnf_file.write('NAME|"%s"\n' % (contents["stations"][0])) + cnf_file.write('NAME|"%s"\n' % (station.site.name)) cnf_file.write("ALIAS|%s\n" % (station.code)) cnf_file.write("TYPE|%s\n" % (sensor_description)) cnf_file.write("FID|%s\n" % (station.code))