<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: <NAME>
# @Date:   2018-02-02 14:06:55

from gnpy.core.elements import Edfa
import numpy as np
from json import load
import pytest
from gnpy.core import network_from_json
from gnpy.core.elements import Transceiver, Fiber, Edfa
from gnpy.core.utils import lin2db, db2lin , load_json
from gnpy.core.info import SpectralInformation, Channel, Power
from gnpy.core.equipment import read_eqpt_library
from pathlib import Path

#network_file_name = 'tests/test_network.json'
network_file_name = 'test_network.json'
eqpt_library_name = 'eqpt_config_test.json'

@pytest.fixture(params=[(96, 0.05e12), (60, 0.075e12), (45, 0.1e12), (2, 0.1e12)], 
    ids=['50GHz spacing', '75GHz spacing', '100GHz spacing', '2 channels'])
# TODO in elements.py code: pytests doesn't pass with 1 channel: interpolate fail
def nch_and_spacing(request):
    """parametrize channel count vs channel spacing (Hz)"""
    yield request.param

@pytest.fixture()
def bw():<commit_msg>putting correct Path for input files in amplfier_test.py<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: <NAME>
# @Date:   2018-02-02 14:06:55

from gnpy.core.elements import Edfa
import numpy as np
from json import load
import pytest
from gnpy.core import network_from_json
from gnpy.core.elements import Transceiver, Fiber, Edfa
from gnpy.core.utils import lin2db, db2lin , load_json
from gnpy.core.info import SpectralInformation, Channel, Power
from gnpy.core.equipment import read_eqpt_library
from pathlib import Path

#network_file_name = 'tests/test_network.json'
network_file_name = 'tests/test_network.json'
eqpt_library_name = 'tests/eqpt_config_test.json'

@pytest.fixture(params=[(96, 0.05e12), (60, 0.075e12), (45, 0.1e12), (2, 0.1e12)], 
    ids=['50GHz spacing', '75GHz spacing', '100GHz spacing', '2 channels'])
# TODO in elements.py code: pytests doesn't pass with 1 channel: interpolate fail
def nch_and_spacing(request):
    """parametrize channel count vs channel spacing (Hz)"""
    yield request.param

@pytest.fixture()
def bw():
{'fraction_non_alphanumeric': 0.1206485455412494, 'fraction_numerical': 0.050548402479732954, 'mean_word_length': 5.262686567164179, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5685061', 'n_tokens_mistral': 817, 'n_tokens_neox': 726, 'n_words': 208}