LumAPI 1.1.3__tar.gz → 1.1.4__tar.gz
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.
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI/lumapi.py +7 -2
- {lumapi-1.1.3 → lumapi-1.1.4/LumAPI.egg-info}/PKG-INFO +2 -2
- {lumapi-1.1.3/LumAPI.egg-info → lumapi-1.1.4}/PKG-INFO +2 -2
- {lumapi-1.1.3 → lumapi-1.1.4}/README.md +1 -1
- {lumapi-1.1.3 → lumapi-1.1.4}/pyproject.toml +1 -1
- {lumapi-1.1.3 → lumapi-1.1.4}/LICENSE +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI/__init__.py +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI/cli.py +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI/config.json +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI/gui.py +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI/lumapi.pyi +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI/lumgenstubs.py +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI.egg-info/SOURCES.txt +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI.egg-info/dependency_links.txt +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI.egg-info/entry_points.txt +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI.egg-info/requires.txt +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/LumAPI.egg-info/top_level.txt +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/setup.cfg +0 -0
- {lumapi-1.1.3 → lumapi-1.1.4}/test/test.py +0 -0
|
@@ -1002,7 +1002,12 @@ def detect_version(lumerical_root):
|
|
|
1002
1002
|
|
|
1003
1003
|
def get_lumapi_path(lumerical_root, version):
|
|
1004
1004
|
"""从Lumerical根路径和版本获取lumapi.py路径"""
|
|
1005
|
-
|
|
1005
|
+
base = os.path.join(lumerical_root, version)
|
|
1006
|
+
p1 = os.path.join(base, "Lumerical", "api", "python", "lumapi.py")
|
|
1007
|
+
if os.path.exists(p1): return p1
|
|
1008
|
+
p2 = os.path.join(base, "api", "python", "lumapi.py")
|
|
1009
|
+
if os.path.exists(p2): return p2
|
|
1010
|
+
return None
|
|
1006
1011
|
|
|
1007
1012
|
def validate_path(lumerical_root: str, version: str = None) -> object:
|
|
1008
1013
|
"""验证Lumerical路径有效性并返回lumapi对象
|
|
@@ -1031,7 +1036,7 @@ def validate_path(lumerical_root: str, version: str = None) -> object:
|
|
|
1031
1036
|
# 获取lumapi.py的完整路径
|
|
1032
1037
|
lumapi_path = get_lumapi_path(lumerical_root, version)
|
|
1033
1038
|
|
|
1034
|
-
if not
|
|
1039
|
+
if not lumapi_path:
|
|
1035
1040
|
print(f"错误:在指定路径未找到 lumapi.py 文件(查找路径:{lumapi_path})")
|
|
1036
1041
|
return None
|
|
1037
1042
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: LumAPI
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: Lumerical Python API 自动化配置工具
|
|
5
5
|
Author-email: JaniQuiz <janiquiz@163.com>
|
|
6
6
|
Maintainer-email: JaniQuiz <janiquiz@163.com>
|
|
@@ -27,7 +27,7 @@ Dynamic: license-file
|
|
|
27
27
|
本项目旨在简化 Lumerical FDTD 软件与 Python 环境的交互流程,提供自动化的路径配置工具,并封装了matlab数据文件.mat的读取和写入,以及常用的光学仿真后处理算法(如近场至远场变换)。
|
|
28
28
|
|
|
29
29
|
## 📖 核心功能
|
|
30
|
-
* **自动化环境配置**:自动识别系统中的 Lumerical
|
|
30
|
+
* **自动化环境配置**:自动识别系统中的 Lumerical 安装路径及版本,支持`Lumerical`安装和`Ansys`安装两种路径。
|
|
31
31
|
* **灵活集成**:支持将 API 库集成至特定 Python 解释器或独立项目目录。
|
|
32
32
|
* **便捷配置**:支持图形化界面和命令行界面两种配置方式。
|
|
33
33
|
* **API 增强**:支持原本接口,并对原本接口进行优化。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: LumAPI
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: Lumerical Python API 自动化配置工具
|
|
5
5
|
Author-email: JaniQuiz <janiquiz@163.com>
|
|
6
6
|
Maintainer-email: JaniQuiz <janiquiz@163.com>
|
|
@@ -27,7 +27,7 @@ Dynamic: license-file
|
|
|
27
27
|
本项目旨在简化 Lumerical FDTD 软件与 Python 环境的交互流程,提供自动化的路径配置工具,并封装了matlab数据文件.mat的读取和写入,以及常用的光学仿真后处理算法(如近场至远场变换)。
|
|
28
28
|
|
|
29
29
|
## 📖 核心功能
|
|
30
|
-
* **自动化环境配置**:自动识别系统中的 Lumerical
|
|
30
|
+
* **自动化环境配置**:自动识别系统中的 Lumerical 安装路径及版本,支持`Lumerical`安装和`Ansys`安装两种路径。
|
|
31
31
|
* **灵活集成**:支持将 API 库集成至特定 Python 解释器或独立项目目录。
|
|
32
32
|
* **便捷配置**:支持图形化界面和命令行界面两种配置方式。
|
|
33
33
|
* **API 增强**:支持原本接口,并对原本接口进行优化。
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
本项目旨在简化 Lumerical FDTD 软件与 Python 环境的交互流程,提供自动化的路径配置工具,并封装了matlab数据文件.mat的读取和写入,以及常用的光学仿真后处理算法(如近场至远场变换)。
|
|
4
4
|
|
|
5
5
|
## 📖 核心功能
|
|
6
|
-
* **自动化环境配置**:自动识别系统中的 Lumerical
|
|
6
|
+
* **自动化环境配置**:自动识别系统中的 Lumerical 安装路径及版本,支持`Lumerical`安装和`Ansys`安装两种路径。
|
|
7
7
|
* **灵活集成**:支持将 API 库集成至特定 Python 解释器或独立项目目录。
|
|
8
8
|
* **便捷配置**:支持图形化界面和命令行界面两种配置方式。
|
|
9
9
|
* **API 增强**:支持原本接口,并对原本接口进行优化。
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|