LAAC-LSCP / ChildProject

Python package for the management of day-long recordings of children.
https://childproject.readthedocs.io
MIT License
13 stars 5 forks source link

sampler issue on Solomon #322

Closed lucasgautheron closed 2 years ago

lucasgautheron commented 2 years ago

From @marianne-m

child-project sampler solomon samples/loud/ energy-detection \
  --windows-length 30000 --windows-spacing 300000 \
  --windows-offset 1800000 --windows-count 5 \
  --threshold .75 --low-freq 50 --high-freq 3000 \
  --by recording_filename --profile standard

At first, the output is ok : computing the energy of 204 windows for recording 1_CW3_CH3_AJ01_AJ18_190609.WAV... computing the energy of 162 windows for recording 1_CW2_CH2_AJ01_AJ02_190609.WAV... computing the energy of 214 windows for recording 2_CW2_CH2_AJ01_AJ09_190609.WAV... computing the energy of 193 windows for recording 1_CW1_CH1_AJ01_AJ16_190609.WAV... computing the energy of 222 windows for recording 1_CW2_CH2_AJ02_AJ04_190613.WAV...

Then I have an error :

Traceback (most recent call last):
  File "/home/mmetais/.conda/envs/childproject/bin/child-project", line 8, in <module>
    sys.exit(main())
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/cmdline.py", line 451, in main
    args.func(args)
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/cmdline.py", line 40, in <lambda>
    _parser.set_defaults(func=lambda args: cls().run(**vars(args)))
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/pipelines/samplers.py", line 860, in run
    splr.sample()
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/pipelines/samplers.py", line 67, in sample
    self._sample()
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/pipelines/samplers.py", line 536, in _sample
    [
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/pipelines/samplers.py", line 537, in <listcomp>
    self.get_recording_windows(r)
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/pipelines/samplers.py", line 470, in get_recording_windows
    recording_path = self.project.get_recording_path(
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/site-packages/ChildProject/projects.py", line 461, in get_recording_path
    return os.path.join(
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/posixpath.py", line 90, in join
    genericpath._check_arg_types('join', a, *p)
  File "/home/mmetais/.conda/envs/childproject/lib/python3.8/genericpath.py", line 152, in _check_arg_types
    raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'