simba-accelerator 0.1.3__tar.gz → 0.3.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 (278) hide show
  1. simba_accelerator-0.3.0/.coverage +0 -0
  2. simba_accelerator-0.3.0/LICENSE +201 -0
  3. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/MANIFEST.in +0 -2
  4. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/PKG-INFO +27 -17
  5. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/README.md +22 -12
  6. simba_accelerator-0.3.0/docs/source/Framework.rst +10 -0
  7. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/SimCodes.rst +2 -2
  8. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/examples/notebooks/beams_example.ipynb +0 -2
  9. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/examples/notebooks/getting_started.ipynb +2 -2
  10. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/examples/notebooks/utility_functions.ipynb +2 -2
  11. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/getting-started.rst +9 -9
  12. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/index.rst +1 -0
  13. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/installation.rst +5 -1
  14. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/loading-a-lattice.rst +10 -10
  15. simba_accelerator-0.3.0/docs/source/simba.Framework_objects.rst +7 -0
  16. simba_accelerator-0.3.0/examples/notebooks/CLA-S02-DIA-SCR-03.openpmd.hdf5 +0 -0
  17. simba_accelerator-0.3.0/examples/notebooks/beams_example.ipynb +1403 -0
  18. simba_accelerator-0.3.0/examples/notebooks/getting_started.ipynb +309 -0
  19. simba_accelerator-0.3.0/examples/notebooks/utility_functions.ipynb +348 -0
  20. simba_accelerator-0.3.0/meta.yml +62 -0
  21. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/pyproject.toml +2 -4
  22. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/requirements.txt +2 -2
  23. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/ASTRA/ASTRA.py +24 -17
  24. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/CSRTrack/CSRTrack.py +1 -1
  25. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Cheetah/Cheetah.py +2 -2
  26. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Elegant/Elegant.py +38 -22
  27. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Elegant/commands_Elegant.yaml +1 -0
  28. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/GPT/GPT.py +3 -3
  29. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/Generators.py +8 -8
  30. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/aliases.yaml +1 -0
  31. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/astra.py +3 -1
  32. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/astra.yaml +1 -1
  33. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Genesis/Genesis.py +37 -33
  34. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/OPAL/OPAL.py +1 -1
  35. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Ocelot/Ocelot.py +1 -1
  36. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Executables.yaml +2 -1
  37. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Framework.py +199 -234
  38. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/FrameworkHelperFunctions.py +112 -3
  39. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Framework_objects.py +84 -90
  40. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/__init__.py +2 -1
  41. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/gdf.py +1 -1
  42. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/openpmd.py +1 -0
  43. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/plot.py +94 -169
  44. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/sdds.py +13 -7
  45. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/SDDSFile.py +9 -4
  46. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/__init__.py +20 -20
  47. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/astra.py +4 -1
  48. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/elegant.py +2 -2
  49. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/genesis.py +23 -24
  50. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/ocelot.py +18 -6
  51. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/opal.py +4 -1
  52. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/optimisation/xopt.py +11 -7
  53. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/plotting/plotting.py +148 -145
  54. simba_accelerator-0.3.0/simba/__init__.py +0 -0
  55. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba_accelerator.egg-info/PKG-INFO +27 -17
  56. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba_accelerator.egg-info/SOURCES.txt +13 -52
  57. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba_accelerator.egg-info/requires.txt +2 -4
  58. simba_accelerator-0.3.0/simba_accelerator.egg-info/scm_file_list.json +225 -0
  59. simba_accelerator-0.3.0/simba_accelerator.egg-info/scm_version.json +8 -0
  60. simba_accelerator-0.3.0/tests/framework_test.py +448 -0
  61. simba_accelerator-0.3.0/tests/twiss.py +10 -0
  62. simba_accelerator-0.3.0/tests/xopt_test.py +10 -0
  63. simba_accelerator-0.3.0/unit_tests/.coverage +0 -0
  64. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/unit_tests/test_beam.py +4 -6
  65. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/unit_tests/test_field.py +3 -3
  66. simba_accelerator-0.3.0/unit_tests/test_framework.py +297 -0
  67. simba_accelerator-0.3.0/unit_tests/test_framework_lattice.py +62 -0
  68. simba_accelerator-0.3.0/unit_tests/test_framework_objects.py +101 -0
  69. simba_accelerator-0.3.0/unit_tests/test_generator.py +158 -0
  70. simba_accelerator-0.3.0/unit_tests/test_track.py +281 -0
  71. simba_accelerator-0.3.0/unit_tests/test_twiss.py +31 -0
  72. simba_accelerator-0.1.3/docs/source/setting-up-a-lattice.rst +0 -123
  73. simba_accelerator-0.1.3/examples/notebooks/.ipynb_checkpoints/params-checkpoint.yaml +0 -954
  74. simba_accelerator-0.1.3/examples/notebooks/beams_example.ipynb +0 -581
  75. simba_accelerator-0.1.3/examples/notebooks/getting_started.ipynb +0 -279
  76. simba_accelerator-0.1.3/examples/notebooks/utility_functions.ipynb +0 -407
  77. simba_accelerator-0.1.3/simba/Codes/Elegant/.ipynb_checkpoints/Elegant-checkpoint.py +0 -1214
  78. simba_accelerator-0.1.3/tests/framework_test.py +0 -448
  79. simba_accelerator-0.1.3/tests/twiss.py +0 -10
  80. simba_accelerator-0.1.3/tests/xopt_test.py +0 -10
  81. simba_accelerator-0.1.3/unit_tests/FODO.yaml +0 -291
  82. simba_accelerator-0.1.3/unit_tests/fodo/astra/BEGIN.hdf5 +0 -0
  83. simba_accelerator-0.1.3/unit_tests/fodo/astra/END.hdf5 +0 -0
  84. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.0040.001 +0 -1000
  85. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Error.001 +0 -1
  86. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Log.001 +0 -5000
  87. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Xemit.001 +0 -40
  88. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Xemit2.001 +0 -40
  89. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Yemit.001 +0 -40
  90. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Yemit2.001 +0 -40
  91. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Zemit.001 +0 -40
  92. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.Zemit2.001 +0 -40
  93. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.in +0 -83
  94. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.lab-E.001 +0 -33
  95. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.log +0 -175
  96. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO.ref.001 +0 -20
  97. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO_E.Log.001 +0 -3627
  98. simba_accelerator-0.1.3/unit_tests/fodo/astra/FODO_input.astra +0 -1000
  99. simba_accelerator-0.1.3/unit_tests/fodo/astra/NORRAN +0 -1
  100. simba_accelerator-0.1.3/unit_tests/fodo/elegant/BEGIN.SDDS +0 -0
  101. simba_accelerator-0.1.3/unit_tests/fodo/elegant/BEGIN.hdf5 +0 -0
  102. simba_accelerator-0.1.3/unit_tests/fodo/elegant/Beam_Summary.hdf5 +0 -0
  103. simba_accelerator-0.1.3/unit_tests/fodo/elegant/END.SDDS +0 -0
  104. simba_accelerator-0.1.3/unit_tests/fodo/elegant/END.hdf5 +0 -0
  105. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.cen +0 -0
  106. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.ele +0 -54
  107. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.flr +0 -0
  108. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.log +0 -261
  109. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.loss +0 -0
  110. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.lte +0 -10
  111. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.mat +0 -181
  112. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.sdds +0 -0
  113. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.sig +0 -0
  114. simba_accelerator-0.1.3/unit_tests/fodo/elegant/FODO.twi +0 -112
  115. simba_accelerator-0.1.3/unit_tests/fodo/elegant/Twiss_Summary.hdf5 +0 -0
  116. simba_accelerator-0.1.3/unit_tests/fodo/elegant/settings.def +0 -6
  117. simba_accelerator-0.1.3/unit_tests/fodo/gpt/BEGIN.hdf5 +0 -0
  118. simba_accelerator-0.1.3/unit_tests/fodo/gpt/FODO.gdf +0 -0
  119. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/BEGIN.hdf5 +0 -0
  120. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/BEGIN.ocelot.npz +0 -0
  121. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/END.hdf5 +0 -0
  122. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/END.ocelot.npz +0 -0
  123. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/END.openpmd.hdf5 +0 -0
  124. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/END.test.hdf5 +0 -0
  125. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/FODO.py +0 -16
  126. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/FODO_mbi.dat.npy +0 -0
  127. simba_accelerator-0.1.3/unit_tests/fodo/ocelot/FODO_twiss.npz +0 -0
  128. simba_accelerator-0.1.3/unit_tests/test_changes.yaml +0 -6
  129. simba_accelerator-0.1.3/unit_tests/test_framework.py +0 -129
  130. simba_accelerator-0.1.3/unit_tests/test_framework_objects.py +0 -101
  131. simba_accelerator-0.1.3/unit_tests/test_track.py +0 -281
  132. simba_accelerator-0.1.3/unit_tests/test_twiss.py +0 -31
  133. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/.github/workflows/python-publish.yml +0 -0
  134. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/.gitignore +0 -0
  135. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/Makefile +0 -0
  136. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/.venv/pyvenv.cfg +0 -0
  137. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/2.0 +0 -0
  138. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/=3.8 +0 -0
  139. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/Makefile +0 -0
  140. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/make.bat +0 -0
  141. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/rebuild.sh +0 -0
  142. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/requirements.txt +0 -0
  143. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/Framework_objects.rst +0 -0
  144. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/assets/elegant-fodo.png +0 -0
  145. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/assets/ocelot-fodo.png +0 -0
  146. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/conf.py +0 -0
  147. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/examples/notebooks/CLA-S02-DIA-SCR-03.openpmd.hdf5 +0 -0
  148. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/modules.rst +0 -0
  149. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/references.bib +0 -0
  150. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.ASTRA.rst +0 -0
  151. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.CSRTrack.rst +0 -0
  152. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.Cheetah.rst +0 -0
  153. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.Elegant.rst +0 -0
  154. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.GPT.rst +0 -0
  155. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.Generators.rst +0 -0
  156. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.MAD8.rst +0 -0
  157. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.OPAL.rst +0 -0
  158. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.Ocelot.rst +0 -0
  159. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.Xsuite.rst +0 -0
  160. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Codes.rst +0 -0
  161. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.Beams.Particles.rst +0 -0
  162. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.Beams.rst +0 -0
  163. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.Fields.rst +0 -0
  164. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.Matrices.rst +0 -0
  165. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.Twiss.rst +0 -0
  166. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.optimisation.rst +0 -0
  167. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.plotting.rst +0 -0
  168. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.Modules.rst +0 -0
  169. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/docs/source/simba.rst +0 -0
  170. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/examples/notebooks/params.yaml +0 -0
  171. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/make.bat +0 -0
  172. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/readthedocs.yml +0 -0
  173. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/setup.cfg +0 -0
  174. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/setup.py +0 -0
  175. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/.gitignore +0 -0
  176. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/ASTRA/ASTRARules.py +0 -0
  177. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/ASTRA/__init__.py +0 -0
  178. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/CSRTrack/__init__.py +0 -0
  179. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/CSRTrack/csrtrack_defaults.yaml +0 -0
  180. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Cheetah/__init__.py +0 -0
  181. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Cheetah/cheetah_defaults.yaml +0 -0
  182. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Elegant/__init__.py +0 -0
  183. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Elegant/elements_Elegant.yaml +0 -0
  184. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Elegant/keyword_conversion_rules_elegant.yaml +0 -0
  185. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Executables.py +0 -0
  186. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/GPT/__init__.py +0 -0
  187. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/__init__.py +0 -0
  188. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/elegant.yaml +0 -0
  189. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/gpt.py +0 -0
  190. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/gpt.yaml +0 -0
  191. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/keywords.yaml +0 -0
  192. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/opal.py +0 -0
  193. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/opal.yaml +0 -0
  194. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Generators/species.yaml +0 -0
  195. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Genesis/__init__.py +0 -0
  196. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Genesis/commands_Genesis.yaml +0 -0
  197. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/OPAL/__init__.py +0 -0
  198. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/OPAL/commands_Opal.yaml +0 -0
  199. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/OPAL/globals_Opal.yaml +0 -0
  200. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Ocelot/__init__.py +0 -0
  201. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Ocelot/mbi.py +0 -0
  202. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Ocelot/ocelot_defaults.yaml +0 -0
  203. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Ocelot/savebeamopenpmd.py +0 -0
  204. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Wake_T/Wake_T.py +0 -0
  205. {simba_accelerator-0.1.3/simba/Codes/Xsuite → simba_accelerator-0.3.0/simba/Codes/Wake_T}/__init__.py +0 -0
  206. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/Xsuite/Xsuite.py +0 -0
  207. {simba_accelerator-0.1.3/simba/Modules/plotting → simba_accelerator-0.3.0/simba/Codes/Xsuite}/__init__.py +0 -0
  208. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/__init__.py +0 -0
  209. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Codes/type_conversion_rules.yaml +0 -0
  210. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Framework_Settings.py +0 -0
  211. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Framework_elements.py +0 -0
  212. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Framework_lattices.py +0 -0
  213. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/.gitignore +0 -0
  214. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/__init__.py +0 -0
  215. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/centroids.py +0 -0
  216. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/emittance.py +0 -0
  217. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/kde.py +0 -0
  218. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/minimumVolumeEllipse.py +0 -0
  219. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/mve.py +0 -0
  220. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/sigmas.py +0 -0
  221. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/slice.py +0 -0
  222. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/Particles/twiss.py +0 -0
  223. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/astra.py +0 -0
  224. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/cheetah.py +0 -0
  225. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/genesis.py +0 -0
  226. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/hdf5.py +0 -0
  227. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/mad8.py +0 -0
  228. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/ocelot.py +0 -0
  229. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/opal.py +0 -0
  230. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/vsim.py +0 -0
  231. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/wake_t.py +0 -0
  232. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Beams/xsuite.py +0 -0
  233. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Fields/FieldParameter.py +0 -0
  234. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Fields/__init__.py +0 -0
  235. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Fields/astra.py +0 -0
  236. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Fields/gdf.py +0 -0
  237. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Fields/hdf5.py +0 -0
  238. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Fields/opal.py +0 -0
  239. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Fields/sdds.py +0 -0
  240. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/MathParser.py +0 -0
  241. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Matrices/__init__.py +0 -0
  242. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Matrices/elegant.py +0 -0
  243. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Matrices/hdf5.py +0 -0
  244. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/cheetah.py +0 -0
  245. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/gpt.py +0 -0
  246. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/hdf5.py +0 -0
  247. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/plot.py +0 -0
  248. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/Twiss/xsuite.py +0 -0
  249. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/__init__.py +0 -0
  250. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/constants.py +0 -0
  251. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/gdf_beam.py +0 -0
  252. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/gdf_emit.py +0 -0
  253. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/id_number.py +0 -0
  254. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/id_number_server.py +0 -0
  255. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/merge_two_dicts.py +0 -0
  256. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/optimisation/__init__.py +0 -0
  257. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/optimisation/constraints.py +0 -0
  258. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/optimisation/nelder_mead.py +0 -0
  259. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/optimisation/optimiser.py +0 -0
  260. {simba_accelerator-0.1.3/simba → simba_accelerator-0.3.0/simba/Modules/plotting}/__init__.py +0 -0
  261. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/plotting/latticeDraw.py +0 -0
  262. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/plotting/multiAxisPlot.py +0 -0
  263. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/plotting/multiPlot.py +0 -0
  264. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/pmd_units.py +0 -0
  265. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/symmlinks.py +0 -0
  266. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Modules/units.py +0 -0
  267. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/Vision_Mission.docx +0 -0
  268. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/elementkeywords.yaml +0 -0
  269. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/hosts.yaml +0 -0
  270. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba/yaml_checker.py +0 -0
  271. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba_accelerator.egg-info/dependency_links.txt +0 -0
  272. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/simba_accelerator.egg-info/top_level.txt +0 -0
  273. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/tests/CLARA/Settings/250pC/1/constants.py +0 -0
  274. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/tests/CLARA/src/FEBE_Simple_NM.py +0 -0
  275. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/tests/CLARA/test.py +0 -0
  276. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/tests/ISIS/LEBT/testing_SimFrame_LEBT.py +0 -0
  277. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/tests/ISIS/MEBT/testing_SimFrame_MEBT.py +0 -0
  278. {simba_accelerator-0.1.3 → simba_accelerator-0.3.0}/tests/xopt_example/example.yaml +0 -0
Binary file
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,5 +1,3 @@
1
- include versioneer.py
2
- include simba/_version.py
3
1
  include simba/Executables.yaml
4
2
  prune simba/Support_Files
5
3
  recursive-include simba *.yaml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simba-accelerator
3
- Version: 0.1.3
3
+ Version: 0.3.0
4
4
  Summary: A python framework for particle accelerator simulations
5
5
  Author-email: James Jones <james.jones@stfc.ac.uk>
6
6
  Maintainer-email: James Jones <james.jones@stfc.ac.uk>, Alex Brynes <alexander.brynes@stfc.ac.uk>, Mark Johnson <mark.johnson@stfc.ac.uk>
@@ -11,7 +11,8 @@ Project-URL: Issues, https://github.com/astec-stfc/simba/-/issues/
11
11
  Classifier: Programming Language :: Python :: 3.10
12
12
  Requires-Python: >=3.10
13
13
  Description-Content-Type: text/markdown
14
- Requires-Dist: deepdiff>=5
14
+ License-File: LICENSE
15
+ Requires-Dist: deepdiff>=8.6
15
16
  Requires-Dist: h5py>=2.10
16
17
  Requires-Dist: munch>=2.5
17
18
  Requires-Dist: numpy>=2
@@ -38,21 +39,20 @@ Requires-Dist: cheetah-accelerator>=0.7.5
38
39
  Requires-Dist: openpmd-beamphysics>=0.10
39
40
  Requires-Dist: xopt
40
41
  Requires-Dist: Wake-T>=0.8.0
41
- Requires-Dist: nala-accelerator
42
+ Requires-Dist: laura-accelerator
42
43
  Provides-Extra: test
43
44
  Requires-Dist: pytest; extra == "test"
44
45
  Requires-Dist: pytest-cov; extra == "test"
45
- Requires-Dist: MasterLattice; extra == "test"
46
46
  Provides-Extra: docs
47
47
  Requires-Dist: sphinx>=8; extra == "docs"
48
48
  Requires-Dist: sphinx-rtd-theme; extra == "docs"
49
49
  Requires-Dist: myst-nb; extra == "docs"
50
50
  Requires-Dist: sphinx_autodoc_typehints>=3; extra == "docs"
51
- Requires-Dist: MasterLattice; extra == "docs"
52
51
  Requires-Dist: sphinxcontrib-bibtex; extra == "docs"
52
+ Dynamic: license-file
53
53
  Dynamic: requires-python
54
54
 
55
- # SIMBA: Simulation Interface for Machine and Beam Applications or
55
+ # SIMBA: Simulations for Integrated Modeling of Beams in Accelerators
56
56
  *Improving accelerators through consistent, complete, and easy to use simulations.*
57
57
 
58
58
  ## Mission
@@ -61,7 +61,7 @@ Dynamic: requires-python
61
61
  Our mission statement is *"To create a start to end framework for consistent, transparent simulations of particle
62
62
  accelerators and FELs that anybody can use, and that everybody trusts."*
63
63
 
64
- By leveraging a [standard accelerator lattice format](https://github.com/astec-stfc/nala.git), `SIMBA`
64
+ By leveraging a [standard accelerator lattice format](https://github.com/astec-stfc/laura.git), `SIMBA`
65
65
  is able to generate and run input files for a range of accelerator simulation codes, enabling seamless transfer
66
66
  of input and output distributions.
67
67
 
@@ -98,12 +98,21 @@ The package and its dependencies can be installed using the following command in
98
98
  ```bash
99
99
  pip install .
100
100
  ```
101
+
102
+ Install from PyPI
103
+ -----------------
104
+
105
+ Alternatively, `SIMBA` can be installed directly from PyPI using:
106
+
107
+ ```bash
108
+ pip install simba-accelerator
109
+ ```
101
110
 
102
111
  Optional Dependencies
103
112
  ---------------------
104
113
 
105
114
  In order to access the accelerator code executables, they must also inform ``SIMBA`` of their
106
- locations. See the entry on [SimCodes](https://simba.readthedocs.io/en/latest/SimCodes.html).
115
+ locations. See the entry on [SimCodes](https://simba-accelerator.readthedocs.io/en/latest/SimCodes.html).
107
116
 
108
117
  Participation
109
118
  -------------
@@ -121,9 +130,9 @@ We are also happy to help with installation and setting up your accelerator latt
121
130
  Getting started with SIMBA
122
131
  -----------------------------
123
132
 
124
- Accelerator lattices in :mod:`SIMBA` are derived from the `NALA <https://github.com/astec-stfc/nala/>`_
133
+ Accelerator lattices in `SIMBA` are derived from the [LAURA](https://github.com/astec-stfc/laura/)
125
134
  standard lattice format. This is a schema for providing generic descriptions of accelerator elements and
126
- layouts **TODO add hyperlinks to NALA doc page once it exists**.
135
+ layouts; see [LAURA documentation](https://laura-accelerator.readthedocs.io/en/latest/).
127
136
 
128
137
  Given that this format is designed to capture all relevant information about accelerator elements,
129
138
  and that it includes a built-in translator module for exporting lattice files to various simulation codes,
@@ -168,20 +177,21 @@ groups:
168
177
  bunch_compressor:
169
178
  type: chicane
170
179
  elements: [CLA-VBC-MAG-DIP-01, CLA-VBC-MAG-DIP-02, CLA-VBC-MAG-DIP-03, CLA-VBC-MAG-DIP-04]
171
- layout: /path/to/nala-lattices/CLARA/layouts.yaml
172
- section: /path/to/nala-lattices/CLARA/sections.yaml
173
- element_list: /path/to/nala-lattices/CLARA/YAML/
180
+ layout: /path/to/laura-lattices/CLARA/layouts.yaml
181
+ section: /path/to/laura-lattices/CLARA/sections.yaml
182
+ element_list: /path/to/laura-lattices/CLARA/YAML/
174
183
 
175
184
  ```
176
185
 
177
186
  This lattice definition would produce several output files (called ``injector400.in``, ``Linac.lte``,
178
187
  and ``FEBE.py``) for running in the **ASTRA**, **Elegant** and **Ocelot** beam tracking codes.
179
188
 
180
- The elements are loaded from the directory ``/path/to/nala-lattices/CLARA/YAML/`` defined above.
189
+ The elements are loaded from the directory ``/path/to/laura-lattices/CLARA/YAML/`` defined above.
181
190
 
182
191
  As this simulation starts from the cathode, the ``input`` definition is required for the first
183
192
  `injector400` ``file`` block. An alternative method for starting is to specify ``input/particle_definition`` to
184
- point to an existing beam file **#TODO add reference to beams page**.
193
+ point to an existing
194
+ [beam file](https://simba-accelerator.readthedocs.io/en/latest/examples/notebooks/beams_example.html).
185
195
 
186
196
  For `follow-on` lattice runs, it is sufficient to define the ``output: start_element``, which should match the
187
197
  ``output: end_element`` definition from the previous ``file`` block.
@@ -199,9 +209,9 @@ import simba.Framework as fw
199
209
  # "verbose" will print a progressbar if true
200
210
  simcodes_location = "/path/to/simcodes/directory"
201
211
  framework = fw.Framework(
202
- master_lattice="/path/to/nala-lattices/CLARA",
212
+ master_lattice="/path/to/laura-lattices/CLARA",
203
213
  directory="./example",
204
- generator_defaults="/path/to/nala-lattices/CLARA/Generators/clara.yaml",
214
+ generator_defaults="/path/to/laura-lattices/CLARA/Generators/clara.yaml",
205
215
  simcodes_location=simcodes_location,
206
216
  clean=True,
207
217
  verbose=True,
@@ -1,4 +1,4 @@
1
- # SIMBA: Simulation Interface for Machine and Beam Applications or
1
+ # SIMBA: Simulations for Integrated Modeling of Beams in Accelerators
2
2
  *Improving accelerators through consistent, complete, and easy to use simulations.*
3
3
 
4
4
  ## Mission
@@ -7,7 +7,7 @@
7
7
  Our mission statement is *"To create a start to end framework for consistent, transparent simulations of particle
8
8
  accelerators and FELs that anybody can use, and that everybody trusts."*
9
9
 
10
- By leveraging a [standard accelerator lattice format](https://github.com/astec-stfc/nala.git), `SIMBA`
10
+ By leveraging a [standard accelerator lattice format](https://github.com/astec-stfc/laura.git), `SIMBA`
11
11
  is able to generate and run input files for a range of accelerator simulation codes, enabling seamless transfer
12
12
  of input and output distributions.
13
13
 
@@ -44,12 +44,21 @@ The package and its dependencies can be installed using the following command in
44
44
  ```bash
45
45
  pip install .
46
46
  ```
47
+
48
+ Install from PyPI
49
+ -----------------
50
+
51
+ Alternatively, `SIMBA` can be installed directly from PyPI using:
52
+
53
+ ```bash
54
+ pip install simba-accelerator
55
+ ```
47
56
 
48
57
  Optional Dependencies
49
58
  ---------------------
50
59
 
51
60
  In order to access the accelerator code executables, they must also inform ``SIMBA`` of their
52
- locations. See the entry on [SimCodes](https://simba.readthedocs.io/en/latest/SimCodes.html).
61
+ locations. See the entry on [SimCodes](https://simba-accelerator.readthedocs.io/en/latest/SimCodes.html).
53
62
 
54
63
  Participation
55
64
  -------------
@@ -67,9 +76,9 @@ We are also happy to help with installation and setting up your accelerator latt
67
76
  Getting started with SIMBA
68
77
  -----------------------------
69
78
 
70
- Accelerator lattices in :mod:`SIMBA` are derived from the `NALA <https://github.com/astec-stfc/nala/>`_
79
+ Accelerator lattices in `SIMBA` are derived from the [LAURA](https://github.com/astec-stfc/laura/)
71
80
  standard lattice format. This is a schema for providing generic descriptions of accelerator elements and
72
- layouts **TODO add hyperlinks to NALA doc page once it exists**.
81
+ layouts; see [LAURA documentation](https://laura-accelerator.readthedocs.io/en/latest/).
73
82
 
74
83
  Given that this format is designed to capture all relevant information about accelerator elements,
75
84
  and that it includes a built-in translator module for exporting lattice files to various simulation codes,
@@ -114,20 +123,21 @@ groups:
114
123
  bunch_compressor:
115
124
  type: chicane
116
125
  elements: [CLA-VBC-MAG-DIP-01, CLA-VBC-MAG-DIP-02, CLA-VBC-MAG-DIP-03, CLA-VBC-MAG-DIP-04]
117
- layout: /path/to/nala-lattices/CLARA/layouts.yaml
118
- section: /path/to/nala-lattices/CLARA/sections.yaml
119
- element_list: /path/to/nala-lattices/CLARA/YAML/
126
+ layout: /path/to/laura-lattices/CLARA/layouts.yaml
127
+ section: /path/to/laura-lattices/CLARA/sections.yaml
128
+ element_list: /path/to/laura-lattices/CLARA/YAML/
120
129
 
121
130
  ```
122
131
 
123
132
  This lattice definition would produce several output files (called ``injector400.in``, ``Linac.lte``,
124
133
  and ``FEBE.py``) for running in the **ASTRA**, **Elegant** and **Ocelot** beam tracking codes.
125
134
 
126
- The elements are loaded from the directory ``/path/to/nala-lattices/CLARA/YAML/`` defined above.
135
+ The elements are loaded from the directory ``/path/to/laura-lattices/CLARA/YAML/`` defined above.
127
136
 
128
137
  As this simulation starts from the cathode, the ``input`` definition is required for the first
129
138
  `injector400` ``file`` block. An alternative method for starting is to specify ``input/particle_definition`` to
130
- point to an existing beam file **#TODO add reference to beams page**.
139
+ point to an existing
140
+ [beam file](https://simba-accelerator.readthedocs.io/en/latest/examples/notebooks/beams_example.html).
131
141
 
132
142
  For `follow-on` lattice runs, it is sufficient to define the ``output: start_element``, which should match the
133
143
  ``output: end_element`` definition from the previous ``file`` block.
@@ -145,9 +155,9 @@ import simba.Framework as fw
145
155
  # "verbose" will print a progressbar if true
146
156
  simcodes_location = "/path/to/simcodes/directory"
147
157
  framework = fw.Framework(
148
- master_lattice="/path/to/nala-lattices/CLARA",
158
+ master_lattice="/path/to/laura-lattices/CLARA",
149
159
  directory="./example",
150
- generator_defaults="/path/to/nala-lattices/CLARA/Generators/clara.yaml",
160
+ generator_defaults="/path/to/laura-lattices/CLARA/Generators/clara.yaml",
151
161
  simcodes_location=simcodes_location,
152
162
  clean=True,
153
163
  verbose=True,
@@ -0,0 +1,10 @@
1
+ Framework
2
+ ---------
3
+
4
+ .. automodule:: simba.Framework
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
8
+
9
+ .. toctree::
10
+ :maxdepth: 2
@@ -30,7 +30,7 @@ Creating a SimCodes Directory
30
30
  -----------------------------
31
31
 
32
32
  One can create a top-level directory containing sub-folders for each tracking code, and instantiate :mod:`SIMBA`
33
- with a ``simcodes_location`` argument:
33
+ with a ``simcodes`` argument:
34
34
 
35
35
  .. code-block:: python
36
36
 
@@ -40,7 +40,7 @@ with a ``simcodes_location`` argument:
40
40
 
41
41
  fw = Framework(
42
42
  directory=directory,
43
- simcodes_location=simcodes_location,
43
+ simcodes=simcodes_location,
44
44
  )
45
45
 
46
46
  Alternatively, one can set up :mod:`SIMBA` without this argument and set up the ``SimCodes`` location afterwards:
@@ -44,8 +44,6 @@
44
44
  "metadata": {},
45
45
  "outputs": [],
46
46
  "source": [
47
- "import sys\n",
48
- "sys.path.append('/home/xkc85723/Documents/simba')\n",
49
47
  "import simba.Modules.Beams as rbf # noqa E402\n",
50
48
  "from simba.Modules.Beams.plot import (\n",
51
49
  " plotScreenImage,\n",
@@ -13,9 +13,9 @@
13
13
  "id": "1fd06310-63aa-4f50-b67f-d63893108de5",
14
14
  "metadata": {},
15
15
  "source": [
16
- "This notebook will show how to set up `SIMBA`, load in a `NALA` object and settings for tracking, and show how to plot the results.\n",
16
+ "This notebook will show how to set up `SIMBA`, load in a `LAURA` object and settings for tracking, and show how to plot the results.\n",
17
17
  "\n",
18
- "It is assumed that a `NALA` lattice directory and a `SimCodes` directory have been prepared and set with environment variables (see the docs [here](https://simba-accelerator.readthedocs.io/en/latest/SimCodes.html)). "
18
+ "It is assumed that a `LAURA` lattice directory and a `SimCodes` directory have been prepared and set with environment variables (see the docs [here](https://simba-accelerator.readthedocs.io/en/latest/SimCodes.html)). "
19
19
  ]
20
20
  },
21
21
  {
@@ -99,7 +99,7 @@
99
99
  "name": "stdout",
100
100
  "output_type": "stream",
101
101
  "text": [
102
- "{'beam': {'filename': None, 'code': None}, 'GPTLICENSE': '', 'delete_tracking_files': False, 'astra_use_wsl': 1, 'master_subdir': '/home/xkc85723/Documents/simba/docs/source/examples/notebooks/getting_started', 'master_lattice_location': '/home/xkc85723/Documents/nala-lattices/CLARA/./', 'simcodes_location': '/home/xkc85723/Documents/venv/lib/python3.12/site-packages/SimCodes/'}\n"
102
+ "{'beam': {'filename': None, 'code': None}, 'GPTLICENSE': '', 'delete_tracking_files': False, 'astra_use_wsl': 1, 'master_subdir': '/home/xkc85723/Documents/simba/docs/source/examples/notebooks/getting_started', 'master_lattice': '/home/xkc85723/Documents/laura-lattices/CLARA/./', 'simcodes_location': '/home/xkc85723/Documents/venv/lib/python3.12/site-packages/SimCodes/'}\n"
103
103
  ]
104
104
  }
105
105
  ],
@@ -127,7 +127,7 @@
127
127
  "name": "stdout",
128
128
  "output_type": "stream",
129
129
  "text": [
130
- "FrameworkSettings({'settingsFilename': '/home/xkc85723/Documents/nala-lattices/CLARA/./Lattices/clara400_v13_combined.def', 'global': {}, 'generator': {'code': 'astra', 'default': 'clara_400_3ps'}, 'section': '/home/xkc85723/Documents/nala-lattices/CLARA/sections.yaml', 'element_list': '/home/xkc85723/Documents/nala-lattices/CLARA/YAML/', 'groups': {'bunch_compressor': {'type': 'chicane', 'elements': ['CLA-VBC-MAG-DIP-01', 'CLA-VBC-MAG-DIP-02', 'CLA-VBC-MAG-DIP-03', 'CLA-VBC-MAG-DIP-04']}}, 'elements': {}, 'files': {'injector400': {'code': 'astra', 'charge': {'cathode': True, 'space_charge_mode': '2D', 'mirror_charge': True}, 'input': {'particle_definition': 'initial_distribution'}, 'output': {'zstart': 0, 'end_element': 'CLA-S02-SIM-APER-01'}}, 'Linac': {'code': 'elegant', 'output': {'start_element': 'CLA-S02-SIM-APER-01', 'end_element': 'CLA-FEA-SIM-START-01'}}, 'FEBE': {'code': 'elegant', 'charge': {'cathode': False, 'space_charge_mode': '3D'}, 'input': {}, 'output': {'start_element': 'CLA-FEA-SIM-START-01', 'end_element': 'CLA-FED-SIM-DUMP-01-START'}}}, 'layout': '/home/xkc85723/Documents/nala-lattices/CLARA/layouts.yaml'})\n"
130
+ "FrameworkSettings({'settingsFilename': '/home/xkc85723/Documents/laura-lattices/CLARA/./Lattices/clara400_v13_combined.def', 'global': {}, 'generator': {'code': 'astra', 'default': 'clara_400_3ps'}, 'section': '/home/xkc85723/Documents/laura-lattices/CLARA/sections.yaml', 'element_list': '/home/xkc85723/Documents/laura-lattices/CLARA/YAML/', 'groups': {'bunch_compressor': {'type': 'chicane', 'elements': ['CLA-VBC-MAG-DIP-01', 'CLA-VBC-MAG-DIP-02', 'CLA-VBC-MAG-DIP-03', 'CLA-VBC-MAG-DIP-04']}}, 'elements': {}, 'files': {'injector400': {'code': 'astra', 'charge': {'cathode': True, 'space_charge_mode': '2D', 'mirror_charge': True}, 'input': {'particle_definition': 'initial_distribution'}, 'output': {'zstart': 0, 'end_element': 'CLA-S02-SIM-APER-01'}}, 'Linac': {'code': 'elegant', 'output': {'start_element': 'CLA-S02-SIM-APER-01', 'end_element': 'CLA-FEA-SIM-START-01'}}, 'FEBE': {'code': 'elegant', 'charge': {'cathode': False, 'space_charge_mode': '3D'}, 'input': {}, 'output': {'start_element': 'CLA-FEA-SIM-START-01', 'end_element': 'CLA-FED-SIM-DUMP-01-START'}}}, 'layout': '/home/xkc85723/Documents/laura-lattices/CLARA/layouts.yaml'})\n"
131
131
  ]
132
132
  }
133
133
  ],
@@ -8,9 +8,9 @@ Getting started with SIMBA
8
8
  Lattice Definition
9
9
  ------------------
10
10
 
11
- Accelerator lattices in :mod:`SIMBA` are derived from the `NALA <https://github.com/astec-stfc/nala/>`_
11
+ Accelerator lattices in :mod:`SIMBA` are derived from the `LAURA <https://github.com/astec-stfc/laura/>`_
12
12
  standard lattice format. This is a schema for providing generic descriptions of accelerator elements and
13
- layouts; see the `NALA documentation <https://nala-accelerator.readthedocs.io/en/latest/#>`_ for more details.
13
+ layouts; see the `LAURA documentation <https://laura-accelerator.readthedocs.io/en/latest/#>`_ for more details.
14
14
 
15
15
  Given that this format is designed to capture all relevant information about accelerator elements,
16
16
  and that it includes a built-in translator module for exporting lattice files to various simulation codes,
@@ -21,10 +21,10 @@ We would be remiss not to begin with a simple FODO:
21
21
 
22
22
  .. code-block:: python
23
23
 
24
- from nala.models.element import Quadrupole, Marker # noqa E402
25
- from nala.models.elementList import MachineModel # noqa E402
26
- from nala.Exporters.YAML import export_machine
27
- from nala import NALA # noqa E402
24
+ from laura.models.element import Quadrupole, Marker # noqa E402
25
+ from laura.models.elementList import MachineModel # noqa E402
26
+ from laura.Exporters.YAML import export_machine
27
+ from laura import LAURA # noqa E402
28
28
 
29
29
  outdir = "/path/to/lattice/directory"
30
30
 
@@ -102,7 +102,7 @@ We would be remiss not to begin with a simple FODO:
102
102
  }
103
103
  }
104
104
 
105
- machine = NALA(element_list=[m1, q1f, q1d, m3], layout=layouts, section=sections)
105
+ machine = LAURA(element_list=[m1, q1f, q1d, m3], layout=layouts, section=sections)
106
106
  export_machine(path=f"{outdir}/Lattice", machine=machine, overwrite=True)
107
107
 
108
108
  Generating an input beam
@@ -113,7 +113,7 @@ The simulation requires a macroparticle distribution to run. This can be generat
113
113
 
114
114
  .. code-block:: python
115
115
 
116
- from simba.Codes.Generators import frameworkGenerator
116
+ from simba.Codes.Generators imoutdirport frameworkGenerator
117
117
  import simba.Modules.Beams as rbf
118
118
 
119
119
  gen = frameworkGenerator(
@@ -147,7 +147,7 @@ This involves passing a group of settings to :mod:`SIMBA`, including:
147
147
  * The simulation code used to run each section;
148
148
  * Additional settings, such as the enabling of collective effects, or transverse matching parameters for the initial beam;
149
149
  * Settings for beam generation;
150
- * Locations for :mod:`NALA` files.
150
+ * Locations for :mod:`LAURA` files.
151
151
 
152
152
  These are all read in when :mod:`SIMBA` is instantiated. The example below shows how to create these settings in :mod:`python`;
153
153
  alternatively, one can create a settings file in YAML and pass that in; see :ref:`Loading a lattice <loading-a-lattice>`:
@@ -61,6 +61,7 @@ We are also happy to help with installation and setting up your accelerator latt
61
61
  :maxdepth: 2
62
62
  :caption: API
63
63
 
64
+ Framework
64
65
  Framework_objects
65
66
  Framework_elements
66
67
  simba.Codes
@@ -41,7 +41,11 @@ To check that the install was completed successfully, run this command from the
41
41
  Install from pypi / conda-forge
42
42
  -------------------------------
43
43
 
44
- WIP.....
44
+ :mod:`SIMBA` is available from pypi:
45
+
46
+ .. code-block:: bash
47
+
48
+ pip install simba-accelerator
45
49
 
46
50
  Required Dependencies
47
51
  ---------------------
@@ -4,16 +4,16 @@ Loading in a Lattice File
4
4
  =========================
5
5
 
6
6
  :ref:`Getting started <getting-started>` demonstrated how to create a
7
- `NALA <https://github.com/astec-stfc/nala/>`_ lattice in :mod:`python`.
7
+ `LAURA <https://github.com/astec-stfc/laura/>`_ lattice in :mod:`python`.
8
8
  This page will describe how to generate a :mod:`SIMBA` instance based on pre-existing
9
- `NALA <https://github.com/astec-stfc/nala/>`_ element and lattice definitions.
9
+ `LAURA <https://github.com/astec-stfc/laura/>`_ element and lattice definitions.
10
10
 
11
11
  .. _setup-from-file:
12
12
 
13
13
  Setting up a Simulation From Files
14
14
  ----------------------------------
15
15
 
16
- Given a :mod:`NALA` ``MachineModel``, which contains:
16
+ Given a :mod:`LAURA` ``MachineModel``, which contains:
17
17
 
18
18
  * All of the elements in an accelerator lattice;
19
19
  * The various sections that compose that lattice;
@@ -58,18 +58,18 @@ for the CLARA :cite:`PhysRevAccelBeams.23.044801` :cite:`PhysRevAccelBeams.27.04
58
58
  bunch_compressor:
59
59
  type: chicane
60
60
  elements: [CLA-VBC-MAG-DIP-01, CLA-VBC-MAG-DIP-02, CLA-VBC-MAG-DIP-03, CLA-VBC-MAG-DIP-04]
61
- layout: /path/to/nala-lattices/CLARA/layouts.yaml
62
- section: /path/to/nala-lattices/CLARA/sections.yaml
63
- element_list: /path/to/nala-lattices/CLARA/YAML/
61
+ layout: /path/to/laura-lattices/CLARA/layouts.yaml
62
+ section: /path/to/laura-lattices/CLARA/sections.yaml
63
+ element_list: /path/to/laura-lattices/CLARA/YAML/
64
64
 
65
65
  This lattice definition would produce several output files (called ``injector400.in``, ``Linac.lte``,
66
66
  and ``FEBE.py``) for running in the **ASTRA**, **Elegant** and **Ocelot** beam tracking codes.
67
67
 
68
- The elements are loaded from the directory ``/path/to/nala-lattices/CLARA/YAML/`` defined above.
68
+ The elements are loaded from the directory ``/path/to/laura-lattices/CLARA/YAML/`` defined above.
69
69
 
70
70
  As this simulation starts from the cathode, the ``input`` definition is required for the first
71
71
  `injector400` ``file`` block. An alternative method for starting is to specify ``input/particle_definition`` to
72
- point to an existing beam file **#TODO add reference to beams page**.
72
+ point to an existing beam file.
73
73
 
74
74
  For `follow-on` lattice runs, it is sufficient to define the ``output: start_element``, which should match the ``output: end_element`` definition
75
75
  from the previous ``file`` block.
@@ -78,7 +78,7 @@ from the previous ``file`` block.
78
78
  Running SIMBA
79
79
  -------------
80
80
 
81
- The following example assumes that `NALA <https://github.com/astec-stfc/nala/>`_ has already been installed
81
+ The following example assumes that `LAURA <https://github.com/astec-stfc/laura/>`_ has already been installed
82
82
  (see :ref:`Installation <installation>`) and that the :ref:`SimCodes <simcodes>` directory has
83
83
  been prepared.
84
84
 
@@ -92,7 +92,7 @@ been prepared.
92
92
  # "verbose" will print a progressbar if true
93
93
  simcodes_location = "/path/to/simcodes/directory"
94
94
  framework = fw.Framework(
95
- master_lattice="/path/to/nala-lattices/CLARA",
95
+ master_lattice="/path/to/laura-lattices/CLARA",
96
96
  directory="./example",
97
97
  generator_defaults="clara.yaml",
98
98
  simcodes_location=simcodes_location,
@@ -0,0 +1,7 @@
1
+ simba.Framework_objects module
2
+ ==============================
3
+
4
+ .. automodule:: simba.Framework_objects
5
+ :members:
6
+ :show-inheritance:
7
+ :undoc-members: