MCPcopy Index your code
hub / github.com/RustPython/RustPython / setparams

Method setparams

Lib/wave.py:540–548  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

538 return self._compname
539
540 def setparams(self, params):
541 nchannels, sampwidth, framerate, nframes, comptype, compname = params
542 if self._datawritten:
543 raise Error('cannot change parameters after starting to write')
544 self.setnchannels(nchannels)
545 self.setsampwidth(sampwidth)
546 self.setframerate(framerate)
547 self.setnframes(nframes)
548 self.setcomptype(comptype, compname)
549
550 def getparams(self):
551 if not self._nchannels or not self._sampwidth or not self._framerate:

Callers 1

test_copyMethod · 0.80

Calls 6

setnchannelsMethod · 0.95
setsampwidthMethod · 0.95
setframerateMethod · 0.95
setnframesMethod · 0.95
setcomptypeMethod · 0.95
ErrorClass · 0.70

Tested by 1

test_copyMethod · 0.64