Commit c69f3560 authored by moritz's avatar moritz
Browse files

Moritz Huebner: Changed deprecated getargspec -> signature

parent cf4ed8bd
...@@ -24,7 +24,7 @@ class WaveformGenerator: ...@@ -24,7 +24,7 @@ class WaveformGenerator:
""" """
def __init__(self, name, sampling_frequency, time_duration, source_model): def __init__(self, name, sampling_frequency, time_duration, source_model):
self.parameter_keys = inspect.getargspec(source_model).args self.parameter_keys = inspect.signature(source_model).args
self.parameter_keys.pop(0) self.parameter_keys.pop(0)
for a in self.parameter_keys: for a in self.parameter_keys:
setattr(self, a, None) setattr(self, a, None)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment