SRS tests - #132
Conversation
|
Extends the previous request here. |
| from pprint import pprint | ||
| from numpy import errstate | ||
| from mnoptical.node import LineTerminal, Roadm, Amplifier | ||
| from mnoptical.edfa_params import fibre_spectral_attenuation |
There was a problem hiding this comment.
All tests are failing because the fibre_spectral_attenuation list is not in edfa_params.py in this PR.
Might be worth adding it to see if tests are passing
There was a problem hiding this comment.
Yes, that should have been included in this PR instead. However we can merge #133 and see if it helps.
|
@juraul1 @manny118 I enabled the (somewhat recently added) repo setting enabling admins to update (i.e. It's a very useful feature, and I just used it to update/rebase this PR after merging #133. |
|
@manny118 Now the SRS tests look like they are legitimately failing: see line 744 of: https://github.com/Mininet-Optical/mininet-optical/runs/7729810659?check_suite_focus=true#step:7:744 So, the SRS tests are doing their thing, which is good. Now we just have to get them passing. |
|
The first script passed whereas others failed, and that is because each script calls a different SRS function. Only one function can be enabled each time in the code. |
|
Could you fix it so that all SRS functions are tested and the tests pass? We can't merge the branch unless the tests pass. |
|
An option would be to use 4 different pull requests, although the same link.py script would be used for each. I am not sure of how that would work since it would mean having all four functions enabled in the code when they are merged into the repo which is not ideal. |
...
class Link:
srs_models = [MyCoolSRSModel, SomeOtherSRSModel, ..., None]
srs_model = MyCoolSRSModel
def __init__(self, ... **params):
...
self.srs_model = params.get('srs_model', self.srs_model)
...
def propagate(....):
if self.srs_model:
self.srs_model(...)
That would also replace |
Tests for the SRS models.