@filename.setter
    def filename(self, name):
        self._filename = name

        with open(self.filename, 'r') as infile:
            # Sniff out the dialect
            #infile.seek(1)
            dialect = csv.Sniffer().sniff(infile.readline())
            infile.seek(0)
            reader = csv.reader(infile, dialect, quoting=csv.QUOTE_NONNUMERIC)

            self.data = []
            for row in reader:
                self.data.append(row)

            if self.headers is None:
                self._need_fieldnames = True
            else:
                self._need_fieldnames = False
                if 'timestamp' in self.headers.values():
                    for key, value in self.headers.iteritems():
                        if value == 'timestamp':
                            self.timestamp_field = key
                            del self.headers[key]
                            break
Alters an existing keyspace.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/casehandlers/csvcase.py/CSVCaseIterator.filename--crossover with--dataset/ETHPy150Open pycassa/pycassa/pycassa/system_manager.py/SystemManager.alter_keyspace