Skip to content

Commit

Permalink
Fixed bug with new steinburg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed Jun 28, 2022
1 parent 5f00a09 commit 6f2da05
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 74 deletions.
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ mixed_bird_manual.csv
outputs/result.csv
PyHa/birdnet_lite/__pycache__/analyze.cpython-37.pyc
PyHa/IsoAutio.py
PyHa/tweetynet_package/tweetynet/__pycache__/__init__.cpython-37.pyc
PyHa/tweetynet_package/tweetynet/__pycache__/CustomAudioDataset.cpython-37.pyc
PyHa/tweetynet_package/tweetynet/__pycache__/Load_data_functions.cpython-37.pyc
PyHa/tweetynet_package/tweetynet/__pycache__/network.cpython-37.pyc
PyHa/tweetynet_package/tweetynet/__pycache__/TweetyNetAudio.cpython-37.pyc
PyHa/tweetynet_package/tweetynet/__pycache__/TweetyNetModel.cpython-37.pyc
*.wav
*.pyc
*.pyc

4 changes: 3 additions & 1 deletion PyHa/IsoAutio.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ def steinberg_isolate(
# as a potential optimization problem
# rework the algorithm so that it builds the dataframe correctly to save
# time.
entry.assign(

#Spilt offset to get into kaledoscope
entry = entry.assign(
OFFSET=entry['OFFSET'].apply(get_offset),
DURATION=entry['OFFSET'].apply(get_duration)
)
Expand Down
409 changes: 343 additions & 66 deletions PyHa_Testing.ipynb

Large diffs are not rendered by default.

0 comments on commit 6f2da05

Please sign in to comment.