simplipfy.Export package
Subpackages
Submodules
simplipfy.Export.dictExportBase module
- class simplipfy.Export.dictExportBase.DictExportBase(precision: int, langSymbol: LangSymbols, isSymbolic=False)
Bases:
objectBase class for the classes that create dictionaries with information about the circuit relevant to the frontend Handles conversation from lcapy objects to latex strings
Note
The difference between ExportDict and DictExport
ExportDict is a modified Dictionary to hold data
DictExport is the class that populates an ExportDict with data for the frontend
- latexWithPrefix(value: Mul | Expr, prec=None, addPrefix: bool = True) str
- latexWithoutPrefix(value: Expr, prec=None) str
- toLatex(toPrint)
simplipfy.Export.dictExportCircuitInfo module
- class simplipfy.Export.dictExportCircuitInfo.DictExportCircuitInfo(langSymbols: <simplipfy.Helpers.langSymbols.LangSymbols object at 0x0000020446C6B110>, cirType='RLC', isSymbolic=False, precision=3)
Bases:
DictExportBaseExport for step 0 of <simplipfy.Solution> Steps 1 - n are handled in <simplipfy.Export.dictExport>
- getDictForStep(step, solution: Solution) Step0ExportDict
- Returns:
ExportDictBase with the circuit information for step 0
simplipfy.Export.dictExportSimpStep module
- class simplipfy.Export.dictExportSimpStep.DictExportSimpStep(langSymbol: <simplipfy.Helpers.langSymbols.LangSymbols object at 0x0000020446C6AFD0>, isSymbolic=False, precision=3)
Bases:
DictExportBaseExport for steps 1 - n of <simplipfy.Solution> is handled in this class. Export for step 0 is handled in <simplipfy.Export.dictExportCircuitInfo>.
- getDictForStep(step: str, solution: Solution) ExportDict
- Parameters:
step – step to export
solution – solution object to get the data from
- Returns:
an Step0ExportDict or an ExportDict object with the data of the step
- class simplipfy.Export.dictExportSimpStep.SimpStepElements(elems: list[ExportElement], resElm: ExportElement = None)
Bases:
objectData class that provides a clear structure for the simplified elements and the result
- makeCptExportDictLists() tuple[list[CptExportDict], list[CptExportDict]]
- Returns:
tuple of two lists, the first list contains the CptExportDicts of the simplified elements, the second list contains the CptExportDicts of all elements. The first list ist a subset of the second list.
Module contents
This package is used to export data from the lcapyInskale package. The relevant functions for usage are:
- DictExportCircuitInfo
Exports information about all components in the circuit and creates the image of the initial circuit.
- DictExport
Exports information about a simplification step created with SimplifyInUserOrder Package or SimplifyStepWise Package. Creates the image of the circuit after the simplification step is applied.
- The classes use the following objects outside of this module to gather information about the circuit:
lcapyInskale.Solution
lcapyInskale.SolutionStep