mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-10-31 18:18:00 +00:00 
			
		
		
		
	Add a test case for the case of 2 adjacent fibers
make sure that their loss is not concatenated Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: I63678dd5b72f7f6984101c4367320f3f981cb573
This commit is contained in:
		| @@ -53,6 +53,48 @@ | |||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |       "uid": "fiber7", | ||||||
|  |       "type": "Fiber", | ||||||
|  |       "type_variety": "SSMF", | ||||||
|  |       "params": { | ||||||
|  |         "length": 1.0, | ||||||
|  |         "loss_coef": 0.2, | ||||||
|  |         "length_units": "km", | ||||||
|  |         "att_in": 0, | ||||||
|  |         "con_in": 0.0, | ||||||
|  |         "con_out": 0.0 | ||||||
|  |       }, | ||||||
|  |       "metadata": { | ||||||
|  |         "location": { | ||||||
|  |           "latitude": 0, | ||||||
|  |           "longitude": 0, | ||||||
|  |           "city": null, | ||||||
|  |           "region": null | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "uid": "fiber8", | ||||||
|  |       "type": "Fiber", | ||||||
|  |       "type_variety": "SSMF", | ||||||
|  |       "params": { | ||||||
|  |         "length": 60.0, | ||||||
|  |         "loss_coef": 0.2, | ||||||
|  |         "length_units": "km", | ||||||
|  |         "att_in": 0, | ||||||
|  |         "con_in": 0.0, | ||||||
|  |         "con_out": 0.0 | ||||||
|  |       }, | ||||||
|  |       "metadata": { | ||||||
|  |         "location": { | ||||||
|  |           "latitude": 0, | ||||||
|  |           "longitude": 0, | ||||||
|  |           "city": null, | ||||||
|  |           "region": null | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|       "uid": "fused1", |       "uid": "fused1", | ||||||
|       "type": "Fused", |       "type": "Fused", | ||||||
| @@ -387,6 +429,18 @@ | |||||||
|     { |     { | ||||||
|       "from_node": "nodeB", |       "from_node": "nodeB", | ||||||
|       "to_node": "Site_B" |       "to_node": "Site_B" | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "from_node": "nodeA", | ||||||
|  |       "to_node": "fiber7" | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "from_node": "fiber7", | ||||||
|  |       "to_node": "fiber8" | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "from_node": "fiber8", | ||||||
|  |       "to_node": "nodeB" | ||||||
|     } |     } | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|   | |||||||
| @@ -30,6 +30,9 @@ NETWORK_FILENAME = TEST_DIR / 'data/bugfixiteratortopo.json' | |||||||
|     # fourth span |     # fourth span | ||||||
|     ['fiber6', 17], |     ['fiber6', 17], | ||||||
|     ['fused7', 17], |     ['fused7', 17], | ||||||
|  |     # fifth span | ||||||
|  |     ['fiber7', 0.2], | ||||||
|  |     ['fiber8', 12], | ||||||
|     # all other nodes |     # all other nodes | ||||||
|     ['Site_A', 0], |     ['Site_A', 0], | ||||||
|     ['nodeA', 0], |     ['nodeA', 0], | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 EstherLerouzic
					EstherLerouzic