Skip to content

Commit

Permalink
Update workflow_multiple_species.py, workflow_single_file.py, and wor…
Browse files Browse the repository at this point in the history
…kflow_single_species.py
  • Loading branch information
shaupert committed Dec 13, 2022
1 parent 704fb6f commit 614d930
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
20 changes: 10 additions & 10 deletions examples/workflow_multiple_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@
ROIS_NAME = Path(str(DATASET_NAME) +'_ROIS')

# List of species to build a clean dataset
SCIENTIC_NAME_LIST = [
"Regulus regulus",
SCIENTIC_NAME_LIST = [
"Columba palumbus",
# "Regulus regulus",
"Phylloscopus collybita",
"Anthus triviali",
# "Anthus triviali",
"Fringilla coelebs",
"Troglodytes troglodytes",
"Phoenicurus phoenicurus",
"Strix aluco",
"Aegithalos caudatus",
# "Troglodytes troglodytes",
# "Phoenicurus phoenicurus",
# "Strix aluco",
# "Aegithalos caudatus",
]

CONFIG_FILE = '../config_default.yaml'
Expand Down Expand Up @@ -83,7 +84,6 @@
# ROIS extraction of the full dataset
df_rois, csv_rois = bambird.multicpu_extract_rois(
dataset = df_xc,
fun = params['PARAMS_EXTRACT']['FUNC'],
params = params['PARAMS_EXTRACT'],
save_path = TEMP_DIR / ROIS_NAME,
overwrite = True,
Expand Down Expand Up @@ -131,8 +131,8 @@
bambird.overlay_rois(
cluster = df_cluster,
params = params['PARAMS_EXTRACT'],
column_labels = 'cluster_number', #auto_label cluster_number
unique_labels = np.sort(df_cluster.cluster_number.unique()),
column_labels = 'auto_label', #auto_label cluster_number
unique_labels = np.sort(df_cluster.auto_label.unique()),
filename = None,
random_seed = None,
verbose = True
Expand Down
4 changes: 2 additions & 2 deletions examples/workflow_single_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
DATASET_NAME = Path('WORKFLOW_SINGLE_FILE')
ROIS_NAME = Path(str(DATASET_NAME) +'_ROIS')

# Xeno-Canto number (ie. 473724 for a audio of Columba palumbus https://xeno-canto.org/758652)
# Xeno-Canto number (ie. 758652 for a audio of Columba palumbus https://xeno-canto.org/758652)
# Without XC
XC_NUMBER = 473724
XC_NUMBER = 758652

CONFIG_FILE = '../config_default.yaml'

Expand Down
1 change: 0 additions & 1 deletion examples/workflow_single_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
# ROIS extraction of the full dataset
df_rois, csv_rois = bambird.multicpu_extract_rois(
dataset = df_xc,
fun = params['PARAMS_EXTRACT']['FUNC'],
params = params['PARAMS_EXTRACT'],
save_path = TEMP_DIR / ROIS_NAME,
overwrite = True,
Expand Down

0 comments on commit 614d930

Please sign in to comment.