coding style: autopep --in-place --recursive --jobs 4 --max-line-length 120 gnpy/ tests/

Change-Id: I2f0fca5aa1314f9bb546a3e6dc712a42580cd562
This commit is contained in:
Jan Kundrát
2020-05-19 12:40:00 +02:00
parent 145653df6e
commit 3548ed74e2
22 changed files with 718 additions and 560 deletions

View File

@@ -28,7 +28,7 @@ class Parameters:
instance_dict = self.__dict__
new_dict = {}
for key in class_dict:
if isinstance(class_dict[key],property):
if isinstance(class_dict[key], property):
new_dict[key] = instance_dict['_' + key]
return new_dict
@@ -113,7 +113,6 @@ class NLIParams(Parameters):
def f_pump_resolution(self, f_pump_resolution):
self._f_pump_resolution = f_pump_resolution
@property
def computed_channels(self):
return self._computed_channels
@@ -283,4 +282,3 @@ class FiberParams(Parameters):
dictionary = super().asdict()
dictionary['loss_coef'] = self.loss_coef * 1e3
return dictionary