Skip to content

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

@KinMaynard

Description

@KinMaynard

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

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions