Saravanan666/pypi-org huggingface dataset:
Package: pyfb-company
Company package for pyfreebilling applicationDocumentationThe full documentation is athttps://pyfb-company.readthedocs.io.QuickstartInstall pyfb-company:pip install pyfb-companyAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_company.apps.PyfbCompanyConfig',...)Add pyfb-company’s URL patterns:frompyfb_companyimporturlsaspyfb_company_urlsurlpatterns=[...url(r'^',include(pyfb_company_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.3.0 (2020-12-23)Move Customer related stuff to customer modelMove Provider related stuff ti provider model1.2.0 (2020-09-17)Addition of a parameter to authorize the update of the balance1.1.0 (2020-09-14)Add a settings to block call if credit limit is reached1.0.0 (2020-05-21)update dependencies0.9.0 (2018-12-10)First release on PyPI.
Package: pyfb-did
Your project description goes hereDocumentationThe full documentation is athttps://pyfb-did.readthedocs.io.QuickstartInstall pyfb-did:pip install pyfb-didAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_did.apps.PyfbDidConfig',...)Add pyfb-did’s URL patterns:frompyfb_didimporturlsaspyfb_did_urlsurlpatterns=[...url(r'^',include(pyfb_did_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.0.3 (2020-05-21)Update dependencies1.0.2 (2019-06-26)Add dependencies for migration1.0.1 (2019-05-23)Add domain in SQL view1.0.0 (2019-01-30)SQL view for kamailio0.9.0 (2018-12-07)First release on PyPI.
Package: pyfb-direction
Phonenumber’s direction packageDocumentationThe full documentation is athttps://pyfb-direction.readthedocs.io.QuickstartInstall pyfb-direction:pip install pyfb-directionAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_direction.apps.PyfbDirectionConfig',...)Add pyfb-direction’s URL patterns:frompyfb_directionimporturlsaspyfb_direction_urlsurlpatterns=[...url(r'^',include(pyfb_direction_urls)),...]FeaturesTelephony prefix management linking prefix with destination, country, network type and CarrierAdmin interfaceCSV import / exportweb template with Bootstrap 4APIsRunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.0.4 (2020-05-26)Update viewsUpdate dependencies1.0.3 (2020-04-20)Destination count in per country was wrongAdd search feature in country, prefix, region viewUpdate test configAdd feature to evaluate risk1.0.2 (2019-03-27)Change carrier to be nullable in destination modelDestination’s screen improvements1.0.1 (2019-01-30)SQL view for Kamailio1.0.0 (2018-11-15)First release on PyPI.
Package: pyfb-endpoint
Endpoint app for PyFreeBillingDocumentationThe full documentation is athttps://pyfb-endpoint.readthedocs.io.QuickstartInstall pyfb-endpoint:pip install pyfb-endpointAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_endpoint.apps.PyfbEndpointConfig',...)Add pyfb-endpoint’s URL patterns:frompyfb_endpointimporturlsaspyfb_endpoint_urlsurlpatterns=[...url(r'^',include(pyfb_endpoint_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.1.0 (2020-03-21)Change min and max django versionNew feature to add a + before the callerID in gateway for outbound calls1.0.1 (2019-07-10)Add provider registration feature1.0.0 (2019-05-23)Add domain to customer endpoint0.9.3 (2019-04-10)Add P-Preferred-Identity SIP header management for provider and customer endpoint.0.9.2 (2019-01-30)SQL views for Kamailio.French and spanish translations0.9.1 (2018-12-20)Bug : typo in dependencies on PyPI.0.9.0 (2018-12-07)First release on PyPI.
Package: pyFBIG
PyFBIG (Python - Fake Brazilian ID Generator)PyFBIG is a package that generates fake data for you. Do you need to test something with Brazilian identification such as RG, CPF, Driver's License, CRM, COREN, etc.? PyFBIG is for you.How to useInstallpip install pyFBIGExamples:from pyFBIG import FakeID

fake = FakeID()

cpf = fake.cpf()
print(cpf)
# 163.710.406-50

rg = fake.rg()
print(rg)
# MG86103044

crm = fake.crm()
print(crm)

#About the projectIt is still in the prototyping and development phase. Feel free to contribute and suggest improvements.
Package: pyfb-kamailio
Kamailio package for django project, mainly used by PyFreeBilling projectDocumentationThe full documentation is athttps://pyfb-kamailio.readthedocs.io.QuickstartInstall Pyfb-kamailio:pip install pyfb-kamailioAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_kamailio.apps.PyfbKamailioConfig',...)Add Pyfb-kamailio’s URL patterns:frompyfb_kamailioimporturlsaspyfb_kamailio_urlsurlpatterns=[...url(r'^',include(pyfb_kamailio_urls)),...]Apply migrations :python manage.py migrateUpload initial data :python manage.py loaddata pyfb_kamailioFeaturesKamailio modules supported by this application :accdialoghtablemtreepermissionspipelimitregistrarrtpenginespeeddialuacuserblacklistuserlocRunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.2.2 (2020-05-27)Update acc detail view1.2.1 (2020-05-20)add cdr_id field in acc cdr1.2.0 (2020-05-17)add fields in acc cdrupdate admin views1.1.0 (2020-05-14)add fields in acc1.0.3 (2020-03-21)update testupdate uacreg table to be compliant with 5.3 kamailio version1.0.2 (2019-07-10)admin tweaks for uacreg module1.0.1 (2019-06-21)Correct fk representation of domainAdmin enhancements1.0.0 (2019-05-23)add domain tableadd translations0.9.4 (2019-03-06)add fields in missed_calls table0.9.3 (2019-02-26)add topo tables0.9.2 (2019-02-25)correct field name in ACC tableadd more fielads in ACC and CDR tablesadmin tweaks0.9.1 (2019-01-30)upload fixtures from migration for initial setupnew table for statistics0.9.0 (2018-11-15)First release on PyPI.
Package: pyfb-normalization
Normalization application package. TRansform phone number to E.164 numbers. Mainly used in PyFreeBilling project.DocumentationThe full documentation is athttps://pyfb-normalization.readthedocs.io.QuickstartInstall pyfb-normalization:pip install pyfb-normalizationAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_normalization.apps.PyfbNormalizationConfig',...)Add pyfb-normalization’s URL patterns:frompyfb_normalizationimporturlsaspyfb_normalization_urlsurlpatterns=[...url(r'^',include(pyfb_normalization_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.0.2 (2020-05-21)update dependencies1.0.1 (2019-01-30)SQL views for kamailiotranslations updates1.0.0 (2018-11-15)First release on PyPI.
Package: pyfb-rating
Rating application for PyFB projectDocumentationThe full documentation is athttps://pyfb-rating.readthedocs.io.QuickstartInstall pyfb-rating:pip install pyfb-ratingAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_rating.apps.PyfbRatingConfig',...)Add pyfb-rating’s URL patterns:frompyfb_ratingimporturlsaspyfb_rating_urlsurlpatterns=[...url(r'^',include(pyfb_rating_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.0.0 (2020-05-21)stable version0.11.3 (2019-06-17)Bug : remove unused view (cause issue in some setup).0.11.2 (2019-05-20)Bug : correct discount model.0.11.0 (2018-12-21)Add ratecard allocation to customer.0.10.0 (2018-12-20)Some corrections.0.9.0 (2018-12-05)First release on PyPI.
Package: pyfb-reporting
Your project description goes hereDocumentationThe full documentation is athttps://pyfb-reporting.readthedocs.io.QuickstartInstall pyfb-reporting:pip install pyfb-reportingAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_reporting.apps.PyfbReportingConfig',...)Add pyfb-reporting’s URL patterns:frompyfb_reportingimporturlsaspyfb_reporting_urlsurlpatterns=[...url(r'^',include(pyfb_reporting_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.2.1 (2020-10-11)Correct cdr detailed view (billsec and costsec were inversed)1.2.0 (2020-10-06)Update APIAdd field in CDR to have the correct value of the billed duration by provider1.1.2 (2020-05-29)Correct little bug1.1.0 (2020-05-27)Add a link to gross CDRs in CDR detail viewAdd CDR export featureNew date filter in CDR list1.0.0 (2020-05-21)Provider can be search in CDR list viewCDR detail view has been reworkedCall class has been added (on-net / off-net)0.9.5 (2020-02-21)Error in DB migration0.9.4 (2020-02-19)Add uuid field for CDRCreate RREvent model0.9.3 (2019-06-23)Show CDR form Latest one to older ones0.9.2 (2019-06-22)Add route_json in cdrRemove unused fieldAdmin interface enhancements0.9.1 (2019-06-18)Change duration filed from integer to decimal.0.9.0 (2019-04-30)First release on PyPI.
Package: pyfb-routing
Routing package for PyFreeBilling applicationDocumentationThe full documentation is athttps://pyfb-routing.readthedocs.io.QuickstartInstall pyfb-routing:pip install pyfb-routingAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'pyfb_routing.apps.PyfbRoutingConfig',...)Add pyfb-routing’s URL patterns:frompyfb_routingimporturlsaspyfb_routing_urlsurlpatterns=[...url(r'^',include(pyfb_routing_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.0.1 (2020-05-21)update dependencies1.0.0 (2019-06-22)Admin interface enhancements0.9.0 (2018-12-05)First release on PyPI.
Package: pyFBS
pyFBSpyFBS is a Python package for Frequency Based Substructuring, Transfer Path Analysis and also, as a new addition, multi-reference modal identification.
It enables the user to use state-of-the-art dynamic substructuring methodologies in an intuitive manner.With the package also basic and application examples are provided, together with real datasets so you can directly try out the capabilities of the pyFBS.Features3D displayFRF synthetizationVirtual Point TransformationSystem Equivalent Model MixingSingular Vector TransformationExperimental Modal AnalysisFor more information on features, basic and application examples check out thedocumentation.CitationA paper about the pyFBS will be submitted to the Journal of Open Source Software journal. If you will be using pyFBS in your scientific research, please consider citing the paper.LicenseLicensed under the MIT license.
Package: pyfbsdgpio-tspspi
FreeBSD GPIO ioctl wrapper for PythonThis is a simple wrapper around the FreeBSDioctlcalles for the
GPIO device. It allows very simple access to configuration and I/O facilities
of the GPIO pins.Installationpip install pyfbsdgpio-tspspiBasic usageFor now this section only summarizes the most basic usage of the module (it
also supports setting pullup and pulldown resistors and selecting different
drive characteristics if the GPIO chipset supports it).Determining pin count of the GPIO moduleOne can determine the number of I/O pins available on the GPIO device:from labdevices.gpio import GpioDirection, GpioDrive, GpioPull
from fbsdgpio import FbsdGPIO

gpio = FbsdGPIO()
print(f"We have {gpio.getIOCount()} I/O ports")Fetching the current configuration of an I/O portfrom labdevices.gpio import GpioDirection, GpioDrive, GpioPull
from fbsdgpio import FbsdGPIO

gpio = FbsdGPIO()
print(f"Current configuration of pin 13: {gpio.getConfig(13)}")Setting pin as input or outputfrom labdevices.gpio import GpioDirection, GpioDrive, GpioPull
from fbsdgpio import FbsdGPIO

with FbsdGPIO() as gpio:
    gpio.setConfig(13, direction=GpioDirection.Input)with FbsdGPIO() as gpio:
    gpio.setConfig(13, direction=GpioDirection.Output)Pulse output# Pulse for 100 microseconds

with FbsdGPIO() as gpio:
    gpio.pulse(13, 100)Also specifying the pulsed (not current) state so the module
does not have to query it:with FbsdGPIO() as gpio:
    gpio.pulse(13, 100, False)
Package: pyfbsdk-stub-generator
MotionBuilder pyfbsdk stub-file generatorScript for generating python stub files for Autodesk MotionBuilder's pyfbsdk module.These stub files include all classes & functions that can be accessed through the pyfbsdk module.
They also include type hints and docstrings for most entities.Pre-generated filesThe GitHub repository already contains some pre-generated stub files that are ready to be used, simply get them from thegenerated-stub-filesfolder:MotionBuilder 2022MotionBuilder 2023MotionBuilder 2024UsageGenerate stub filesIf you want to generate your own stub files for your MotionBuilder version:Install the module through pip:python -m pip install pyfbsdk-stub-generatorFrom within MotionBuilder, run:importpyfbsdk_stub_generatorpyfbsdk_stub_generator.Generate(Directory="C:/MyDirectory/")Application Spesific SetupVisual Studio CodeThese stub files comes bundeled with theMotionBuilder UtilsVSCode extention.
Package: pyfbsdspi-tspspi
FreeBSD SPI wrapper for PythonThepyfbsdspi-tspspiproject contains a very thin wrapper
around theioctlrequests for thespigendevice
on FreeBSD to test various hardware devices from Python. It allows
direct access to the SPI bus on devices like the RaspberryPi when running
under FreeBSD.Installationpip install pyfbsdspi-tspspiUsageThe bus can be instantiated either using context management or by it's
constructor. One can select the bus via it's first constructor
argument (spiDevname):from fbsdspi import FbsdSPI
from labdevs.spibus import SPIClockPolarity, SPIClockPhaseTo instantiate via context management one can use:with FbsdSPI() as spi:
    # Use spi. ....To instantiate without context mangement:spi = FbsdSPI()

# Use spi ...In case one wants to open a different bus device - for examplespigen0.1which would be the second SPI bus on a RaspberryPi one can simply specify the
name as first argument (spiDevname)with FbsdSPI('/dev/spigen0.1') as spi1:
    # spi1. ...Or without context management:spi0 = FbsdSPI('/dev/spigen0.0')
spi1 = FbsdSPI('/dev/spigen0.1')Setting and querying bus clock speedTo query the bus speed one can use thegetClockSpeed()method. This yields
the SPI clock frequency in Hz:print(f"Current clock speed is {spi.getClockSpeed()} Hz")To set the clock the counterpartsetClockSpeedcan be used. Again note that
this requires an integer argument in Hz:spi.setClockSpeed(100000)Setting and getting the bus modeAs for any SPI abstraction library one can also set the four possible bus modes:Clock polarity can be eitherIDLE_HIGHorIDLE_LOWClock phase can be eitherTRAILING_EDGEorLEADING_EDGEspi.setMode(
    clockPolarity = SPIClockPolarity.IDLE_HIGH,
    clockPhase = SPIClockPhase.TRAILING_EDGE
)To query the current mode one can use thegetModeAPI:print(f"Current mode: {spi.getMode()}")
# Return the tuple (SPIClockPhase, SPIClockPolarity)
Package: py-fbx
pyfbxA simple-to-use wrapper for Autodesk Python FBX SDK.Credit to @jochasinga for the original library.FBXFBX(Filmbox) is a proprietary file format (.fbx) developed by
Kaydara and owned byAutodesksince 2006. It is used to provide interoperability between digital
content creation applications.fromWikipediaWhy another wrapper?I have had a chance to work on a project which needed Python to generate
FBX file for Maya. Autodesk did a rather poor job at its Python FBX SDK such as:Lack of documentationC-style APIs instead of PythonicTedious wrapper classes i.e.FbxDouble3to wrap around C++ array.Why build ANOTHER wrapper?Simple put, having to compile and build FBX was a nightmare so I thought I'd provide the
appropriate platform for people to fork and add their own distributions.This is specifically, right now, for Win 32 bit, but can easily be built for linux too (will just need to test)How it worksClasses inpyfbxdoes not inherit the original classes from the SDK. Each instance
of the class have a private property_mewhich interact with the original class's
instance while pyfbx "floats" above i.e.frompyfbximport*manager=Manager()scene=Scene(manager)assertisinstance(scene,pyfbx.Scene)# Trueassertisinstance(scene._me,fbx.FbxScene)# TrueInstallgitclonehttps://github.com/nannafudge/pyfbxcdpyfbx&&pythonsetup.pyinstallExamplesfrompyfbximport*manager=Manager()scene=Scene(manager)node=Node(manager)mesh=Mesh(manager)# Set mesh attributesnode.add_attribute(mesh)scene.root_node.add_child(node)However, sinceManagerandSceneis a singleton in charge of all the  nodes, it makes
sense for them to be atomic.manager=Manager()manager.create_scene()# equivalent to `Scene(manager)`manager.create_node()# equivalent to `Node(manager)`scene=manager.scenescene.create_node()# equivalent to `Node(scene)Node TreeFBX depends on node hierachy, with the scene's root node acting as the descendent of all. While
you can always use the underlying API to traverse through nodes in the scene,Nodealso keeps
track of its children using simple list.frompyfbximport*manager=Manager()p_node=Node(manager,"parent_node")node.add_child(Node(manager,"child_node_1"))node.add_child(Node(manager,"child_node_2"))assertp_node.children[0].name=="child_node_1"c_node_1=node.children[0]c_node_1.add_child(Node(manager,"grandchild_node"))assertp_node.children[0].children[0].name=="grandchild_node"
Package: pyFC
pyFC is a module to construct “fractal cubes” that are useful for initial conditions in hydrodynamical simulations representing a dense, inhomogeneous component embedded in a more tenuous smooth background. Examples include clouds in earth’s athmosphere or the multiphase interstellar medium in galaxies.Classes and functions are provided to create and visualize single-point lognormal, two-point fractal fields, statistics often associated with turbulent, dense condensations.The method of creating lognormal “fractal cubes” was conceived byLewis & Austin (2002)for the modeling of clouds in the earth’s atmosphere. The scheme of this code is based on that outlined in their paper.
Package: pyfca
https://github.com/pyfca/pyfcaPython Formal Concept Analysis (FCA).The purpose is to collect algoritms for FCA.AlgorithmsSo far:lattice construction:AddIntentimplications basis:Koeniglattice drawing:create lattice diagram and output insvgtkinterPlanCreate a basic lattice data structure:Merge existing sources available online.Lattice construction:FCbOInClose2…Implications basis:ClosureLinClosureWild’s Closure…UsageIt can be used to create a concept lattice and to draw it either using tkinter() or svg().import pyfca
fca = pyfca.Lattice([{1,2},{2},{1,3}])
diagram = pyfca.LatticeDiagram(fca,4*297,4*210)
diagram.svg().saveas('tmp.svg')
import cairosvg
cairosvg.svg2png(url="file:///<path to tmp.svg>", write_to='tmp.png')TheAddIntentalgorithm is from the paper:AddIntent: A New Incremental Algorithm for Constructing Concept LatticesThe lattice drawing algorithm is from:GaliciaImplicationsThis uses the python int as a bit field to store the FCA context.See thisblogfor more.
Package: py-fcm
PyFCMFuzzy cognitive maps python library. Also, supports the topology generation from data to solve classification problems.
The details associated to the generation process are described inthis paper.InstallationFrom source:Clone repository:$ git clone https://github.com/J41R0/PyFCM.git 
$ cd PyFCMInstall setup tools and package:$ pip install setuptools
$ python setup.py installFrom PyPi:Install package using pip:$ pip install py-fcmExample usageInference:from py_fcm import from_json

fcm_json = """{
            "max_iter": 500,
            "decision_function": "LAST",
            "activation_function": "sigmoid",
            "memory_influence": False,
            "stability_diff": 0.001,
            "stop_at_stabilize": True,
            "extra_steps": 5,
            "weight": 1,
            "concepts":
                [
                    {
                        "id": "concept_1",
                        "is_active": True,
                        "type": "SIMPLE",
                        "activation": 0.5
                    },
                    {
                        "id": "concept_2", "is_active": True,
                        "type": "DECISION", "activation": 0.0,
                        "custom_function": "gceq",
                        "custom_function_args": {"weight": 0.3}
                    },
                    {
                        "id": "concept_3",
                        "is_active": True,
                        "type": "SIMPLE",
                        "activation": 0.0,
                        "use_memory": True
                    },
                    {
                        "id": "concept_4",
                        "is_active": True,
                        "type": "SIMPLE",
                        "activation": 0.3,
                        "custom_function": "saturation"
                    }
                ],
            "relations":
                [
                    {"origin": "concept_4", "destiny": "concept_2", "weight": -0.1},
                    {"origin": "concept_1", "destiny": "concept_3", "weight": 0.59},
                    {"origin": "concept_3", "destiny": "concept_2", "weight": 0.8911}
                ],
            'activation_function_args': {'lambda_val': 1},
        """
my_fcm = from_json(fcm_json)
my_fcm.run_inference()
result = my_fcm.get_final_state(concept_type='any')
print(result)Generation:import pandas
from py_fcm import FcmEstimator

data_dict = {
   'F1': ['x', 'x', 'y', 'y'],
   'F2': [9.8, 7.3, 1.1, 3.6],
   'class': ['a', 'a', 'r', 'r']
}

 train = pandas.DataFrame(data_dict)
 x_train = train.loc[:, train.columns != 'class']
 y_train = train.loc[:, 'class']

 estimator = FcmEstimator()
 estimator.fit(x_train, y_train)
 print(estimator.predict(x_train))
 print("Accuracy: ",estimator.score(x_train, y_train))
 print(estimator.get_fcm().to_json())
Package: pyfcomb
pyfcomb: Easy frequency combinationsFrequency combinations made easy! pyfcomb allows you to compute possible combinations of
frequencies from a given list of frequencies.InstallationCallpip install pyfcombto install pyfcomb.UsageUsepyfcomb.get_combinations(f_ids,frequencies,amplitudes)to compute the combinations. You need to provide a list of frequency ids, frequencies and
amplitudes all of the same length to compute combinations. You can also use thecombo_depthparameter to change the maximum amount of combinations as well as theaccuracyparameter
to change the minimum precision of combinations.The function then returns apandas.DataFrameconsisting of all frequencies and their
possible combinations. The best combination (in this case the one with highest precision and least
complexity) is also used to calculate the residual from the actual frequency to the combination. Lastly,
this DataFrame also contains a list of all other possible combinations.Examplefrompyfcombimportget_combinationsfrompandasimportread_csvfile=read_csv("pyfcomb/tests/testfiles/freq_data.txt",delimiter="\t",header=None,names=['f_num','f','amp','snr'])f_num=[int(i.replace("F",""))foriinfile.f_num]combinations=get_combinations(f_num,file.f,file.amp)