There is a newer version of the record available.

Published April 6, 2026 | Version v0.9.0
Software Open

bartulem/usv-playpen: usv-playpen v0.9.0

  • 1. Princeton Neuroscience Institute
  • 2. Princeton University

Description

v0.9.0: pathlib migration, GMM-based USV playback, sync shape mismatch fix, offset accumulation fix

Replaced all glob.glob and os.path usage with pathlib.Path across 30 source files (anipose_operations, assign_vocalizations, assign_vocalizations_utils, behavioral_experiments, cli_utils, das_inference, extract_phidget_data, generate_audio_files, hpss, load_audio_files, make_behavioral_tuning_figures, make_behavioral_videos, modify_files, os_utils, playback_5s_USV_train, prepare_cluster_job, preprocess_data, preprocessing_plot, send_email, synchronize_files, time_utils, usv_playpen_gui, visualize_data, yaml_utils)

Rewrote create_naturalistic_usv_playback_wav to use Gaussian Mixture Model (GMM) sampling for USV duration, IPI, and call frequency parameters instead of drawing from fixed distribution dictionaries in analyses_settings.json; removed the three corresponding distribution entries from that file

Fixed shape mismatch fallback in synchronize_files when video and audio IPI counts differ by more than one element; the previous code raised an index error instead of gracefully truncating to the shorter array

Fixed offset accumulation bug in compute_behavioral_tuning_curves where cluster_data_frames was being overwritten on each iteration instead of applying each positional offset independently to its own copy of the data

Resolved all star imports and redundant imports across analyses/ and visualizations/ subpackages; replaced with explicit named imports throughout

Wrapped docs/conf.py urlretrieve and importlib.metadata.version calls in try/except to prevent Sphinx build failures in environments without network access or installed package metadata

Updated Analyze.rst to document the new GMM-based USV playback interface and parameter sampling behavior

Added YAML 1.1 coercion guards in yaml_utils for date strings (YYYY-MM-DD) and boolean literals so they round-trip correctly as strings

Files

bartulem/usv-playpen-v0.9.0.zip

Files (57.4 MB)

Name Size Download all
md5:50cc3ede8b97dae4c86dcacc5cf2bdd2
57.4 MB Preview Download

Additional details

Related works