mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-10-31 18:18:00 +00:00 
			
		
		
		
	reorganization: gnpy/{core => tools}/service_sheet.py
Change-Id: I88559cc718536f222b8ea9829bcc72a425c062ca
This commit is contained in:
		| @@ -10,5 +10,4 @@ | |||||||
| .. automodule:: gnpy.core.network | .. automodule:: gnpy.core.network | ||||||
| .. automodule:: gnpy.core.parameters | .. automodule:: gnpy.core.parameters | ||||||
| .. automodule:: gnpy.core.science_utils | .. automodule:: gnpy.core.science_utils | ||||||
| .. automodule:: gnpy.core.service_sheet |  | ||||||
| .. automodule:: gnpy.core.utils | .. automodule:: gnpy.core.utils | ||||||
|   | |||||||
| @@ -3,3 +3,4 @@ | |||||||
|  |  | ||||||
| .. automodule:: gnpy.tools | .. automodule:: gnpy.tools | ||||||
| .. automodule:: gnpy.tools.convert | .. automodule:: gnpy.tools.convert | ||||||
|  | .. automodule:: gnpy.tools.service_sheet | ||||||
|   | |||||||
| @@ -20,7 +20,6 @@ from logging import getLogger, basicConfig, CRITICAL, DEBUG, INFO | |||||||
| from json import dumps, loads | from json import dumps, loads | ||||||
| from numpy import mean | from numpy import mean | ||||||
| from gnpy.core import ansi_escapes | from gnpy.core import ansi_escapes | ||||||
| from gnpy.core.service_sheet import convert_service_sheet, Request_element, Element |  | ||||||
| from gnpy.core.utils import automatic_nch, automatic_fmax, load_json | from gnpy.core.utils import automatic_nch, automatic_fmax, load_json | ||||||
| from gnpy.core.network import load_network, build_network, save_network | from gnpy.core.network import load_network, build_network, save_network | ||||||
| from gnpy.core.equipment import load_equipment, trx_mode_params | from gnpy.core.equipment import load_equipment, trx_mode_params | ||||||
| @@ -34,6 +33,7 @@ from gnpy.topology.request import (PathRequest, ResultElement, | |||||||
|                                    BLOCKING_NOPATH, BLOCKING_NOMODE, |                                    BLOCKING_NOPATH, BLOCKING_NOMODE, | ||||||
|                                    find_reversed_path, correct_json_route_list) |                                    find_reversed_path, correct_json_route_list) | ||||||
| from gnpy.topology.spectrum_assignment import build_oms_list, pth_assign_spectrum | from gnpy.topology.spectrum_assignment import build_oms_list, pth_assign_spectrum | ||||||
|  | from gnpy.tools.service_sheet import convert_service_sheet, Request_element, Element | ||||||
| from copy import copy, deepcopy | from copy import copy, deepcopy | ||||||
| from textwrap import dedent | from textwrap import dedent | ||||||
| from math import ceil | from math import ceil | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ | |||||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||||
| 
 | 
 | ||||||
| """ | """ | ||||||
| gnpy.core.service_sheet | gnpy.tools.service_sheet | ||||||
| ======================== | ======================== | ||||||
| 
 | 
 | ||||||
| XLS parser that can be called to create a JSON request file in accordance with | XLS parser that can be called to create a JSON request file in accordance with | ||||||
| @@ -20,12 +20,12 @@ from logging import getLogger | |||||||
| from networkx import (dijkstra_path, NetworkXNoPath, all_simple_paths) | from networkx import (dijkstra_path, NetworkXNoPath, all_simple_paths) | ||||||
| from networkx.utils import pairwise | from networkx.utils import pairwise | ||||||
| from numpy import mean | from numpy import mean | ||||||
| from gnpy.core.service_sheet import Element |  | ||||||
| from gnpy.core.elements import Transceiver, Roadm | from gnpy.core.elements import Transceiver, Roadm | ||||||
| from gnpy.core.utils import lin2db | from gnpy.core.utils import lin2db | ||||||
| from gnpy.core.info import create_input_spectral_information | from gnpy.core.info import create_input_spectral_information | ||||||
| from gnpy.core.exceptions import ServiceError, DisjunctionError | from gnpy.core.exceptions import ServiceError, DisjunctionError | ||||||
| import gnpy.core.ansi_escapes as ansi_escapes | import gnpy.core.ansi_escapes as ansi_escapes | ||||||
|  | from gnpy.tools.service_sheet import Element | ||||||
| from copy import deepcopy | from copy import deepcopy | ||||||
| from csv import writer | from csv import writer | ||||||
| from math import ceil | from math import ceil | ||||||
|   | |||||||
| @@ -24,7 +24,6 @@ from tests.compare import compare_networks, compare_services | |||||||
| from copy import deepcopy | from copy import deepcopy | ||||||
| from gnpy.core.utils import automatic_nch, lin2db | from gnpy.core.utils import automatic_nch, lin2db | ||||||
| from gnpy.core.network import save_network, build_network | from gnpy.core.network import save_network, build_network | ||||||
| from gnpy.core.service_sheet import convert_service_sheet, correct_xls_route_list |  | ||||||
| from gnpy.core.equipment import load_equipment | from gnpy.core.equipment import load_equipment | ||||||
| from gnpy.core.network import load_network | from gnpy.core.network import load_network | ||||||
| from gnpy.core.exceptions import ServiceError | from gnpy.core.exceptions import ServiceError | ||||||
| @@ -32,6 +31,7 @@ from gnpy.topology.request import (jsontocsv, requests_aggregation, compute_path | |||||||
|                                    ResultElement, PathRequest) |                                    ResultElement, PathRequest) | ||||||
| from gnpy.topology.spectrum_assignment import build_oms_list, pth_assign_spectrum | from gnpy.topology.spectrum_assignment import build_oms_list, pth_assign_spectrum | ||||||
| from gnpy.tools.convert import convert_file | from gnpy.tools.convert import convert_file | ||||||
|  | from gnpy.tools.service_sheet import convert_service_sheet, correct_xls_route_list | ||||||
| from examples.path_requests_run import (requests_from_json, disjunctions_from_json, | from examples.path_requests_run import (requests_from_json, disjunctions_from_json, | ||||||
|                                         correct_disjn, compute_path_with_disjunction) |                                         correct_disjn, compute_path_with_disjunction) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jan Kundrát
					Jan Kundrát