mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 02:57:52 +00:00
coding style: autopep --in-place --recursive --jobs 4 --max-line-length 120 gnpy/ tests/
Change-Id: I2f0fca5aa1314f9bb546a3e6dc712a42580cd562
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user