mnpbem-simulation 0.1.1__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.
- mnpbem_simulation-0.1.1/MANIFEST.in +6 -0
- mnpbem_simulation-0.1.1/PKG-INFO +59 -0
- mnpbem_simulation-0.1.1/README.md +41 -0
- mnpbem_simulation-0.1.1/pyproject.toml +37 -0
- mnpbem_simulation-0.1.1/setup.cfg +4 -0
- mnpbem_simulation-0.1.1/src/mnpbem_simulation/__init__.py +22 -0
- mnpbem_simulation-0.1.1/src/mnpbem_simulation/spectra.py +18 -0
- mnpbem_simulation-0.1.1/src/mnpbem_simulation.egg-info/PKG-INFO +59 -0
- mnpbem_simulation-0.1.1/src/mnpbem_simulation.egg-info/SOURCES.txt +10 -0
- mnpbem_simulation-0.1.1/src/mnpbem_simulation.egg-info/dependency_links.txt +1 -0
- mnpbem_simulation-0.1.1/src/mnpbem_simulation.egg-info/requires.txt +1 -0
- mnpbem_simulation-0.1.1/src/mnpbem_simulation.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mnpbem-simulation
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: High-level simulation orchestration helpers for MNPBEM workflows.
|
|
5
|
+
Author-email: GALIH RIDHO UTOMO <g4lihru@students.unnes.ac.id>
|
|
6
|
+
License-Expression: GPL-2.0-only
|
|
7
|
+
Project-URL: Homepage, https://pypi.org/project/mnpbem-simulation/
|
|
8
|
+
Project-URL: Repository, https://github.com/galihru/mnpbem/tree/main/mnpbem-simulation
|
|
9
|
+
Project-URL: Source, https://github.com/galihru/mnpbem
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: numpy>=1.24
|
|
18
|
+
|
|
19
|
+
# mnpbem-simulation
|
|
20
|
+
|
|
21
|
+
[](https://pypi.org/project/mnpbem-simulation/)
|
|
22
|
+
[](https://pypi.org/project/mnpbem-simulation/)
|
|
23
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbemsimulation.yml)
|
|
24
|
+
|
|
25
|
+
`mnpbem-simulation` orchestrates vectorized spectrum evaluation over wavelength grids.
|
|
26
|
+
Release metadata is generated from this README so installation notes and mathematical context stay synchronized.
|
|
27
|
+
|
|
28
|
+
## Implemented Formulation
|
|
29
|
+
For sampled wavelengths $\lambda_i$, the response is evaluated as:
|
|
30
|
+
|
|
31
|
+
$$
|
|
32
|
+
S_i = f(\lambda_i)
|
|
33
|
+
$$
|
|
34
|
+
|
|
35
|
+
with strict shape-consistency between input grid and output spectrum.
|
|
36
|
+
|
|
37
|
+
## Implementation
|
|
38
|
+
- Spectrum sampling: `src/mnpbem_simulation/spectra.py`
|
|
39
|
+
|
|
40
|
+
## Dependencies
|
|
41
|
+
- `numpy>=1.24`
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
```bash
|
|
45
|
+
pip install mnpbem-simulation
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Example
|
|
49
|
+
Runnable example:
|
|
50
|
+
- `examples/basic_usage.py`
|
|
51
|
+
|
|
52
|
+
Run:
|
|
53
|
+
```bash
|
|
54
|
+
python examples/basic_usage.py
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Author
|
|
58
|
+
- GALIH RIDHO UTOMO
|
|
59
|
+
- g4lihru@students.unnes.ac.id
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# mnpbem-simulation
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/mnpbem-simulation/)
|
|
4
|
+
[](https://pypi.org/project/mnpbem-simulation/)
|
|
5
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbemsimulation.yml)
|
|
6
|
+
|
|
7
|
+
`mnpbem-simulation` orchestrates vectorized spectrum evaluation over wavelength grids.
|
|
8
|
+
Release metadata is generated from this README so installation notes and mathematical context stay synchronized.
|
|
9
|
+
|
|
10
|
+
## Implemented Formulation
|
|
11
|
+
For sampled wavelengths $\lambda_i$, the response is evaluated as:
|
|
12
|
+
|
|
13
|
+
$$
|
|
14
|
+
S_i = f(\lambda_i)
|
|
15
|
+
$$
|
|
16
|
+
|
|
17
|
+
with strict shape-consistency between input grid and output spectrum.
|
|
18
|
+
|
|
19
|
+
## Implementation
|
|
20
|
+
- Spectrum sampling: `src/mnpbem_simulation/spectra.py`
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
- `numpy>=1.24`
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
```bash
|
|
27
|
+
pip install mnpbem-simulation
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
Runnable example:
|
|
32
|
+
- `examples/basic_usage.py`
|
|
33
|
+
|
|
34
|
+
Run:
|
|
35
|
+
```bash
|
|
36
|
+
python examples/basic_usage.py
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Author
|
|
40
|
+
- GALIH RIDHO UTOMO
|
|
41
|
+
- g4lihru@students.unnes.ac.id
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=69", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mnpbem-simulation"
|
|
7
|
+
version = "0.1.1"
|
|
8
|
+
description = "High-level simulation orchestration helpers for MNPBEM workflows."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "GALIH RIDHO UTOMO", email = "g4lihru@students.unnes.ac.id" }
|
|
13
|
+
]
|
|
14
|
+
license = "GPL-2.0-only"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Science/Research",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Topic :: Scientific/Engineering :: Physics"
|
|
21
|
+
]
|
|
22
|
+
dependencies = [
|
|
23
|
+
"numpy>=1.24",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://pypi.org/project/mnpbem-simulation/"
|
|
28
|
+
Repository = "https://github.com/galihru/mnpbem/tree/main/mnpbem-simulation"
|
|
29
|
+
Source = "https://github.com/galihru/mnpbem"
|
|
30
|
+
[tool.setuptools]
|
|
31
|
+
package-dir = {"" = "src"}
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.packages.find]
|
|
34
|
+
where = ["src"]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""High-level simulation orchestration helpers for MNPBEM workflows."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
5
|
+
|
|
6
|
+
from .spectra import sample_spectrum
|
|
7
|
+
|
|
8
|
+
__all__ = ["sample_spectrum", "__version__", "module_status"]
|
|
9
|
+
|
|
10
|
+
try:
|
|
11
|
+
__version__ = version("mnpbem-simulation")
|
|
12
|
+
except PackageNotFoundError:
|
|
13
|
+
__version__ = "0.0.0"
|
|
14
|
+
|
|
15
|
+
def module_status() -> str:
|
|
16
|
+
return "alpha"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Spectrum orchestration helpers."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Callable
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def sample_spectrum(
|
|
10
|
+
wavelengths_nm: np.ndarray,
|
|
11
|
+
response_fn: Callable[[np.ndarray], np.ndarray],
|
|
12
|
+
) -> np.ndarray:
|
|
13
|
+
"""Evaluate a vectorized response function over wavelength grid."""
|
|
14
|
+
wavelengths = np.asarray(wavelengths_nm, dtype=float)
|
|
15
|
+
response = np.asarray(response_fn(wavelengths), dtype=complex)
|
|
16
|
+
if response.shape != wavelengths.shape:
|
|
17
|
+
raise ValueError("response_fn must return an array with same shape as wavelengths")
|
|
18
|
+
return response
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mnpbem-simulation
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: High-level simulation orchestration helpers for MNPBEM workflows.
|
|
5
|
+
Author-email: GALIH RIDHO UTOMO <g4lihru@students.unnes.ac.id>
|
|
6
|
+
License-Expression: GPL-2.0-only
|
|
7
|
+
Project-URL: Homepage, https://pypi.org/project/mnpbem-simulation/
|
|
8
|
+
Project-URL: Repository, https://github.com/galihru/mnpbem/tree/main/mnpbem-simulation
|
|
9
|
+
Project-URL: Source, https://github.com/galihru/mnpbem
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: numpy>=1.24
|
|
18
|
+
|
|
19
|
+
# mnpbem-simulation
|
|
20
|
+
|
|
21
|
+
[](https://pypi.org/project/mnpbem-simulation/)
|
|
22
|
+
[](https://pypi.org/project/mnpbem-simulation/)
|
|
23
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbemsimulation.yml)
|
|
24
|
+
|
|
25
|
+
`mnpbem-simulation` orchestrates vectorized spectrum evaluation over wavelength grids.
|
|
26
|
+
Release metadata is generated from this README so installation notes and mathematical context stay synchronized.
|
|
27
|
+
|
|
28
|
+
## Implemented Formulation
|
|
29
|
+
For sampled wavelengths $\lambda_i$, the response is evaluated as:
|
|
30
|
+
|
|
31
|
+
$$
|
|
32
|
+
S_i = f(\lambda_i)
|
|
33
|
+
$$
|
|
34
|
+
|
|
35
|
+
with strict shape-consistency between input grid and output spectrum.
|
|
36
|
+
|
|
37
|
+
## Implementation
|
|
38
|
+
- Spectrum sampling: `src/mnpbem_simulation/spectra.py`
|
|
39
|
+
|
|
40
|
+
## Dependencies
|
|
41
|
+
- `numpy>=1.24`
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
```bash
|
|
45
|
+
pip install mnpbem-simulation
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Example
|
|
49
|
+
Runnable example:
|
|
50
|
+
- `examples/basic_usage.py`
|
|
51
|
+
|
|
52
|
+
Run:
|
|
53
|
+
```bash
|
|
54
|
+
python examples/basic_usage.py
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Author
|
|
58
|
+
- GALIH RIDHO UTOMO
|
|
59
|
+
- g4lihru@students.unnes.ac.id
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
MANIFEST.in
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/mnpbem_simulation/__init__.py
|
|
5
|
+
src/mnpbem_simulation/spectra.py
|
|
6
|
+
src/mnpbem_simulation.egg-info/PKG-INFO
|
|
7
|
+
src/mnpbem_simulation.egg-info/SOURCES.txt
|
|
8
|
+
src/mnpbem_simulation.egg-info/dependency_links.txt
|
|
9
|
+
src/mnpbem_simulation.egg-info/requires.txt
|
|
10
|
+
src/mnpbem_simulation.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
numpy>=1.24
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mnpbem_simulation
|