aesim.simba 2025.3.28__py3-none-macosx_11_0_arm64.whl → 2025.6.19a1__py3-none-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
aesim/simba/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  #%% Load modules...
2
- __version__ = "2025.03.28"
2
+ __version__ = "2025.06.19a1"
3
3
 
4
4
  import pythonnet, clr_loader, os
5
5
  resources_folder_name = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'Resources')
@@ -36,6 +36,7 @@ from Simba.Data.Repository import ProjectRepository, JsonProjectRepository
36
36
  from Simba.Data import License, Design, Circuit, DesignExamples, ACSweep, SweepType, Status, Subcircuit
37
37
  from Simba.Data import ThermalComputationMethodType, ThermalDataType, ThermalDataSemiconductorType
38
38
  from Simba.Data.Thermal import ThermalData, IV_T, EI_VT
39
+ from Simba.Data.PsimImport import PsimImporter
39
40
  from System import Array
40
41
  import Simba.Data
41
42
 
@@ -89,4 +90,24 @@ def create_analysis_progress(callback):
89
90
  action = Action[AnalysisProgress](_handler)
90
91
 
91
92
  # Create and return the Progress<AnalysisProgress> object:
92
- return Progress[AnalysisProgress](action)
93
+ return Progress[AnalysisProgress](action)
94
+
95
+
96
+ def import_psim_xml(file_path):
97
+ """
98
+ Import a PSIM XML file into a SIMBA repository.
99
+ Parameters
100
+ ----------
101
+ file_path : str
102
+ The path to the PSIM XML file to import.
103
+ Returns
104
+ -------
105
+ Tuple[ProjectRepository, JsonProjectRepository, str]
106
+ A tuple containing:
107
+ - status: The status of the import operation
108
+ - ProjectRepository: The project repository with the SIMBA design.
109
+ - str: Error message if any, otherwise an empty string.
110
+ """
111
+ from Simba.Data.PsimImport import PsimImporter
112
+ ret = PsimImporter.CreateSIMBARepositoryFromPSIMFile(file_path);
113
+ return ret.Item1, ret.Item2, ret.Item3