tiny changes
This commit is contained in:
parent
5db8c01ed7
commit
537162be00
@ -528,6 +528,6 @@ if __name__ == "__main__":
|
||||
# data_dir = "../high_freq_chirps/data"
|
||||
# drop_tables()
|
||||
# datasets = glob.glob("/Users/jan/zwischenlager/2012-*")2010-06-21-ac/info.dat
|
||||
datasets = glob.glob(os.path.join(data_dir, '/data/apteronotus/2011-*'))
|
||||
datasets = glob.glob(os.path.join(data_dir, '/data/apteronotus/2019-10*'))
|
||||
populate(datasets, update=False)
|
||||
|
||||
|
@ -28,7 +28,7 @@ def read_info_file(file_name):
|
||||
lines = f.readlines()
|
||||
except UnicodeDecodeError:
|
||||
print("Replacing experimenter!!!")
|
||||
command = "sudo sed -i '/Experimenter/c\# Experimenter: Anna Stoeckl' %s" % file_name
|
||||
command = r"sudo sed -i '/Experimenter/c\# Experimenter: Anna Stoeckl' %s" % file_name
|
||||
subprocess.check_call(command, shell=True)
|
||||
with open(file_name, 'r') as f:
|
||||
lines = f.readlines()
|
||||
@ -203,7 +203,6 @@ def read_dataset_info(info_file):
|
||||
return exp, rec_date, quality, comment, has_nix, rec_duration, setup
|
||||
has_nix = len(glob.glob(os.path.sep.join(info_file.split(os.path.sep)[:-1]) + os.path.sep + "*.nix")) > 0
|
||||
info = read_info_file(info_file)
|
||||
p = []
|
||||
exp = _get_string(info, "Experimenter")
|
||||
rec_date = _get_date(info, "Date")
|
||||
quality = _get_string(info, "Recording quality")
|
||||
|
Loading…
Reference in New Issue
Block a user