Skip to content

Commit

Permalink
v0.3.13 fix virtual env invokation for LINUX
Browse files Browse the repository at this point in the history
  • Loading branch information
bartulem committed Sep 2, 2024
1 parent b8038d0 commit 9470b1c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# usv-playpen v0.3.12
# usv-playpen v0.3.13

<br>
<div align="center">
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='usv-playpen',
version='0.3.12',
version='0.3.13',
author='@bartulem',
author_email='mimica.bartul@gmail.com',
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion src/anipose_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def sleap_file_conversion(self):
command_addition = 'cmd /c '
shell_usage_bool = False
else:
command_addition = ''
command_addition = 'eval "$(conda shell.bash hook)" && '
shell_usage_bool = True

conversion_subprocesses = []
Expand Down
4 changes: 2 additions & 2 deletions src/usv_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def das_command_line_inference(self):
command_addition = 'cmd /c '
shell_usage_bool = False
else:
command_addition = ''
command_addition = 'eval "$(conda shell.bash hook)" && '
shell_usage_bool = True

# run inference
for one_file in glob.glob(pathname=os.path.join(f"{self.root_directory}{os.sep}audio{os.sep}hpss_filtered", "*.wav*")):
self.message_output(f"Running DAS inference on: {os.path.basename(one_file)}")
QTest.qWait(2000)

inference_subp = subprocess.Popen(f'''{command_addition}conda activate {das_conda_name} && das predict {one_file} {model_base} --segment-thres {thresh} --segment-minlen {min_len} --segment-fillgap {fill_gap} --save-format {save_format}"''',
inference_subp = subprocess.Popen(f'''{command_addition}conda activate {das_conda_name} && das predict {one_file} {model_base} --segment-thres {thresh} --segment-minlen {min_len} --segment-fillgap {fill_gap} --save-format {save_format}''',
stdout=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
cwd=f"{self.root_directory}{os.sep}audio{os.sep}hpss_filtered",
Expand Down
2 changes: 1 addition & 1 deletion src/usv_playpen_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
my_app_id = 'mycompany.myproduct.subproduct.version'
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(my_app_id)

app_name = 'USV Playpen v0.3.12'
app_name = 'USV Playpen v0.3.13'
experimenter_id = 'bartulem'
cup_directory_name = 'Bartul'
email_list_global = ''
Expand Down

0 comments on commit 9470b1c

Please sign in to comment.