I kept the original files as is and made my edits on a new file that I tacked on "_LB". I also renamed two files completely for more uniformity.
bm_autodet_dir_HA => bm_autodet_dir_LB
bm_autodet_HA => bm_autodet_LB
XMLfindcalls => bm_findcalls_LB
XMLwritecalls => bm_writecalls_LB
Note: I plan on removing the "_LB" once I get confirmation that it works well from other people.
Changes in bm_autodet_dir_LB:
Lines 12-14: I added a general note on how I changed the script, along with my initials and date.
Line 14: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5).
Line 19: I added more global variables (detections, marshaller, helper, effort) to make sure nothing overwrites itself as the detector jumps between m files.
Lines 88-94: Tethys 2.5 gives the user the ability to create a premade XML outline that can be filled in.
Line 154: I added this line set the start date (new line needed with Tethys 2.5).
Lines 163-214: I rewrote the code to add parameters (user ID, software version, species, call type).
--Note: User will still need to go in and manually change username. I assume that's what happened in original script
Line 242: I added this line to set the end date (similar to what I did for Line 154).
Lines 248-307: I edited the script on adding parameters like in lines 163-214. I commented it out because it overwites the original XML file if uncommented, but I didn't completely delete it because it was in the original script (bm_autodet_dir_HA) and it might be useful to uncomment if the detector doesn't work.
Changes in bm_autodet_LB
Lines 13-15: I added a general note on how I changed the script, along with my initials and date.
Line 17: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5).
Line 18: I added more global variables (detections, marshaller, helper, effort) to make sure nothing overwrites itself as the detector jumps between m files.
Lines 40-123: I wrote these lines to add and set parameters to the XML (similar to what was done in lines 163-214 in bm_autodet_dir_LB). The purpose of this block is to create the XML structure and add the parameter values if weren't made in bm_autodet_dir_LB (This feature was in the original file bm_autodet_HA). I commented out lines 40 - 45 because I figured if the detector accidentally executes these lines when it isn't needed, it will overwrite the XML previously created as the detector goes through the xwav files.
Line 170: I removed the ~ found in the original file (bm_autodet_HA) because the detector skips over this block. Without this block, the XML won't be created.
Lines 172-177: I rewrote the original code and added lines to work with the Tethys 2.5 Update.
Changes in bm_findcalls_LB:
Lines 5-7: I added a general note on how I changed the script, along with my initials and date.
Line 9: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5).
Line 18: I added more global variables (detections, helper) to make sure nothing overwrites itself as the detector jumps between m files.
Lines 81-82, 84-85, 90-99: I added lines to make sure they are in the proper type (string) to work with Tethys 2.5.
Lines 101-122: I rewrote and added some of these lines these lines because the function being used was deprecated in Tethys 2.5. They are meant to add more parameters (Block, Bandwidth, Threshold, Neighborhood, Start/End Time increments of each B call) to the XML file.
Lines 207-243: I commented these lines out so the detector doesn't automatically create 1000s of plots while it runs. I kept it just because it was in the original script (XMLfindcalls) and it gives the user the option to look at a plot if he/she wants.
Changes in bm_writecalls_LB:
I rewrote 90% of XMLwritecalls because of a deprecated function and Tethys 2.5 has a different way of saving detections.
Lines 6-8: I added a general note on how I changed the script, along with my initials and date.
Line 10: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5) .
Line 11: This line is not needed but I kept it commented just in case.
Line 12: I added more global variables (detections, helper, detection marshaller) to make sure nothing overwrites itself as the detector jumps between m files.
Lines 16-17, 27: I added these lines to tell the detector to create a branch in the XML for individual detections.
Lines 28- 50: I added individual detection parameters (Individual Call Start Time, Species ID, Call Type).
Line 54: I added this line to print detections on command window.
Changes in bm_init_batch_detector:
Lines 13-14: I commented out the path the original path the detector would take to run and I commented it out and put a new line to tell the detector to go to my updated files.
I kept the original files as is and made my edits on a new file that I tacked on "_LB". I also renamed two files completely for more uniformity. bm_autodet_dir_HA => bm_autodet_dir_LB bm_autodet_HA => bm_autodet_LB XMLfindcalls => bm_findcalls_LB XMLwritecalls => bm_writecalls_LB Note: I plan on removing the "_LB" once I get confirmation that it works well from other people.
Changes in bm_autodet_dir_LB: Lines 12-14: I added a general note on how I changed the script, along with my initials and date. Line 14: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5). Line 19: I added more global variables (detections, marshaller, helper, effort) to make sure nothing overwrites itself as the detector jumps between m files. Lines 88-94: Tethys 2.5 gives the user the ability to create a premade XML outline that can be filled in. Line 154: I added this line set the start date (new line needed with Tethys 2.5). Lines 163-214: I rewrote the code to add parameters (user ID, software version, species, call type). --Note: User will still need to go in and manually change username. I assume that's what happened in original script Line 242: I added this line to set the end date (similar to what I did for Line 154). Lines 248-307: I edited the script on adding parameters like in lines 163-214. I commented it out because it overwites the original XML file if uncommented, but I didn't completely delete it because it was in the original script (bm_autodet_dir_HA) and it might be useful to uncomment if the detector doesn't work.
Changes in bm_autodet_LB Lines 13-15: I added a general note on how I changed the script, along with my initials and date. Line 17: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5). Line 18: I added more global variables (detections, marshaller, helper, effort) to make sure nothing overwrites itself as the detector jumps between m files. Lines 40-123: I wrote these lines to add and set parameters to the XML (similar to what was done in lines 163-214 in bm_autodet_dir_LB). The purpose of this block is to create the XML structure and add the parameter values if weren't made in bm_autodet_dir_LB (This feature was in the original file bm_autodet_HA). I commented out lines 40 - 45 because I figured if the detector accidentally executes these lines when it isn't needed, it will overwrite the XML previously created as the detector goes through the xwav files. Line 170: I removed the ~ found in the original file (bm_autodet_HA) because the detector skips over this block. Without this block, the XML won't be created. Lines 172-177: I rewrote the original code and added lines to work with the Tethys 2.5 Update.
Changes in bm_findcalls_LB: Lines 5-7: I added a general note on how I changed the script, along with my initials and date. Line 9: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5). Line 18: I added more global variables (detections, helper) to make sure nothing overwrites itself as the detector jumps between m files. Lines 81-82, 84-85, 90-99: I added lines to make sure they are in the proper type (string) to work with Tethys 2.5. Lines 101-122: I rewrote and added some of these lines these lines because the function being used was deprecated in Tethys 2.5. They are meant to add more parameters (Block, Bandwidth, Threshold, Neighborhood, Start/End Time increments of each B call) to the XML file. Lines 207-243: I commented these lines out so the detector doesn't automatically create 1000s of plots while it runs. I kept it just because it was in the original script (XMLfindcalls) and it gives the user the option to look at a plot if he/she wants.
Changes in bm_writecalls_LB: I rewrote 90% of XMLwritecalls because of a deprecated function and Tethys 2.5 has a different way of saving detections. Lines 6-8: I added a general note on how I changed the script, along with my initials and date. Line 10: I changed the line import tethys.nilus. to import nilus. (new to Tethys 2.5) . Line 11: This line is not needed but I kept it commented just in case. Line 12: I added more global variables (detections, helper, detection marshaller) to make sure nothing overwrites itself as the detector jumps between m files. Lines 16-17, 27: I added these lines to tell the detector to create a branch in the XML for individual detections. Lines 28- 50: I added individual detection parameters (Individual Call Start Time, Species ID, Call Type). Line 54: I added this line to print detections on command window.
Changes in bm_init_batch_detector: Lines 13-14: I commented out the path the original path the detector would take to run and I commented it out and put a new line to tell the detector to go to my updated files.