Skip to content

Conversation

@hyperc54
Copy link
Collaborator

This PR restores the default behaviour of basic_pitch.data.download which changed after an apache_beam package update (and additionally fixes a few obsolete comments, variables, and a input param typo)

Description

A fairly recent apache_beam update (~Sept 2025) changed the default behaviour of the basic_pitch.data.download module.

With apache_beam < 2.68, DirectRunner would run the pipeline in a local process. With >= 2.68 the DirectRunner pipeline would use Docker as specified by the environment_type=DOCKER parameter. As environment_type=DOCKER is default fro PortableRunner and DataflowRunner, we don't really need to specify it. Removing the environment_type=DOCKER makes DirectRunner run in a local process.

@hyperc54 hyperc54 added the bug Something isn't working label Oct 30, 2025
SEMITONES_PER_OCTAVE = 12 # for frequency bin calculations

FFT_HOP = 256
N_FFT = 8 * FFT_HOP
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constant is not used.

args.size_evaluation_callback_datasets,
datasets_to_use,
dataset_sampling_frequency,
args.dont_sonify,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont_sonify is incorrect

@hyperc54 hyperc54 merged commit eee9fe0 into spotify:main Nov 7, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant