unduwave 0.9.0__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.
- unduwave-0.9.0/MANIFEST.in +9 -0
- unduwave-0.9.0/PKG-INFO +40 -0
- unduwave-0.9.0/README.md +24 -0
- unduwave-0.9.0/pyproject.toml +53 -0
- unduwave-0.9.0/setup.cfg +4 -0
- unduwave-0.9.0/setup.py +71 -0
- unduwave-0.9.0/unduwave/.archive/undu_representation.py +624 -0
- unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/__init__.py +0 -0
- unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/cpmu20.py +714 -0
- unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/cpmu_archive.py +747 -0
- unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/undulatoren_bessy_II.json +1282 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libgcc_s_seh-1.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libgfortran-5.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libgomp-1.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libquadmath-0.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libwinpthread-1.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/stub.txt +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/undumag.exe +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/undumag_win.exe +0 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/Vanadium_Permendur_Radia.dat +961 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undugui.cfg +28 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag.clc +63 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag.nam +352 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag_mu_77K.dat +1 -0
- unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag_proc_msh_radia.py +447 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libgcc_s_seh-1.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libgfortran-5.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libgomp-1.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libquadmath-0.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libwinpthread-1.dll +0 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/bin/wave.exe +0 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/bin/wave_win.exe +0 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/Vanadium_Permendur_Radia.dat +961 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/undumag +8 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/undumag_mu_300K.dat +1 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/undumag_mu_77K.dat +1 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/wave +9 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/wave.in +3965 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/waveplot.cfg +26 -0
- unduwave-0.9.0/unduwave/External-Software/WAVE/stage/waves.wvs +5669 -0
- unduwave-0.9.0/unduwave/MATERIAL_FILES/fm_vanadium_permendur.dat +964 -0
- unduwave-0.9.0/unduwave/MATERIAL_FILES/pm_rec.dat +4 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undu_raw.clc +61 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undu_tmp.clc +62 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undumag.nam +352 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undumag_proc_msh_radia.py +447 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_bxyz_ALL_OUT.in +3769 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_by_ALL_OUT.in +3769 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_by_ALL_OUT_no_ensprd.in +3769 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_byz_ALL_OUT.in +3769 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/wave.in +3821 -0
- unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/wave_org.in +3769 -0
- unduwave-0.9.0/unduwave/__init__.py +50 -0
- unduwave-0.9.0/unduwave/analytical_module/__init__.py +0 -0
- unduwave-0.9.0/unduwave/analytical_module/ana_undu/__init__.py +0 -0
- unduwave-0.9.0/unduwave/analytical_module/ana_undu/bfield.py +1932 -0
- unduwave-0.9.0/unduwave/analytical_module/ana_undu/grids.py +1088 -0
- unduwave-0.9.0/unduwave/analytical_module/ana_undu/kicks.py +311 -0
- unduwave-0.9.0/unduwave/analytical_module/ana_undu/undulator.py +349 -0
- unduwave-0.9.0/unduwave/analytical_module/ana_wave/__init__.py +0 -0
- unduwave-0.9.0/unduwave/analytical_module/ana_wave/ana_eb_fields.py +439 -0
- unduwave-0.9.0/unduwave/analytical_module/analytic_structures.py +11 -0
- unduwave-0.9.0/unduwave/api/__init__.py +0 -0
- unduwave-0.9.0/unduwave/api/undu_api_root.py +98 -0
- unduwave-0.9.0/unduwave/api/wave_api_root.py +60 -0
- unduwave-0.9.0/unduwave/attribute_classes/__init__.py +0 -0
- unduwave-0.9.0/unduwave/attribute_classes/attributes.py +167 -0
- unduwave-0.9.0/unduwave/constants.py +38 -0
- unduwave-0.9.0/unduwave/helpers/__init__.py +0 -0
- unduwave-0.9.0/unduwave/helpers/file_folder_helpers.py +212 -0
- unduwave-0.9.0/unduwave/helpers/numerical_helpers.py +67 -0
- unduwave-0.9.0/unduwave/optimization_module/__init__.py +0 -0
- unduwave-0.9.0/unduwave/quantities/__init__.py +0 -0
- unduwave-0.9.0/unduwave/quantities/quantities.py +515 -0
- unduwave-0.9.0/unduwave/undu_list/__init__.py +0 -0
- unduwave-0.9.0/unduwave/undu_list/undu_list_loading.py +1411 -0
- unduwave-0.9.0/unduwave/undu_modules/__init__.py +0 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_blocks.py +1041 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_coils.py +220 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_control.py +42 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_magneticObjectGeometries.py +440 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_magnets_old.py +638 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_parameters.py +273 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_postprocess.py +177 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_prepare.py +138 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_results.py +330 -0
- unduwave-0.9.0/unduwave/undu_modules/undu_undulatorComponents.py +464 -0
- unduwave-0.9.0/unduwave/unduwave_incl.py +71 -0
- unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden0000077500000002 +40 -0
- unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden0000077700000003 +102 -0
- unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden000009b20000000a +697 -0
- unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden000009b500000009 +533 -0
- unduwave-0.9.0/unduwave/wave_modules/__init__.py +0 -0
- unduwave-0.9.0/unduwave/wave_modules/wave_control.py +47 -0
- unduwave-0.9.0/unduwave/wave_modules/wave_parameters.py +561 -0
- unduwave-0.9.0/unduwave/wave_modules/wave_postprocess.py +72 -0
- unduwave-0.9.0/unduwave/wave_modules/wave_prepare.py +136 -0
- unduwave-0.9.0/unduwave/wave_modules/wave_results.py +837 -0
- unduwave-0.9.0/unduwave.egg-info/PKG-INFO +40 -0
- unduwave-0.9.0/unduwave.egg-info/SOURCES.txt +143 -0
- unduwave-0.9.0/unduwave.egg-info/dependency_links.txt +1 -0
- unduwave-0.9.0/unduwave.egg-info/requires.txt +6 -0
- unduwave-0.9.0/unduwave.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
graft unduwave
|
|
2
|
+
prune unduwave/External-Software
|
|
3
|
+
prune unduwave/External-Software/*
|
|
4
|
+
graft unduwave/External-Software/WAVE/bin
|
|
5
|
+
graft unduwave/External-Software/WAVE/stage
|
|
6
|
+
graft unduwave/External-Software/UNDUMAG/bin
|
|
7
|
+
graft unduwave/External-Software/UNDUMAG/stage
|
|
8
|
+
global-exclude __pycache__ *.pyc *.pyo
|
|
9
|
+
|
unduwave-0.9.0/PKG-INFO
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: unduwave
|
|
3
|
+
Version: 0.9.0
|
|
4
|
+
Summary: Functionality for WAVE and Undumag from python
|
|
5
|
+
Author-email: Stefan Schäfer <stefan.schaefer@helmholtz-berlin.de>
|
|
6
|
+
Maintainer-email: Stefan Schäfer <stefan.schaefer@helmholtz-berlin.de>
|
|
7
|
+
License: MIT
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: numpy
|
|
11
|
+
Requires-Dist: pandas
|
|
12
|
+
Requires-Dist: h5py
|
|
13
|
+
Requires-Dist: scipy
|
|
14
|
+
Requires-Dist: matplotlib
|
|
15
|
+
Requires-Dist: PyYAML
|
|
16
|
+
|
|
17
|
+
# unduwave
|
|
18
|
+
|
|
19
|
+
## What unduwave does
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## How to install unduwave
|
|
23
|
+
|
|
24
|
+
To install this package run:
|
|
25
|
+
|
|
26
|
+
`python -m pip install unduwave`
|
|
27
|
+
|
|
28
|
+
## Get started using unduwave
|
|
29
|
+
|
|
30
|
+
Here add a quick code demo showing a user how to use the package after it is installed.
|
|
31
|
+
|
|
32
|
+
You can also add any links to tutorials in your documentation here.
|
|
33
|
+
|
|
34
|
+
## How to cite unduwave
|
|
35
|
+
|
|
36
|
+
citation information here
|
|
37
|
+
|
|
38
|
+
## Version
|
|
39
|
+
|
|
40
|
+
- Current Version: 0.9.0
|
unduwave-0.9.0/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# unduwave
|
|
2
|
+
|
|
3
|
+
## What unduwave does
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## How to install unduwave
|
|
7
|
+
|
|
8
|
+
To install this package run:
|
|
9
|
+
|
|
10
|
+
`python -m pip install unduwave`
|
|
11
|
+
|
|
12
|
+
## Get started using unduwave
|
|
13
|
+
|
|
14
|
+
Here add a quick code demo showing a user how to use the package after it is installed.
|
|
15
|
+
|
|
16
|
+
You can also add any links to tutorials in your documentation here.
|
|
17
|
+
|
|
18
|
+
## How to cite unduwave
|
|
19
|
+
|
|
20
|
+
citation information here
|
|
21
|
+
|
|
22
|
+
## Version
|
|
23
|
+
|
|
24
|
+
- Current Version: 0.9.0
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "unduwave"
|
|
7
|
+
version = "0.9.0"
|
|
8
|
+
requires-python = ">=3.9"
|
|
9
|
+
description = "Functionality for WAVE and Undumag from python"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
|
|
13
|
+
dependencies = [
|
|
14
|
+
"numpy",
|
|
15
|
+
"pandas",
|
|
16
|
+
"h5py",
|
|
17
|
+
"scipy",
|
|
18
|
+
"matplotlib",
|
|
19
|
+
"PyYAML",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
authors = [
|
|
23
|
+
{ name = "Stefan Schäfer", email = "stefan.schaefer@helmholtz-berlin.de" }
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
maintainers = [
|
|
27
|
+
{ name = "Stefan Schäfer", email = "stefan.schaefer@helmholtz-berlin.de" }
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[tool.setuptools]
|
|
31
|
+
package-dir = {"" = "."}
|
|
32
|
+
include-package-data = true
|
|
33
|
+
|
|
34
|
+
[tool.setuptools.packages.find]
|
|
35
|
+
where = ["."]
|
|
36
|
+
include = ["unduwave*"]
|
|
37
|
+
namespaces = false
|
|
38
|
+
|
|
39
|
+
[tool.bumpver]
|
|
40
|
+
current_version = "0.9.0"
|
|
41
|
+
version_pattern = "MAJOR.MINOR.PATCH"
|
|
42
|
+
commit_message = "Bump version {old_version} -> {new_version}"
|
|
43
|
+
commit = true
|
|
44
|
+
tag = true
|
|
45
|
+
push = false
|
|
46
|
+
|
|
47
|
+
[tool.bumpver.file_patterns]
|
|
48
|
+
"pyproject.toml" = [
|
|
49
|
+
'current_version = "{version}"', 'version = "{version}"'
|
|
50
|
+
]
|
|
51
|
+
"setup.py" = ['version="{pep440_version}",']
|
|
52
|
+
"README.md" = ['- Current Version: {pep440_version}']
|
|
53
|
+
|
unduwave-0.9.0/setup.cfg
ADDED
unduwave-0.9.0/setup.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
import shutil
|
|
3
|
+
import pdb
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
from setuptools import find_packages, setup
|
|
7
|
+
from setuptools.command.build_py import build_py as _build_py
|
|
8
|
+
|
|
9
|
+
ROOT = Path(__file__).resolve().parent
|
|
10
|
+
PACKAGE_NAME = "unduwave"
|
|
11
|
+
EXTERNAL_ROOT = ROOT / PACKAGE_NAME / "External-Software"
|
|
12
|
+
|
|
13
|
+
WHITELIST = [
|
|
14
|
+
("WAVE", "bin"),
|
|
15
|
+
("WAVE", "stage"),
|
|
16
|
+
("UNDUMAG", "bin"),
|
|
17
|
+
("UNDUMAG", "stage"),
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
EXTRA_ROOT = ROOT / PACKAGE_NAME
|
|
21
|
+
EXTRA_FOLDERS = [
|
|
22
|
+
"MATERIAL_FILES",
|
|
23
|
+
"UNDWAVE_IN_FILES",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
class build_py(_build_py):
|
|
27
|
+
def run(self):
|
|
28
|
+
super().run()
|
|
29
|
+
self.copy_external_files()
|
|
30
|
+
self.copy_extra_folders()
|
|
31
|
+
|
|
32
|
+
def copy_extra_folders(self):
|
|
33
|
+
for rel_dir in EXTRA_FOLDERS:
|
|
34
|
+
src_dir = EXTRA_ROOT / rel_dir
|
|
35
|
+
dst_dir = Path(self.build_lib) / "unduwave" / rel_dir
|
|
36
|
+
shutil.copytree(src_dir, dst_dir, dirs_exist_ok=True)
|
|
37
|
+
|
|
38
|
+
def copy_external_files(self):
|
|
39
|
+
for software, subdir in WHITELIST:
|
|
40
|
+
src_dir = EXTERNAL_ROOT / software / subdir
|
|
41
|
+
|
|
42
|
+
if not src_dir.exists():
|
|
43
|
+
continue
|
|
44
|
+
|
|
45
|
+
if subdir == 'stage' :
|
|
46
|
+
subdir='stage_tmp'
|
|
47
|
+
|
|
48
|
+
dst_dir = (
|
|
49
|
+
Path(self.build_lib)
|
|
50
|
+
/ PACKAGE_NAME
|
|
51
|
+
/ "External-Software"
|
|
52
|
+
/ software
|
|
53
|
+
/ subdir
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
for src_path in src_dir.rglob("*"):
|
|
57
|
+
if src_path.is_file():
|
|
58
|
+
rel = src_path.relative_to(src_dir)
|
|
59
|
+
dst_path = dst_dir / rel
|
|
60
|
+
dst_path.parent.mkdir(parents=True, exist_ok=True)
|
|
61
|
+
shutil.copy2(src_path, dst_path)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
setup(
|
|
65
|
+
name="unduwave",
|
|
66
|
+
version="0.9.0",
|
|
67
|
+
package_dir={"": "."},
|
|
68
|
+
packages=find_packages(where=".", include=["unduwave*"]),
|
|
69
|
+
include_package_data=False,
|
|
70
|
+
cmdclass={"build_py": build_py},
|
|
71
|
+
)
|