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.
Files changed (103) hide show
  1. unduwave-0.9.0/MANIFEST.in +9 -0
  2. unduwave-0.9.0/PKG-INFO +40 -0
  3. unduwave-0.9.0/README.md +24 -0
  4. unduwave-0.9.0/pyproject.toml +53 -0
  5. unduwave-0.9.0/setup.cfg +4 -0
  6. unduwave-0.9.0/setup.py +71 -0
  7. unduwave-0.9.0/unduwave/.archive/undu_representation.py +624 -0
  8. unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/__init__.py +0 -0
  9. unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/cpmu20.py +714 -0
  10. unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/cpmu_archive.py +747 -0
  11. unduwave-0.9.0/unduwave/.archive/undulatorsBessyII/undulatoren_bessy_II.json +1282 -0
  12. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libgcc_s_seh-1.dll +0 -0
  13. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libgfortran-5.dll +0 -0
  14. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libgomp-1.dll +0 -0
  15. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libquadmath-0.dll +0 -0
  16. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/libwinpthread-1.dll +0 -0
  17. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/stub.txt +0 -0
  18. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/undumag.exe +0 -0
  19. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/bin/undumag_win.exe +0 -0
  20. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/Vanadium_Permendur_Radia.dat +961 -0
  21. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undugui.cfg +28 -0
  22. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag.clc +63 -0
  23. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag.nam +352 -0
  24. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag_mu_77K.dat +1 -0
  25. unduwave-0.9.0/unduwave/External-Software/UNDUMAG/stage/undumag_proc_msh_radia.py +447 -0
  26. unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libgcc_s_seh-1.dll +0 -0
  27. unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libgfortran-5.dll +0 -0
  28. unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libgomp-1.dll +0 -0
  29. unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libquadmath-0.dll +0 -0
  30. unduwave-0.9.0/unduwave/External-Software/WAVE/bin/libwinpthread-1.dll +0 -0
  31. unduwave-0.9.0/unduwave/External-Software/WAVE/bin/wave.exe +0 -0
  32. unduwave-0.9.0/unduwave/External-Software/WAVE/bin/wave_win.exe +0 -0
  33. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/Vanadium_Permendur_Radia.dat +961 -0
  34. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/undumag +8 -0
  35. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/undumag_mu_300K.dat +1 -0
  36. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/undumag_mu_77K.dat +1 -0
  37. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/wave +9 -0
  38. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/wave.in +3965 -0
  39. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/waveplot.cfg +26 -0
  40. unduwave-0.9.0/unduwave/External-Software/WAVE/stage/waves.wvs +5669 -0
  41. unduwave-0.9.0/unduwave/MATERIAL_FILES/fm_vanadium_permendur.dat +964 -0
  42. unduwave-0.9.0/unduwave/MATERIAL_FILES/pm_rec.dat +4 -0
  43. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undu_raw.clc +61 -0
  44. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undu_tmp.clc +62 -0
  45. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undumag.nam +352 -0
  46. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/Undu-In-Files/undumag_proc_msh_radia.py +447 -0
  47. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_bxyz_ALL_OUT.in +3769 -0
  48. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_by_ALL_OUT.in +3769 -0
  49. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_by_ALL_OUT_no_ensprd.in +3769 -0
  50. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/load_ext_on_axis_byz_ALL_OUT.in +3769 -0
  51. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/wave.in +3821 -0
  52. unduwave-0.9.0/unduwave/UNDWAVE_IN_FILES/WAVE-In-Files/wave_org.in +3769 -0
  53. unduwave-0.9.0/unduwave/__init__.py +50 -0
  54. unduwave-0.9.0/unduwave/analytical_module/__init__.py +0 -0
  55. unduwave-0.9.0/unduwave/analytical_module/ana_undu/__init__.py +0 -0
  56. unduwave-0.9.0/unduwave/analytical_module/ana_undu/bfield.py +1932 -0
  57. unduwave-0.9.0/unduwave/analytical_module/ana_undu/grids.py +1088 -0
  58. unduwave-0.9.0/unduwave/analytical_module/ana_undu/kicks.py +311 -0
  59. unduwave-0.9.0/unduwave/analytical_module/ana_undu/undulator.py +349 -0
  60. unduwave-0.9.0/unduwave/analytical_module/ana_wave/__init__.py +0 -0
  61. unduwave-0.9.0/unduwave/analytical_module/ana_wave/ana_eb_fields.py +439 -0
  62. unduwave-0.9.0/unduwave/analytical_module/analytic_structures.py +11 -0
  63. unduwave-0.9.0/unduwave/api/__init__.py +0 -0
  64. unduwave-0.9.0/unduwave/api/undu_api_root.py +98 -0
  65. unduwave-0.9.0/unduwave/api/wave_api_root.py +60 -0
  66. unduwave-0.9.0/unduwave/attribute_classes/__init__.py +0 -0
  67. unduwave-0.9.0/unduwave/attribute_classes/attributes.py +167 -0
  68. unduwave-0.9.0/unduwave/constants.py +38 -0
  69. unduwave-0.9.0/unduwave/helpers/__init__.py +0 -0
  70. unduwave-0.9.0/unduwave/helpers/file_folder_helpers.py +212 -0
  71. unduwave-0.9.0/unduwave/helpers/numerical_helpers.py +67 -0
  72. unduwave-0.9.0/unduwave/optimization_module/__init__.py +0 -0
  73. unduwave-0.9.0/unduwave/quantities/__init__.py +0 -0
  74. unduwave-0.9.0/unduwave/quantities/quantities.py +515 -0
  75. unduwave-0.9.0/unduwave/undu_list/__init__.py +0 -0
  76. unduwave-0.9.0/unduwave/undu_list/undu_list_loading.py +1411 -0
  77. unduwave-0.9.0/unduwave/undu_modules/__init__.py +0 -0
  78. unduwave-0.9.0/unduwave/undu_modules/undu_blocks.py +1041 -0
  79. unduwave-0.9.0/unduwave/undu_modules/undu_coils.py +220 -0
  80. unduwave-0.9.0/unduwave/undu_modules/undu_control.py +42 -0
  81. unduwave-0.9.0/unduwave/undu_modules/undu_magneticObjectGeometries.py +440 -0
  82. unduwave-0.9.0/unduwave/undu_modules/undu_magnets_old.py +638 -0
  83. unduwave-0.9.0/unduwave/undu_modules/undu_parameters.py +273 -0
  84. unduwave-0.9.0/unduwave/undu_modules/undu_postprocess.py +177 -0
  85. unduwave-0.9.0/unduwave/undu_modules/undu_prepare.py +138 -0
  86. unduwave-0.9.0/unduwave/undu_modules/undu_results.py +330 -0
  87. unduwave-0.9.0/unduwave/undu_modules/undu_undulatorComponents.py +464 -0
  88. unduwave-0.9.0/unduwave/unduwave_incl.py +71 -0
  89. unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden0000077500000002 +40 -0
  90. unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden0000077700000003 +102 -0
  91. unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden000009b20000000a +697 -0
  92. unduwave-0.9.0/unduwave/wave_modules/.fuse_hidden000009b500000009 +533 -0
  93. unduwave-0.9.0/unduwave/wave_modules/__init__.py +0 -0
  94. unduwave-0.9.0/unduwave/wave_modules/wave_control.py +47 -0
  95. unduwave-0.9.0/unduwave/wave_modules/wave_parameters.py +561 -0
  96. unduwave-0.9.0/unduwave/wave_modules/wave_postprocess.py +72 -0
  97. unduwave-0.9.0/unduwave/wave_modules/wave_prepare.py +136 -0
  98. unduwave-0.9.0/unduwave/wave_modules/wave_results.py +837 -0
  99. unduwave-0.9.0/unduwave.egg-info/PKG-INFO +40 -0
  100. unduwave-0.9.0/unduwave.egg-info/SOURCES.txt +143 -0
  101. unduwave-0.9.0/unduwave.egg-info/dependency_links.txt +1 -0
  102. unduwave-0.9.0/unduwave.egg-info/requires.txt +6 -0
  103. 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
+
@@ -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
@@ -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
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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
+ )