Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_vis_tests.py possible syntax error line 30-34 #71

Open
2 tasks
KinMaynard opened this issue Jan 31, 2023 · 0 comments
Open
2 tasks

run_vis_tests.py possible syntax error line 30-34 #71

KinMaynard opened this issue Jan 31, 2023 · 0 comments
Assignees
Labels
question Further information is requested
Milestone

Comments

@KinMaynard
Copy link
Owner

KinMaynard commented Jan 31, 2023

Lines 30-34:
Line 31 & 33 why 2*np… and 2 * np… these are different syntax?

Check if syntax is intentional if not change it to python style guide.

    if 'Mono' in answers['tests']:
        # Create test files
        # Random to simulate dither
        sf.write('silence.aiff', (2*np.random.default_rng(42).random((4410))
                 - 1) / 10000, 44100, 'PCM_16')
        sf.write('white.aiff', 2 * np.random.default_rng(42).random((4410))
                 - 1, 88200, 'PCM_16')
        sf.write('sin.aiff', np.sin(np.linspace(-np.pi, np.pi, 4410)), 44100,
                 'PCM_16')
  • Look up python style guide in finished issues in project
  • Change syntax to conform to style guide
@KinMaynard KinMaynard self-assigned this Jan 31, 2023
@KinMaynard KinMaynard added the question Further information is requested label Jan 31, 2023
@KinMaynard KinMaynard added this to the 2.0 Release milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant