atomeye 3.1.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 (451) hide show
  1. atomeye-3.1.0/.gitattributes +13 -0
  2. atomeye-3.1.0/.github/release-notes.md +31 -0
  3. atomeye-3.1.0/.github/release.sh +24 -0
  4. atomeye-3.1.0/.github/workflows/build.yml +289 -0
  5. atomeye-3.1.0/.github/workflows/wasm.yml +183 -0
  6. atomeye-3.1.0/.github/workflows/wheels.yml +254 -0
  7. atomeye-3.1.0/.gitignore +17 -0
  8. atomeye-3.1.0/.gitmodules +3 -0
  9. atomeye-3.1.0/A3/1D66.pdb.bz2 +0 -0
  10. atomeye-3.1.0/A3/1D67.pdb.bz2 +0 -0
  11. atomeye-3.1.0/A3/A.c +1192 -0
  12. atomeye-3.1.0/A3/A.h +317 -0
  13. atomeye-3.1.0/A3/Icon/Makefile +36 -0
  14. atomeye-3.1.0/A3/Icon/Png/32x32.png +0 -0
  15. atomeye-3.1.0/A3/Icon/Png/50x50.png +0 -0
  16. atomeye-3.1.0/A3/Icon/Png/64x64.png +0 -0
  17. atomeye-3.1.0/A3/Icon/Png/85x67.png +0 -0
  18. atomeye-3.1.0/A3/Icon/Xpm/32x32.xpm +293 -0
  19. atomeye-3.1.0/A3/Icon/Xpm/50x50.xpm +312 -0
  20. atomeye-3.1.0/A3/Icon/Xpm/64x64.xpm +326 -0
  21. atomeye-3.1.0/A3/Icon/Xpm/85x67.xpm +329 -0
  22. atomeye-3.1.0/A3/Icon/icon.c +1266 -0
  23. atomeye-3.1.0/A3/LeastSquareStrain.c +78 -0
  24. atomeye-3.1.0/A3/P3D.h +253 -0
  25. atomeye-3.1.0/A3/P3DCore.c +1920 -0
  26. atomeye-3.1.0/A3/P3DExt.h +7 -0
  27. atomeye-3.1.0/A3/P3D_p.h +36 -0
  28. atomeye-3.1.0/A3/atomeyelib.h +59 -0
  29. atomeye-3.1.0/A3/cui.c +6148 -0
  30. atomeye-3.1.0/A3/cui.h +140 -0
  31. atomeye-3.1.0/A3/cui_AX.c +151 -0
  32. atomeye-3.1.0/A3/geo.c +418 -0
  33. atomeye-3.1.0/A3/help.c +395 -0
  34. atomeye-3.1.0/A3/help_font.h +113 -0
  35. atomeye-3.1.0/A3/info.c +579 -0
  36. atomeye-3.1.0/A3/meson.build +19 -0
  37. atomeye-3.1.0/A3/p3dp.c +956 -0
  38. atomeye-3.1.0/A3/p3dp.h +141 -0
  39. atomeye-3.1.0/A3/p3dp_AX.c +717 -0
  40. atomeye-3.1.0/A3/p3dp_info.c +98 -0
  41. atomeye-3.1.0/A3/primitives.c +765 -0
  42. atomeye-3.1.0/A3/rcut_patch.c +157 -0
  43. atomeye-3.1.0/A3/remote.c +409 -0
  44. atomeye-3.1.0/A3/scratch.c +98 -0
  45. atomeye-3.1.0/A3/utils.c +1324 -0
  46. atomeye-3.1.0/A3/viewport.c +162 -0
  47. atomeye-3.1.0/A3/xtal_shift.c +315 -0
  48. atomeye-3.1.0/AX/3D.c +3271 -0
  49. atomeye-3.1.0/AX/AX.c +1275 -0
  50. atomeye-3.1.0/AX/AX.h +2126 -0
  51. atomeye-3.1.0/AX/AXcompat.c +304 -0
  52. atomeye-3.1.0/AX/AXcompat.h +419 -0
  53. atomeye-3.1.0/AX/AXkeysym.h +822 -0
  54. atomeye-3.1.0/AX/AXnone.c +33 -0
  55. atomeye-3.1.0/AX/AXsdl.c +434 -0
  56. atomeye-3.1.0/AX/AXwasm.c +304 -0
  57. atomeye-3.1.0/AX/Scan.c +3543 -0
  58. atomeye-3.1.0/AX/Scan3D.c +2 -0
  59. atomeye-3.1.0/AX/Sorter.c +513 -0
  60. atomeye-3.1.0/AX/jpg2eps.c +196 -0
  61. atomeye-3.1.0/AX/meson.build +16 -0
  62. atomeye-3.1.0/AX/pixel.c +469 -0
  63. atomeye-3.1.0/AX/try.c +78 -0
  64. atomeye-3.1.0/AtomEye.app.template/Contents/Info.plist +69 -0
  65. atomeye-3.1.0/AtomEye.app.template/Contents/MacOS/droplet +0 -0
  66. atomeye-3.1.0/AtomEye.app.template/Contents/PkgInfo +1 -0
  67. atomeye-3.1.0/AtomEye.app.template/Contents/Resources/Scripts/main.scpt +0 -0
  68. atomeye-3.1.0/AtomEye.app.template/Contents/Resources/description.rtfd/TXT.rtf +4 -0
  69. atomeye-3.1.0/AtomEye.app.template/Contents/Resources/droplet.icns +0 -0
  70. atomeye-3.1.0/AtomEye.app.template/Contents/Resources/droplet.rsrc +0 -0
  71. atomeye-3.1.0/Atoms/2p.cfg +74 -0
  72. atomeye-3.1.0/Atoms/A.c +0 -0
  73. atomeye-3.1.0/Atoms/Atoms.c +212 -0
  74. atomeye-3.1.0/Atoms/Atoms.h +1611 -0
  75. atomeye-3.1.0/Atoms/CHECK.c +25 -0
  76. atomeye-3.1.0/Atoms/ChainofStates.c +449 -0
  77. atomeye-3.1.0/Atoms/ChainofStatesDir/FCC01.cfg +109 -0
  78. atomeye-3.1.0/Atoms/ChainofStatesDir/FCC02.cfg +109 -0
  79. atomeye-3.1.0/Atoms/ChainofStatesDir/Travel01.cfg +59 -0
  80. atomeye-3.1.0/Atoms/ChainofStatesDir/Travel02.cfg +59 -0
  81. atomeye-3.1.0/Atoms/ChainofStatesDir/Travel03.cfg +59 -0
  82. atomeye-3.1.0/Atoms/ChainofStatesDir/Travel04.cfg +59 -0
  83. atomeye-3.1.0/Atoms/Config.c +3278 -0
  84. atomeye-3.1.0/Atoms/Dacapo.c +186 -0
  85. atomeye-3.1.0/Atoms/Extxyz.c +303 -0
  86. atomeye-3.1.0/Atoms/Gaussian.c +669 -0
  87. atomeye-3.1.0/Atoms/Gr.c +356 -0
  88. atomeye-3.1.0/Atoms/LeastSquareStrain.c +223 -0
  89. atomeye-3.1.0/Atoms/Mendeleyev.c +990 -0
  90. atomeye-3.1.0/Atoms/Motion.c +250 -0
  91. atomeye-3.1.0/Atoms/NIST.h +351 -0
  92. atomeye-3.1.0/Atoms/Neighborlist.c +823 -0
  93. atomeye-3.1.0/Atoms/Phonon/Debye.c +156 -0
  94. atomeye-3.1.0/Atoms/Phonon/Makefile +246 -0
  95. atomeye-3.1.0/Atoms/Phonon/Phonon.c +663 -0
  96. atomeye-3.1.0/Atoms/Phonon/Phonon.h +123 -0
  97. atomeye-3.1.0/Atoms/Spectral/DSpectral/DSpectral.c +65 -0
  98. atomeye-3.1.0/Atoms/Spectral/DSpectral/DSpectral.h +138 -0
  99. atomeye-3.1.0/Atoms/Spectral/DSpectral/Makefile +244 -0
  100. atomeye-3.1.0/Atoms/Spectral/Makefile +57 -0
  101. atomeye-3.1.0/Atoms/Spectral/SSpectral/Makefile +244 -0
  102. atomeye-3.1.0/Atoms/Spectral/SSpectral/SSpectral.c +65 -0
  103. atomeye-3.1.0/Atoms/Spectral/SSpectral/SSpectral.h +138 -0
  104. atomeye-3.1.0/Atoms/Spectral/Spectral.c +571 -0
  105. atomeye-3.1.0/Atoms/Spectral/readme +9 -0
  106. atomeye-3.1.0/Atoms/VASP.c +580 -0
  107. atomeye-3.1.0/Atoms/Voronoi.c +249 -0
  108. atomeye-3.1.0/Atoms/Xtal/Bcc +20 -0
  109. atomeye-3.1.0/Atoms/Xtal/Bcc.cfg +113 -0
  110. atomeye-3.1.0/Atoms/Xtal/Dia +21 -0
  111. atomeye-3.1.0/Atoms/Xtal/Dia.cfg +79 -0
  112. atomeye-3.1.0/Atoms/Xtal/FCC +20 -0
  113. atomeye-3.1.0/Atoms/Xtal/FCC.cfg +109 -0
  114. atomeye-3.1.0/Atoms/meson.build +17 -0
  115. atomeye-3.1.0/Atoms/scr_anim +42 -0
  116. atomeye-3.1.0/Atoms/soliton.cfg +504 -0
  117. atomeye-3.1.0/Atoms/test.cfg +28223 -0
  118. atomeye-3.1.0/CLAUDE.md +73 -0
  119. atomeye-3.1.0/IO/IO.c +1570 -0
  120. atomeye-3.1.0/IO/IOlib.h +1474 -0
  121. atomeye-3.1.0/IO/IOmem.c +210 -0
  122. atomeye-3.1.0/IO/bitmap.c +165 -0
  123. atomeye-3.1.0/IO/dump.c +284 -0
  124. atomeye-3.1.0/IO/filelist.c +135 -0
  125. atomeye-3.1.0/IO/fjoin.c +237 -0
  126. atomeye-3.1.0/IO/gnuplot.c +164 -0
  127. atomeye-3.1.0/IO/int4_set.c +620 -0
  128. atomeye-3.1.0/IO/int8_set.c +953 -0
  129. atomeye-3.1.0/IO/jterm.c +311 -0
  130. atomeye-3.1.0/IO/lineedit.c +110 -0
  131. atomeye-3.1.0/IO/memusage.c +113 -0
  132. atomeye-3.1.0/IO/meson.build +22 -0
  133. atomeye-3.1.0/IO/print.c +642 -0
  134. atomeye-3.1.0/IO/readline.c +88 -0
  135. atomeye-3.1.0/IO/scratch.c +116 -0
  136. atomeye-3.1.0/IO/win32compat.c +249 -0
  137. atomeye-3.1.0/IO/win32compat.h +73 -0
  138. atomeye-3.1.0/IO/win32select.h +33 -0
  139. atomeye-3.1.0/LICENSE +45 -0
  140. atomeye-3.1.0/PKG-INFO +468 -0
  141. atomeye-3.1.0/Python/.gitignore +3 -0
  142. atomeye-3.1.0/Python/atomeye/__init__.py +1907 -0
  143. atomeye-3.1.0/Python/atomeyemodule.c +482 -0
  144. atomeye-3.1.0/Python/example-notebook.ipynb +62 -0
  145. atomeye-3.1.0/Python/example-notebook_2_0.png +0 -0
  146. atomeye-3.1.0/README.md +439 -0
  147. atomeye-3.1.0/Scalar/IndexSort.h +78 -0
  148. atomeye-3.1.0/Scalar/Scalar.c +310 -0
  149. atomeye-3.1.0/Scalar/Scalar.h +845 -0
  150. atomeye-3.1.0/Scalar/a_h.m +110 -0
  151. atomeye-3.1.0/Scalar/histogram.c +185 -0
  152. atomeye-3.1.0/Scalar/interp.dat +933 -0
  153. atomeye-3.1.0/Scalar/interp.ps +3486 -0
  154. atomeye-3.1.0/Scalar/meson.build +10 -0
  155. atomeye-3.1.0/Scalar/newtonian.c +1824 -0
  156. atomeye-3.1.0/Scalar/quadrature.c +145 -0
  157. atomeye-3.1.0/Scalar/spline.c +116 -0
  158. atomeye-3.1.0/Timer/Gregorian.c +169 -0
  159. atomeye-3.1.0/Timer/Timer.c +255 -0
  160. atomeye-3.1.0/Timer/Timer.h +273 -0
  161. atomeye-3.1.0/Timer/chronometer.c +108 -0
  162. atomeye-3.1.0/Timer/datenum +0 -0
  163. atomeye-3.1.0/Timer/datevec +0 -0
  164. atomeye-3.1.0/Timer/fools.c +166 -0
  165. atomeye-3.1.0/Timer/gmon.out +0 -0
  166. atomeye-3.1.0/Timer/linear_scheduler.c +466 -0
  167. atomeye-3.1.0/Timer/meson.build +11 -0
  168. atomeye-3.1.0/Timer/taskwatch.c +145 -0
  169. atomeye-3.1.0/VecMat/Ialloc.c +61 -0
  170. atomeye-3.1.0/VecMat/LapackDrivers.c +89 -0
  171. atomeye-3.1.0/VecMat/Mmem.c +184 -0
  172. atomeye-3.1.0/VecMat/VecMat.h +547 -0
  173. atomeye-3.1.0/VecMat/Vector.c +450 -0
  174. atomeye-3.1.0/VecMat/Vmem.c +251 -0
  175. atomeye-3.1.0/VecMat/meson.build +13 -0
  176. atomeye-3.1.0/VecMat/neighborlist.c +282 -0
  177. atomeye-3.1.0/VecMat/ordering.c +460 -0
  178. atomeye-3.1.0/VecMat/sorters.c +468 -0
  179. atomeye-3.1.0/VecMat3/M3.c +476 -0
  180. atomeye-3.1.0/VecMat3/M3diag.c +528 -0
  181. atomeye-3.1.0/VecMat3/MM3.c +99 -0
  182. atomeye-3.1.0/VecMat3/MV3.c +122 -0
  183. atomeye-3.1.0/VecMat3/V3.c +402 -0
  184. atomeye-3.1.0/VecMat3/VM3.c +112 -0
  185. atomeye-3.1.0/VecMat3/VV3.c +247 -0
  186. atomeye-3.1.0/VecMat3/VecMat3.h +1488 -0
  187. atomeye-3.1.0/VecMat3/meson.build +14 -0
  188. atomeye-3.1.0/VecMat3/rotation.c +94 -0
  189. atomeye-3.1.0/VecMat3/strain.c +274 -0
  190. atomeye-3.1.0/doc/A3.html +577 -0
  191. atomeye-3.1.0/doc/atomeye.html +1538 -0
  192. atomeye-3.1.0/extxyz/.cirrus.yml +58 -0
  193. atomeye-3.1.0/extxyz/.github/workflows/ase-extxyz.yml +89 -0
  194. atomeye-3.1.0/extxyz/.github/workflows/build-wheels.yml +171 -0
  195. atomeye-3.1.0/extxyz/.github/workflows/python-package.yml +102 -0
  196. atomeye-3.1.0/extxyz/.gitignore +18 -0
  197. atomeye-3.1.0/extxyz/.gitmodules +3 -0
  198. atomeye-3.1.0/extxyz/LICENSE +21 -0
  199. atomeye-3.1.0/extxyz/README.md +519 -0
  200. atomeye-3.1.0/extxyz/benchmarks/bench_cleri_frames.py +92 -0
  201. atomeye-3.1.0/extxyz/benchmarks/bench_mad.py +62 -0
  202. atomeye-3.1.0/extxyz/benchmarks/bench_read.py +159 -0
  203. atomeye-3.1.0/extxyz/benchmarks/bench_write.py +130 -0
  204. atomeye-3.1.0/extxyz/benchmarks/cleri_results.csv +8 -0
  205. atomeye-3.1.0/extxyz/benchmarks/plot_bench.py +91 -0
  206. atomeye-3.1.0/extxyz/benchmarks/read_speedup.png +0 -0
  207. atomeye-3.1.0/extxyz/benchmarks/results.csv +8 -0
  208. atomeye-3.1.0/extxyz/benchmarks/scope_comment.py +114 -0
  209. atomeye-3.1.0/extxyz/benchmarks/verify_marshal.py +73 -0
  210. atomeye-3.1.0/extxyz/benchmarks/write_results.csv +6 -0
  211. atomeye-3.1.0/extxyz/benchmarks/write_speedup.png +0 -0
  212. atomeye-3.1.0/extxyz/discover_version.py +113 -0
  213. atomeye-3.1.0/extxyz/examples/create_kv_tests.py +120 -0
  214. atomeye-3.1.0/extxyz/examples/run_tests.py +67 -0
  215. atomeye-3.1.0/extxyz/grammar/extxyz_kv_grammar.py +130 -0
  216. atomeye-3.1.0/extxyz/kv_tests.md +143 -0
  217. atomeye-3.1.0/extxyz/libcleri/.github/workflows/ci.yml +25 -0
  218. atomeye-3.1.0/extxyz/libcleri/.gitignore +51 -0
  219. atomeye-3.1.0/extxyz/libcleri/CONTRIBUTING.md +57 -0
  220. atomeye-3.1.0/extxyz/libcleri/LICENSE.md +19 -0
  221. atomeye-3.1.0/extxyz/libcleri/README.md +772 -0
  222. atomeye-3.1.0/extxyz/libcleri/Release/makefile +60 -0
  223. atomeye-3.1.0/extxyz/libcleri/Release/objects.mk +3 -0
  224. atomeye-3.1.0/extxyz/libcleri/Release/sources.mk +12 -0
  225. atomeye-3.1.0/extxyz/libcleri/Release/src/subdir.mk +79 -0
  226. atomeye-3.1.0/extxyz/libcleri/debian/changelog +104 -0
  227. atomeye-3.1.0/extxyz/libcleri/debian/compat +1 -0
  228. atomeye-3.1.0/extxyz/libcleri/debian/control +45 -0
  229. atomeye-3.1.0/extxyz/libcleri/debian/copyright +37 -0
  230. atomeye-3.1.0/extxyz/libcleri/debian/libcleri-dev.docs +1 -0
  231. atomeye-3.1.0/extxyz/libcleri/debian/libcleri-dev.examples +1 -0
  232. atomeye-3.1.0/extxyz/libcleri/debian/libcleri-dev.install +1 -0
  233. atomeye-3.1.0/extxyz/libcleri/debian/libcleri-dev.links +2 -0
  234. atomeye-3.1.0/extxyz/libcleri/debian/libcleri0.examples +1 -0
  235. atomeye-3.1.0/extxyz/libcleri/debian/libcleri0.install +2 -0
  236. atomeye-3.1.0/extxyz/libcleri/debian/libcleri0.links +2 -0
  237. atomeye-3.1.0/extxyz/libcleri/debian/libcleri0.symbols +50 -0
  238. atomeye-3.1.0/extxyz/libcleri/debian/rules +22 -0
  239. atomeye-3.1.0/extxyz/libcleri/debian/source/format +1 -0
  240. atomeye-3.1.0/extxyz/libcleri/debian/tests/control +3 -0
  241. atomeye-3.1.0/extxyz/libcleri/debian/watch +4 -0
  242. atomeye-3.1.0/extxyz/libcleri/examples/choice/main.c +29 -0
  243. atomeye-3.1.0/extxyz/libcleri/examples/hi_iris/main.c +29 -0
  244. atomeye-3.1.0/extxyz/libcleri/examples/json/json.c +67 -0
  245. atomeye-3.1.0/extxyz/libcleri/examples/json/json.h +32 -0
  246. atomeye-3.1.0/extxyz/libcleri/examples/json/main.c +19 -0
  247. atomeye-3.1.0/extxyz/libcleri/examples/keyword/main.c +26 -0
  248. atomeye-3.1.0/extxyz/libcleri/examples/list/main.c +29 -0
  249. atomeye-3.1.0/extxyz/libcleri/examples/optional/main.c +32 -0
  250. atomeye-3.1.0/extxyz/libcleri/examples/prio/main.c +45 -0
  251. atomeye-3.1.0/extxyz/libcleri/examples/ref/main.c +32 -0
  252. atomeye-3.1.0/extxyz/libcleri/examples/repeat/main.c +27 -0
  253. atomeye-3.1.0/extxyz/libcleri/examples/sequence/main.c +29 -0
  254. atomeye-3.1.0/extxyz/libcleri/examples/token/main.c +28 -0
  255. atomeye-3.1.0/extxyz/libcleri/examples/tokens/main.c +28 -0
  256. atomeye-3.1.0/extxyz/libcleri/inc/cleri/choice.h +36 -0
  257. atomeye-3.1.0/extxyz/libcleri/inc/cleri/cleri.h +150 -0
  258. atomeye-3.1.0/extxyz/libcleri/inc/cleri/dup.h +29 -0
  259. atomeye-3.1.0/extxyz/libcleri/inc/cleri/expecting.h +51 -0
  260. atomeye-3.1.0/extxyz/libcleri/inc/cleri/grammar.h +39 -0
  261. atomeye-3.1.0/extxyz/libcleri/inc/cleri/keyword.h +33 -0
  262. atomeye-3.1.0/extxyz/libcleri/inc/cleri/kwcache.h +20 -0
  263. atomeye-3.1.0/extxyz/libcleri/inc/cleri/list.h +43 -0
  264. atomeye-3.1.0/extxyz/libcleri/inc/cleri/node.h +49 -0
  265. atomeye-3.1.0/extxyz/libcleri/inc/cleri/olist.h +30 -0
  266. atomeye-3.1.0/extxyz/libcleri/inc/cleri/optional.h +31 -0
  267. atomeye-3.1.0/extxyz/libcleri/inc/cleri/parse.h +91 -0
  268. atomeye-3.1.0/extxyz/libcleri/inc/cleri/prio.h +36 -0
  269. atomeye-3.1.0/extxyz/libcleri/inc/cleri/ref.h +26 -0
  270. atomeye-3.1.0/extxyz/libcleri/inc/cleri/regex.h +36 -0
  271. atomeye-3.1.0/extxyz/libcleri/inc/cleri/repeat.h +35 -0
  272. atomeye-3.1.0/extxyz/libcleri/inc/cleri/rule.h +56 -0
  273. atomeye-3.1.0/extxyz/libcleri/inc/cleri/sequence.h +34 -0
  274. atomeye-3.1.0/extxyz/libcleri/inc/cleri/this.h +19 -0
  275. atomeye-3.1.0/extxyz/libcleri/inc/cleri/token.h +36 -0
  276. atomeye-3.1.0/extxyz/libcleri/inc/cleri/tokens.h +43 -0
  277. atomeye-3.1.0/extxyz/libcleri/inc/cleri/version.h +35 -0
  278. atomeye-3.1.0/extxyz/libcleri/inc/cleri/wincompat.h +13 -0
  279. atomeye-3.1.0/extxyz/libcleri/makefile.init +4 -0
  280. atomeye-3.1.0/extxyz/libcleri/makefile.targets +17 -0
  281. atomeye-3.1.0/extxyz/libcleri/meson.build +31 -0
  282. atomeye-3.1.0/extxyz/libcleri/src/choice.c +213 -0
  283. atomeye-3.1.0/extxyz/libcleri/src/cleri.c +98 -0
  284. atomeye-3.1.0/extxyz/libcleri/src/dup.c +33 -0
  285. atomeye-3.1.0/extxyz/libcleri/src/expecting.c +233 -0
  286. atomeye-3.1.0/extxyz/libcleri/src/grammar.c +102 -0
  287. atomeye-3.1.0/extxyz/libcleri/src/keyword.c +100 -0
  288. atomeye-3.1.0/extxyz/libcleri/src/kwcache.c +69 -0
  289. atomeye-3.1.0/extxyz/libcleri/src/list.c +131 -0
  290. atomeye-3.1.0/extxyz/libcleri/src/node.c +87 -0
  291. atomeye-3.1.0/extxyz/libcleri/src/olist.c +177 -0
  292. atomeye-3.1.0/extxyz/libcleri/src/optional.c +106 -0
  293. atomeye-3.1.0/extxyz/libcleri/src/parse.c +343 -0
  294. atomeye-3.1.0/extxyz/libcleri/src/prio.c +153 -0
  295. atomeye-3.1.0/extxyz/libcleri/src/ref.c +53 -0
  296. atomeye-3.1.0/extxyz/libcleri/src/regex.c +178 -0
  297. atomeye-3.1.0/extxyz/libcleri/src/repeat.c +112 -0
  298. atomeye-3.1.0/extxyz/libcleri/src/rule.c +199 -0
  299. atomeye-3.1.0/extxyz/libcleri/src/sequence.c +115 -0
  300. atomeye-3.1.0/extxyz/libcleri/src/this.c +112 -0
  301. atomeye-3.1.0/extxyz/libcleri/src/token.c +92 -0
  302. atomeye-3.1.0/extxyz/libcleri/src/tokens.c +244 -0
  303. atomeye-3.1.0/extxyz/libcleri/src/version.c +10 -0
  304. atomeye-3.1.0/extxyz/libcleri/test/helpers.h +74 -0
  305. atomeye-3.1.0/extxyz/libcleri/test/test.h +47 -0
  306. atomeye-3.1.0/extxyz/libcleri/test/test.sh +49 -0
  307. atomeye-3.1.0/extxyz/libcleri/test/test_choice/sources +10 -0
  308. atomeye-3.1.0/extxyz/libcleri/test/test_choice/test_choice.c +91 -0
  309. atomeye-3.1.0/extxyz/libcleri/test/test_dup/sources +10 -0
  310. atomeye-3.1.0/extxyz/libcleri/test/test_dup/test_dup.c +64 -0
  311. atomeye-3.1.0/extxyz/libcleri/test/test_json_lang/sources +14 -0
  312. atomeye-3.1.0/extxyz/libcleri/test/test_json_lang/test_json_lang.c +98 -0
  313. atomeye-3.1.0/extxyz/libcleri/test/test_keyword/sources +10 -0
  314. atomeye-3.1.0/extxyz/libcleri/test/test_keyword/test_keyword.c +119 -0
  315. atomeye-3.1.0/extxyz/libcleri/test/test_list/sources +11 -0
  316. atomeye-3.1.0/extxyz/libcleri/test/test_list/test_list.c +164 -0
  317. atomeye-3.1.0/extxyz/libcleri/test/test_optional/sources +9 -0
  318. atomeye-3.1.0/extxyz/libcleri/test/test_optional/test_optional.c +55 -0
  319. atomeye-3.1.0/extxyz/libcleri/test/test_prio/sources +13 -0
  320. atomeye-3.1.0/extxyz/libcleri/test/test_prio/test_prio.c +169 -0
  321. atomeye-3.1.0/extxyz/libcleri/test/test_ref/sources +9 -0
  322. atomeye-3.1.0/extxyz/libcleri/test/test_ref/test_ref.c +42 -0
  323. atomeye-3.1.0/extxyz/libcleri/test/test_regex/sources +8 -0
  324. atomeye-3.1.0/extxyz/libcleri/test/test_regex/test_regex.c +58 -0
  325. atomeye-3.1.0/extxyz/libcleri/test/test_repeat/sources +9 -0
  326. atomeye-3.1.0/extxyz/libcleri/test/test_repeat/test_repeat.c +121 -0
  327. atomeye-3.1.0/extxyz/libcleri/test/test_sequence/sources +9 -0
  328. atomeye-3.1.0/extxyz/libcleri/test/test_sequence/test_sequence.c +42 -0
  329. atomeye-3.1.0/extxyz/libcleri/test/test_thingsdb_lang/sources +21 -0
  330. atomeye-3.1.0/extxyz/libcleri/test/test_thingsdb_lang/test_thingsdb_lang.c +447 -0
  331. atomeye-3.1.0/extxyz/libcleri/test/test_token/sources +8 -0
  332. atomeye-3.1.0/extxyz/libcleri/test/test_token/test_token.c +71 -0
  333. atomeye-3.1.0/extxyz/libcleri/test/test_tokens/sources +8 -0
  334. atomeye-3.1.0/extxyz/libcleri/test/test_tokens/test_tokens.c +45 -0
  335. atomeye-3.1.0/extxyz/libcleri/test/test_version/sources +1 -0
  336. atomeye-3.1.0/extxyz/libcleri/test/test_version/test_version.c +19 -0
  337. atomeye-3.1.0/extxyz/libcleri_meson.build +32 -0
  338. atomeye-3.1.0/extxyz/libextxyz/_extxyz.def +15 -0
  339. atomeye-3.1.0/extxyz/libextxyz/_extxyz_pyext.def +20 -0
  340. atomeye-3.1.0/extxyz/libextxyz/extxyz.c +1500 -0
  341. atomeye-3.1.0/extxyz/libextxyz/extxyz.h +82 -0
  342. atomeye-3.1.0/extxyz/libextxyz/extxyz_dispatch.c +358 -0
  343. atomeye-3.1.0/extxyz/libextxyz/extxyz_dispatch.h +33 -0
  344. atomeye-3.1.0/extxyz/libextxyz/fast_format.c +84 -0
  345. atomeye-3.1.0/extxyz/libextxyz/fast_format.h +19 -0
  346. atomeye-3.1.0/extxyz/libextxyz/fextxyz.f90 +617 -0
  347. atomeye-3.1.0/extxyz/libextxyz/meson.build +93 -0
  348. atomeye-3.1.0/extxyz/libextxyz/pyext.c +254 -0
  349. atomeye-3.1.0/extxyz/libextxyz/test_C_main.c +55 -0
  350. atomeye-3.1.0/extxyz/libextxyz/test_fmt_float.c +78 -0
  351. atomeye-3.1.0/extxyz/libextxyz/test_fortran_main.f90 +28 -0
  352. atomeye-3.1.0/extxyz/meson.build +94 -0
  353. atomeye-3.1.0/extxyz/meson_options.txt +9 -0
  354. atomeye-3.1.0/extxyz/pyproject.toml +100 -0
  355. atomeye-3.1.0/extxyz/python/ase-extxyz/LICENSE +21 -0
  356. atomeye-3.1.0/extxyz/python/ase-extxyz/README.md +57 -0
  357. atomeye-3.1.0/extxyz/python/ase-extxyz/ase_extxyz/__init__.py +8 -0
  358. atomeye-3.1.0/extxyz/python/ase-extxyz/ase_extxyz/io.py +438 -0
  359. atomeye-3.1.0/extxyz/python/ase-extxyz/pyproject.toml +51 -0
  360. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/conftest.py +226 -0
  361. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_ase_cases.py +388 -0
  362. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_io.py +125 -0
  363. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_kv_parsing_array_type_promotion.py +52 -0
  364. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_kv_parsing_backward_compat_old_style_array.py +48 -0
  365. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_kv_parsing_bool.py +15 -0
  366. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_kv_parsing_float.py +40 -0
  367. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_kv_parsing_int.py +17 -0
  368. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_kv_parsing_key.py +9 -0
  369. atomeye-3.1.0/extxyz/python/ase-extxyz/tests/test_kv_parsing_string.py +59 -0
  370. atomeye-3.1.0/extxyz/python/extxyz/__init__.py +22 -0
  371. atomeye-3.1.0/extxyz/python/extxyz/__main__.py +3 -0
  372. atomeye-3.1.0/extxyz/python/extxyz/_version.py.in +27 -0
  373. atomeye-3.1.0/extxyz/python/extxyz/cextxyz.py +437 -0
  374. atomeye-3.1.0/extxyz/python/extxyz/cli.py +84 -0
  375. atomeye-3.1.0/extxyz/python/extxyz/core.py +350 -0
  376. atomeye-3.1.0/extxyz/python/extxyz/extxyz.py +39 -0
  377. atomeye-3.1.0/extxyz/python/extxyz/extxyz_kv_grammar.py +130 -0
  378. atomeye-3.1.0/extxyz/python/extxyz/grammar.py +408 -0
  379. atomeye-3.1.0/extxyz/python/extxyz/meson.build +26 -0
  380. atomeye-3.1.0/extxyz/subprojects/pcre2.wrap +16 -0
  381. atomeye-3.1.0/extxyz/tests/test_bench_vs_rust.py +163 -0
  382. atomeye-3.1.0/extxyz/tests/test_cell_convention.py +61 -0
  383. atomeye-3.1.0/extxyz/tests/test_core.py +113 -0
  384. atomeye-3.1.0/extxyz/tests/test_dispatch_parity.py +165 -0
  385. atomeye-3.1.0/extxyz/tests/test_fast_float.py +65 -0
  386. atomeye-3.1.0/extxyz/tests/test_fast_tokenizer.py +92 -0
  387. atomeye-3.1.0/extxyz/tests/test_marshal_parity.py +123 -0
  388. atomeye-3.1.0/extxyz/tests/test_robustness.py +160 -0
  389. atomeye-3.1.0/extxyz/tests/test_single_quote.py +57 -0
  390. atomeye-3.1.0/extxyz/tests/test_string_buffer.py +69 -0
  391. atomeye-3.1.0/extxyz/tests/test_write_buffer.py +65 -0
  392. atomeye-3.1.0/extxyz/tests/test_write_float_format.py +63 -0
  393. atomeye-3.1.0/extxyz/tests/test_write_precision.py +69 -0
  394. atomeye-3.1.0/extxyz/tools/assert_c_read_path.py +19 -0
  395. atomeye-3.1.0/extxyz/tools/wheels/build_pcre2_macos.sh +36 -0
  396. atomeye-3.1.0/extxyz/tools/wheels/cibw_before_all_cp38_macosx_arm64.sh +4 -0
  397. atomeye-3.1.0/extxyz/tools/wheels/release-wheels.sh +40 -0
  398. atomeye-3.1.0/meson.build +364 -0
  399. atomeye-3.1.0/meson_options.txt +17 -0
  400. atomeye-3.1.0/pyproject.toml +82 -0
  401. atomeye-3.1.0/rpm/atomeye.spec +53 -0
  402. atomeye-3.1.0/subprojects/pcre2.wrap +14 -0
  403. atomeye-3.1.0/tests/fe.cfg +69 -0
  404. atomeye-3.1.0/tests/frame0_force.png.cmap.eps +971 -0
  405. atomeye-3.1.0/tests/help.sh +56 -0
  406. atomeye-3.1.0/tests/remote.sh +199 -0
  407. atomeye-3.1.0/tests/si.xyz +132 -0
  408. atomeye-3.1.0/tests/smoke.script +6 -0
  409. atomeye-3.1.0/tests/smoke.sh +43 -0
  410. atomeye-3.1.0/tests/test_ase.py +93 -0
  411. atomeye-3.1.0/tests/test_process.py +122 -0
  412. atomeye-3.1.0/tests/test_process_window.py +30 -0
  413. atomeye-3.1.0/tests/test_terminal.py +103 -0
  414. atomeye-3.1.0/tests/usr.sh +85 -0
  415. atomeye-3.1.0/tests/water.pdb +8 -0
  416. atomeye-3.1.0/tests/window.sh +25 -0
  417. atomeye-3.1.0/tools/atomeye-serve +263 -0
  418. atomeye-3.1.0/tools/gen_extxyz_grammar.py +17 -0
  419. atomeye-3.1.0/tools/gen_help_font.py +57 -0
  420. atomeye-3.1.0/tools/macos/Info.plist +34 -0
  421. atomeye-3.1.0/tools/macos/launcher.sh +11 -0
  422. atomeye-3.1.0/tools/macos/make_app.sh +43 -0
  423. atomeye-3.1.0/tools/manylinux_sdl3.sh +56 -0
  424. atomeye-3.1.0/tools/windows/atomeye-register.cmd +31 -0
  425. atomeye-3.1.0/wasm/README.md +72 -0
  426. atomeye-3.1.0/wasm/app/apple-touch-icon.png +0 -0
  427. atomeye-3.1.0/wasm/app/icon-192.png +0 -0
  428. atomeye-3.1.0/wasm/app/icon-512.png +0 -0
  429. atomeye-3.1.0/wasm/app/icon-maskable-512.png +0 -0
  430. atomeye-3.1.0/wasm/app/index.html +529 -0
  431. atomeye-3.1.0/wasm/app/manifest.webmanifest +76 -0
  432. atomeye-3.1.0/wasm/app/sw.js +71 -0
  433. atomeye-3.1.0/wasm/atomeye.js +819 -0
  434. atomeye-3.1.0/wasm/build.sh +34 -0
  435. atomeye-3.1.0/wasm/compare_frames.py +48 -0
  436. atomeye-3.1.0/wasm/debug_overlay.html +35 -0
  437. atomeye-3.1.0/wasm/emscripten.cross +15 -0
  438. atomeye-3.1.0/wasm/examples/marimo_demo.py +107 -0
  439. atomeye-3.1.0/wasm/examples/viewer.html +174 -0
  440. atomeye-3.1.0/wasm/python/LICENSE +32 -0
  441. atomeye-3.1.0/wasm/python/README.md +64 -0
  442. atomeye-3.1.0/wasm/python/atomeye_widget/__init__.py +253 -0
  443. atomeye-3.1.0/wasm/python/pyproject.toml +50 -0
  444. atomeye-3.1.0/wasm/python/tests/test_widget.py +88 -0
  445. atomeye-3.1.0/wasm/test.mjs +224 -0
  446. atomeye-3.1.0/wasm/test_app.py +233 -0
  447. atomeye-3.1.0/wasm/test_browser.py +150 -0
  448. atomeye-3.1.0/wasm/test_serve.py +113 -0
  449. atomeye-3.1.0/wasm/test_site.py +67 -0
  450. atomeye-3.1.0/wasm/test_viewer_page.py +57 -0
  451. atomeye-3.1.0/wasm/widget.js +134 -0
@@ -0,0 +1,13 @@
1
+ # Shell scripts, test data and viewer scripts must keep Unix line
2
+ # endings in Windows checkouts too.
3
+ * text=auto eol=lf
4
+ *.png binary
5
+ *.jpg binary
6
+ *.cmd text eol=crlf
7
+
8
+ # Reference material collected while AtomEye was written, some of it by
9
+ # other people: not part of the program, and left out of source
10
+ # distributions (`meson dist`, and so the sdist on PyPI).
11
+ Notes export-ignore
12
+ Bugs export-ignore
13
+ *.old export-ignore
@@ -0,0 +1,31 @@
1
+ AtomEye is by Ju Li, with the scripting interface of AtomEye 3 by Futoshi
2
+ Shimizu; with their permission it is now distributed under the MIT
3
+ licence. The viewer with its Python module and the notebook widget are
4
+ also on PyPI: `pip install atomeye` and `pip install atomeye-widget`.
5
+
6
+ | You want | Download | Then |
7
+ | --- | --- | --- |
8
+ | The viewer on Linux | `atomeye-linux-x86_64.tar.gz` or `atomeye-linux-aarch64.tar.gz` | unpack; `./A example.xyz`. Needs glibc 2.28 or later and the X11 libraries. |
9
+ | The viewer on Linux with Wayland, without X11 | `atomeye-linux-sdl3-x86_64.tar.gz` or `atomeye-linux-sdl3-aarch64.tar.gz` | unpack; `./A example.xyz`. Needs glibc 2.28 or later. Uses Wayland if there is a Wayland session, otherwise X11. |
10
+ | The viewer on Windows | `atomeye-windows-x86_64.zip` | unpack; in a terminal in that folder, `A.exe example.xyz`. `atomeye-register.cmd` adds it to "Open with". |
11
+ | The viewer on macOS (Apple silicon), as an application | `AtomEye-macos-arm64.zip` | unpack; right-click, "Open" the first time (it is not notarised). Double-click a configuration and choose AtomEye, or drop one on the window. Keys only (`?` lists them); for the prompt, run `AtomEye.app/Contents/MacOS/A file.xyz` in a terminal. |
12
+ | The viewer and Python module on Linux or macOS (Apple silicon) | `pip install atomeye`, or the `atomeye-…whl` for your Python version and platform | `atomeye file.xyz`, or from Python `ase.visualize.view(atoms, viewer="atomeye")` |
13
+ | The notebook widget (marimo, Jupyter; any platform) | `pip install atomeye-widget`, or `atomeye_widget-…-py3-none-any.whl` | `from atomeye_widget import AtomEyeWidget` |
14
+ | The viewer for a web page | `atomeye-core.mjs` | see `wasm/README.md` |
15
+
16
+ The viewer also runs in the browser, with nothing to install:
17
+ <https://jameskermode.github.io/AtomEye/app/> (full screen, made for
18
+ touch; on an iPad or Android tablet, "Add to Home Screen" installs it)
19
+ and <https://jameskermode.github.io/AtomEye/> (in a marimo notebook, with
20
+ ASE).
21
+
22
+ Mouse and keys: drag to rotate, Shift-drag to translate, wheel or right-drag
23
+ to move in and out, right-click an atom for information; `b` bonds,
24
+ `k` coordination colouring, `Delete`/`Insert` next/previous frame, `?`
25
+ for the full list.
26
+
27
+ Known gaps: on Windows there is no Python extension module, line editing
28
+ at the prompt or `-listen`/`-c`; on macOS only one in-process viewer per
29
+ Python session (the default subprocess viewer has no such limit); the
30
+ macOS wheel is for the macOS version of the build machine or later.
31
+ Please report problems at <https://github.com/jameskermode/AtomEye/issues>.
@@ -0,0 +1,24 @@
1
+ #!/bin/sh
2
+ # Attach files to the GitHub release named after the tag being built,
3
+ # creating the release first if no other workflow has yet.
4
+ # usage: release.sh <file>... (needs GH_TOKEN, and the gh CLI)
5
+ # Tags with a letter after the number (3.1.0a1, 3.1.0rc1) are pre-releases.
6
+ set -e
7
+ tag=${GITHUB_REF_NAME:?not run for a tag}
8
+ here=$(dirname "$0")
9
+ case "$tag" in
10
+ v*[0-9][a-z]*) prerelease=--prerelease ;;
11
+ *) prerelease= ;;
12
+ esac
13
+ if ! gh release view "$tag" > /dev/null 2>&1; then
14
+ # (another workflow may create it at the same moment: then this fails,
15
+ # and the upload below still finds the release)
16
+ gh release create "$tag" $prerelease --verify-tag \
17
+ --title "AtomEye ${tag#v}" --notes-file "$here/release-notes.md" || true
18
+ fi
19
+ for attempt in 1 2 3 4 5; do
20
+ if gh release upload "$tag" "$@" --clobber; then exit 0; fi
21
+ sleep 10
22
+ done
23
+ echo "could not attach $* to release $tag"
24
+ exit 1
@@ -0,0 +1,289 @@
1
+ name: build
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ tags: ["v*"]
7
+ pull_request:
8
+
9
+ jobs:
10
+ linux:
11
+ name: linux (${{ matrix.window_system }}, ${{ matrix.cc }})
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ include:
17
+ - {window_system: x11, cc: gcc, line_editor: readline, packages: "libx11-dev libxext-dev libxpm-dev libreadline-dev", tests: 7}
18
+ - {window_system: x11, cc: clang, line_editor: libedit, packages: "libx11-dev libxext-dev libxpm-dev libedit-dev", tests: 7}
19
+ - {window_system: sdl3, cc: gcc, line_editor: libedit, packages: "libsdl3-dev libedit-dev", tests: 8}
20
+ - {window_system: none, cc: gcc, line_editor: libedit, packages: "libedit-dev", tests: 7}
21
+ env:
22
+ CC: ${{ matrix.cc }}
23
+ steps:
24
+ - uses: actions/checkout@v7
25
+ with:
26
+ submodules: recursive
27
+ - uses: actions/setup-python@v7
28
+ with:
29
+ python-version: "3.x"
30
+ - name: Install dependencies
31
+ run: |
32
+ sudo apt-get update
33
+ sudo apt-get install -y pkg-config libpng-dev libjpeg-dev \
34
+ libgsl-dev liblapack-dev libblas-dev libpcre2-dev \
35
+ xvfb ${{ matrix.packages }}
36
+ pip install meson ninja pyleri numpy ase
37
+ - name: Configure
38
+ run: >
39
+ meson setup build -Dpython=enabled -Dextxyz=enabled
40
+ -Dwindow_system=${{ matrix.window_system }}
41
+ -Dline_editor=${{ matrix.line_editor }}
42
+ - name: Build
43
+ run: meson compile -C build
44
+ - name: Check that no Xlib is linked
45
+ if: matrix.window_system == 'none'
46
+ run: |
47
+ ldd build/A
48
+ ! ldd build/A | grep -q 'libX11'
49
+ - name: Test (no display)
50
+ shell: bash
51
+ run: |
52
+ set -o pipefail
53
+ env -u DISPLAY meson test -C build --print-errorlogs | tee test.out
54
+ grep -Eq '^Ok: +${{ matrix.tests }}' test.out
55
+ - name: Open real windows under Xvfb
56
+ if: matrix.window_system != 'none'
57
+ timeout-minutes: 3
58
+ env:
59
+ ATOMEYE_BINARY: build/A
60
+ PYTHONPATH: Python
61
+ run: |
62
+ if [ "${{ matrix.window_system }}" = sdl3 ]; then xvfb-run -a tests/window.sh build/A; fi
63
+ xvfb-run -a python tests/test_process_window.py
64
+ - name: Install with pip and test the installed package
65
+ if: matrix.cc == 'gcc'
66
+ timeout-minutes: 10
67
+ run: |
68
+ pip install . -Csetup-args=-Dwindow_system=${{ matrix.window_system }} -Csetup-args=-Dline_editor=${{ matrix.line_editor }}
69
+ # the ASE viewer plugin is registered and the viewer binary installed
70
+ python -c "from ase.visualize.viewers import VIEWERS; assert 'atomeye' in VIEWERS"
71
+ python -c "import atomeye; print(atomeye.find_binary())"
72
+ cd tests && python test_ase.py && python test_process.py | tee process.out
73
+ grep -q 'ASE plugin tested' process.out
74
+
75
+ windows:
76
+ name: windows (${{ matrix.window_system }})
77
+ runs-on: windows-latest
78
+ permissions:
79
+ contents: write # to attach the viewer to a release
80
+ timeout-minutes: 30
81
+ strategy:
82
+ fail-fast: false
83
+ matrix:
84
+ include:
85
+ - {window_system: sdl3, tests: 5}
86
+ - {window_system: none, tests: 4}
87
+ defaults:
88
+ run:
89
+ shell: msys2 {0}
90
+ steps:
91
+ - uses: actions/checkout@v7
92
+ with:
93
+ submodules: recursive
94
+ # native Windows binaries built with MinGW-w64 (not the MSYS2/Cygwin
95
+ # POSIX layer): they run without MSYS2 given the DLLs next to them
96
+ - uses: msys2/setup-msys2@v2
97
+ with:
98
+ msystem: UCRT64
99
+ update: true
100
+ install: >-
101
+ zip
102
+ diffutils
103
+ mingw-w64-ucrt-x86_64-gcc
104
+ mingw-w64-ucrt-x86_64-meson
105
+ mingw-w64-ucrt-x86_64-ninja
106
+ mingw-w64-ucrt-x86_64-pkgconf
107
+ mingw-w64-ucrt-x86_64-libpng
108
+ mingw-w64-ucrt-x86_64-libjpeg-turbo
109
+ mingw-w64-ucrt-x86_64-pcre2
110
+ mingw-w64-ucrt-x86_64-sdl3
111
+ mingw-w64-ucrt-x86_64-python
112
+ mingw-w64-ucrt-x86_64-python-pip
113
+ mingw-w64-ucrt-x86_64-python-numpy
114
+ mingw-w64-ucrt-x86_64-python-scipy
115
+ mingw-w64-ucrt-x86_64-python-matplotlib
116
+ - name: Install Python packages
117
+ run: |
118
+ pip install --break-system-packages pyleri
119
+ pip install --break-system-packages --no-deps ase
120
+ - name: Configure
121
+ run: >
122
+ meson setup build -Dextxyz=enabled -Dlapack=disabled -Dgsl=disabled
123
+ -Dwindow_system=${{ matrix.window_system }}
124
+ - name: Build
125
+ run: meson compile -C build
126
+ - name: Check that it is a native Windows program
127
+ run: |
128
+ ldd build/A.exe
129
+ ! ldd build/A.exe | grep -qi 'msys-2.0.dll\|cygwin'
130
+ - name: Test
131
+ run: |
132
+ set -o pipefail
133
+ meson test -C build --print-errorlogs | tee test.out
134
+ grep -Eq '^Ok: +${{ matrix.tests }}' test.out
135
+ - name: Drive the viewer from Python through a pipe
136
+ timeout-minutes: 5
137
+ env:
138
+ PYTHONPATH: Python
139
+ run: ATOMEYE_BINARY="$PWD/build/A.exe" python tests/test_process.py
140
+ - name: Open a real window
141
+ if: matrix.window_system == 'sdl3'
142
+ timeout-minutes: 3
143
+ run: sh tests/window.sh build/A.exe
144
+ - name: Collect the viewer and its DLLs
145
+ run: |
146
+ mkdir atomeye-windows
147
+ cp build/A.exe atomeye-windows/
148
+ ldd build/A.exe | grep -i '/ucrt64/' | awk '{print $3}' | xargs -I{} cp {} atomeye-windows/
149
+ ls -l atomeye-windows
150
+ cp tests/si.xyz atomeye-windows/example.xyz
151
+ cp tools/windows/atomeye-register.cmd atomeye-windows/
152
+ printf '%s\r\n' 'AtomEye viewer for Windows, built from https://github.com/jameskermode/AtomEye' \
153
+ '' 'Unpack anywhere and, in a terminal in this folder, run: A.exe example.xyz' \
154
+ 'Commands can be typed in the terminal; the mouse and keys work in the window.' \
155
+ 'A file dragged onto the window is opened.' \
156
+ '' 'To have AtomEye under "Open with" for .xyz, .extxyz, .cfg and .pdb files,' \
157
+ 'double-click atomeye-register.cmd (atomeye-register.cmd /u undoes it).' > atomeye-windows/README.txt
158
+ mv atomeye-windows atomeye-windows-x86_64
159
+ zip -r atomeye-windows-x86_64.zip atomeye-windows-x86_64
160
+ mv atomeye-windows-x86_64 atomeye-windows
161
+ - name: Run it outside MSYS2
162
+ shell: cmd
163
+ run: |
164
+ cd atomeye-windows
165
+ copy ..\tests\si.xyz . && copy ..\tests\smoke.script .
166
+ A.exe -nowindow -f=smoke.script si.xyz:1 < NUL
167
+ if not exist frame1.png exit /b 1
168
+ - name: Register it for "Open with", and take that away again
169
+ shell: cmd
170
+ run: |
171
+ cd atomeye-windows
172
+ call atomeye-register.cmd || exit /b 1
173
+ reg query "HKCU\Software\Classes\AtomEye.Configuration\shell\open\command" /ve || exit /b 1
174
+ reg query "HKCU\Software\Classes\AtomEye.Configuration\shell\open\command" /ve | findstr /c:"A.exe" || exit /b 1
175
+ reg query "HKCU\Software\Classes\.xyz\OpenWithProgids" /v AtomEye.Configuration || exit /b 1
176
+ reg query "HKCU\Software\Classes\.cfg\OpenWithProgids" /v AtomEye.Configuration || exit /b 1
177
+ call atomeye-register.cmd /u || exit /b 1
178
+ reg query "HKCU\Software\Classes\AtomEye.Configuration" >nul 2>nul && exit /b 1
179
+ reg query "HKCU\Software\Classes\.xyz\OpenWithProgids" /v AtomEye.Configuration >nul 2>nul && exit /b 1
180
+ exit /b 0
181
+ - uses: actions/upload-artifact@v7
182
+ with:
183
+ name: atomeye-windows-${{ matrix.window_system }}
184
+ path: atomeye-windows
185
+ # On a version tag, the files are attached to the GitHub release of
186
+ # that name (whichever workflow gets there first creates it).
187
+ - name: Attach to the GitHub release
188
+ if: startsWith(github.ref, 'refs/tags/v') && matrix.window_system == 'sdl3'
189
+ shell: bash
190
+ env:
191
+ GH_TOKEN: ${{ github.token }}
192
+ run: |
193
+ sh .github/release.sh atomeye-windows-x86_64.zip
194
+
195
+ macos:
196
+ name: macos (${{ matrix.window_system }})
197
+ runs-on: macos-latest
198
+ strategy:
199
+ fail-fast: false
200
+ matrix:
201
+ include:
202
+ # X11 client libraries from Homebrew are enough to build;
203
+ # running that viewer needs an X server such as XQuartz.
204
+ - {window_system: x11, line_editor: readline, packages: "libx11 libxext libxpm readline", tests: 7}
205
+ # libedit is part of macOS
206
+ - {window_system: sdl3, line_editor: libedit, packages: "sdl3", tests: 8}
207
+ steps:
208
+ - uses: actions/checkout@v7
209
+ with:
210
+ submodules: recursive
211
+ - uses: actions/setup-python@v7
212
+ with:
213
+ python-version: "3.x"
214
+ - name: Install dependencies
215
+ run: |
216
+ brew install pkgconf gsl libpng jpeg-turbo pcre2 ${{ matrix.packages }}
217
+ pip install meson ninja pyleri numpy ase
218
+ - name: Configure
219
+ run: |
220
+ # readline and jpeg-turbo are keg-only in Homebrew
221
+ export PKG_CONFIG_PATH="$(brew --prefix readline)/lib/pkgconfig:$(brew --prefix jpeg-turbo)/lib/pkgconfig"
222
+ meson setup build -Dpython=enabled -Dextxyz=enabled \
223
+ -Dwindow_system=${{ matrix.window_system }} \
224
+ -Dline_editor=${{ matrix.line_editor }}
225
+ - name: Build
226
+ run: meson compile -C build
227
+ - name: Check binary
228
+ run: file build/A && otool -L build/A
229
+ - name: Test (no display needed)
230
+ shell: bash
231
+ run: |
232
+ set -o pipefail
233
+ meson test -C build --print-errorlogs | tee test.out
234
+ grep -Eq '^Ok: +${{ matrix.tests }}' test.out
235
+ - name: Open native Cocoa windows (informational)
236
+ if: matrix.window_system == 'sdl3'
237
+ continue-on-error: true
238
+ timeout-minutes: 3
239
+ env:
240
+ ATOMEYE_BINARY: build/A
241
+ PYTHONPATH: Python
242
+ run: |
243
+ tests/window.sh build/A
244
+ python tests/test_process_window.py
245
+ # AtomEye.app: the viewer with the libraries it needs, to double-click
246
+ - name: Make AtomEye.app
247
+ if: matrix.window_system == 'sdl3'
248
+ run: |
249
+ brew install dylibbundler
250
+ version=$(meson introspect build --projectinfo | python -c 'import json,sys; print(json.load(sys.stdin)["version"])')
251
+ tools/macos/make_app.sh build/A "$version" .
252
+ plutil -lint AtomEye.app/Contents/Info.plist
253
+ codesign --verify --deep --strict --verbose=2 AtomEye.app
254
+ otool -L AtomEye.app/Contents/MacOS/A
255
+ # nothing from Homebrew is needed any more
256
+ ! otool -L AtomEye.app/Contents/MacOS/A AtomEye.app/Contents/Frameworks/*.dylib | grep -E '/opt/homebrew|/usr/local/(opt|Cellar)'
257
+ # the viewer in the bundle works
258
+ mkdir app-test && cp tests/si.xyz tests/smoke.script app-test/
259
+ (cd app-test && ../AtomEye.app/Contents/MacOS/A -nowindow -f=smoke.script si.xyz:1 < /dev/null && test -s frame1.png)
260
+ ditto -c -k --keepParent AtomEye.app AtomEye-macos-$(uname -m).zip
261
+ ls -l AtomEye-macos-*.zip
262
+ - name: Open a document with AtomEye.app (informational)
263
+ if: matrix.window_system == 'sdl3'
264
+ continue-on-error: true
265
+ timeout-minutes: 3
266
+ run: |
267
+ rm -f ~/Library/Logs/AtomEye.log
268
+ cp tests/si.xyz /tmp/opened-by-finder.xyz
269
+ open -n -a "$PWD/AtomEye.app" /tmp/opened-by-finder.xyz
270
+ for i in $(seq 1 30); do
271
+ grep -q 'opened-by-finder.xyz' ~/Library/Logs/AtomEye.log 2>/dev/null && break
272
+ sleep 1
273
+ done
274
+ cat ~/Library/Logs/AtomEye.log || true
275
+ pkill -x A || true
276
+ grep -q 'opened-by-finder.xyz' ~/Library/Logs/AtomEye.log
277
+ grep -q 'Si .* 64 ' ~/Library/Logs/AtomEye.log
278
+ - uses: actions/upload-artifact@v7
279
+ if: matrix.window_system == 'sdl3'
280
+ with:
281
+ name: atomeye-macos-app
282
+ path: AtomEye-macos-*.zip
283
+ if-no-files-found: error
284
+ - name: Attach to the GitHub release
285
+ if: startsWith(github.ref, 'refs/tags/v') && matrix.window_system == 'sdl3'
286
+ env:
287
+ GH_TOKEN: ${{ github.token }}
288
+ run: |
289
+ sh .github/release.sh AtomEye-macos-*.zip
@@ -0,0 +1,183 @@
1
+ name: wasm
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ tags: ["v*"]
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ env:
11
+ EMSDK_VERSION: "7.0.1"
12
+
13
+ jobs:
14
+ wasm:
15
+ name: WebAssembly viewer and notebook widget
16
+ runs-on: ubuntu-latest
17
+ timeout-minutes: 30
18
+ permissions:
19
+ contents: write # to attach the widget to a release
20
+ steps:
21
+ - uses: actions/checkout@v7
22
+ with:
23
+ submodules: recursive
24
+ - uses: actions/setup-python@v7
25
+ with:
26
+ python-version: "3.x"
27
+ - uses: actions/setup-node@v7
28
+ with:
29
+ node-version: "22"
30
+ - name: Install dependencies
31
+ run: |
32
+ sudo apt-get update
33
+ sudo apt-get install -y pkg-config libpng-dev libjpeg-dev libpcre2-dev
34
+ pip install meson ninja pyleri pillow playwright build pytest \
35
+ anywidget numpy ase twine
36
+ - name: Install the Emscripten SDK
37
+ run: |
38
+ git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$RUNNER_TEMP/emsdk"
39
+ "$RUNNER_TEMP/emsdk/emsdk" install "$EMSDK_VERSION"
40
+ "$RUNNER_TEMP/emsdk/emsdk" activate "$EMSDK_VERSION"
41
+ - name: Build the viewer and the widget bundle
42
+ run: |
43
+ source "$RUNNER_TEMP/emsdk/emsdk_env.sh"
44
+ wasm/build.sh build-wasm
45
+ - name: Test under Node
46
+ run: node wasm/test.mjs build-wasm wasm-out
47
+ - name: Build the native viewer to compare with
48
+ run: |
49
+ meson setup build-native -Dwindow_system=none -Dline_editor=none \
50
+ -Dlapack=disabled -Dgsl=disabled -Dextxyz=enabled
51
+ meson compile -C build-native
52
+ meson test -C build-native --print-errorlogs
53
+ - name: Compare frames with the native viewer
54
+ run: python wasm/compare_frames.py build-native/A wasm-out/frame-400x300.rgba
55
+ - name: Test in headless Chrome
56
+ run: python wasm/test_browser.py build-wasm
57
+ - name: Build and test the widget package
58
+ run: |
59
+ # the source distribution, and the wheel from it: so both hold
60
+ # the bundle built above
61
+ python -m build wasm/python
62
+ python -m twine check --strict wasm/python/dist/*
63
+ pip install wasm/python/dist/*.whl
64
+ cd wasm/python/tests && python -m pytest -v -rs .
65
+ unzip -l ../dist/*.whl | grep -q 'atomeye_widget/static/widget.js'
66
+ unzip -l ../dist/*.whl | grep -q 'licenses/LICENSE'
67
+ tar tzf ../dist/*.tar.gz | grep -q 'atomeye_widget/static/widget.js'
68
+ # one tag releases the viewer and the widget, at the same version
69
+ viewer=$(sed -n "s/^ *version: '\(.*\)',$/\1/p" ../../../meson.build)
70
+ ls ../dist/atomeye_widget-"$viewer"-py3-none-any.whl
71
+ # The marimo example as a static site: Python itself (Pyodide), ASE
72
+ # and the widget, installed from the wheel next to the notebook, all
73
+ # run in the visitor's browser.
74
+ - name: Export the marimo demo as a WASM notebook
75
+ run: |
76
+ pip install marimo uv
77
+ marimo export html-wasm wasm/examples/marimo_demo.py -o site --mode run
78
+ mkdir -p site/public
79
+ cp wasm/python/dist/*.whl site/public/
80
+ (cd site/public && ls *.whl > wheel.txt && cat wheel.txt)
81
+ rm -f site/CLAUDE.md
82
+ touch site/.nojekyll
83
+ # the viewer on its own, with diagnostics shown on the page
84
+ cp wasm/examples/viewer.html wasm/atomeye.js build-wasm/atomeye-core.mjs site/
85
+ cp tests/si.xyz site/demo.xyz
86
+ # the viewer as an application to put on a tablet's Home Screen
87
+ mkdir site/app
88
+ cp wasm/app/* wasm/atomeye.js build-wasm/atomeye-core.mjs site/app/
89
+ cp tests/si.xyz site/app/demo.xyz
90
+ # index.html?debug shows errors on the page
91
+ python - <<'PY'
92
+ import pathlib
93
+ page = pathlib.Path("site/index.html")
94
+ overlay = pathlib.Path("wasm/debug_overlay.html").read_text()
95
+ html = page.read_text()
96
+ assert "<head>" in html
97
+ page.write_text(html.replace("<head>", "<head>\n" + overlay, 1))
98
+ PY
99
+ - name: Test the plain viewer page, with touch gestures
100
+ run: python wasm/test_viewer_page.py site
101
+ - name: Test the application page, as on a tablet
102
+ run: python wasm/test_app.py site/app app.png
103
+ - name: Test atomeye-serve, which serves the application with files of one's own
104
+ run: python wasm/test_serve.py site/app --browser
105
+ - name: Test the exported notebook in headless Chrome
106
+ run: python wasm/test_site.py site site.png
107
+ - uses: actions/upload-artifact@v7
108
+ if: always()
109
+ with:
110
+ name: demo-screenshot
111
+ path: |
112
+ site*.png
113
+ app.png
114
+ if-no-files-found: ignore
115
+ - uses: actions/upload-pages-artifact@v5
116
+ with:
117
+ path: site
118
+ - uses: actions/upload-artifact@v7
119
+ with:
120
+ name: atomeye-wasm
121
+ path: |
122
+ build-wasm/atomeye-core.mjs
123
+ wasm/python/dist/*.whl
124
+ if-no-files-found: error
125
+ - uses: actions/upload-artifact@v7
126
+ with:
127
+ name: widget-dist
128
+ path: wasm/python/dist/*
129
+ if-no-files-found: error
130
+ # On a version tag, the files are attached to the GitHub release of
131
+ # that name (whichever workflow gets there first creates it).
132
+ - name: Attach to the GitHub release
133
+ if: startsWith(github.ref, 'refs/tags/v')
134
+ shell: bash
135
+ env:
136
+ GH_TOKEN: ${{ github.token }}
137
+ run: |
138
+ sh .github/release.sh wasm/python/dist/*.whl build-wasm/atomeye-core.mjs
139
+
140
+ # https://pypi.org/project/atomeye-widget/ - on a version tag only. The
141
+ # wheel is pure Python (py3-none-any; the WebAssembly in it is run by the
142
+ # browser, not by Python), which is what micropip installs in Pyodide, so
143
+ # no Emscripten platform wheel is needed. Trusted publishing, as for
144
+ # atomeye in the wheels workflow: the publisher registered on pypi.org is
145
+ # owner jameskermode, repository AtomEye, workflow wasm.yml, environment
146
+ # pypi.
147
+ pypi:
148
+ name: Publish the widget on PyPI
149
+ needs: wasm
150
+ if: startsWith(github.ref, 'refs/tags/v')
151
+ runs-on: ubuntu-latest
152
+ environment:
153
+ name: pypi
154
+ url: https://pypi.org/project/atomeye-widget/
155
+ permissions:
156
+ id-token: write
157
+ steps:
158
+ - uses: actions/download-artifact@v7
159
+ with:
160
+ name: widget-dist
161
+ path: dist
162
+ - name: Check that the tag is the version being published
163
+ run: |
164
+ ls -l dist
165
+ ls dist/atomeye_widget-"${GITHUB_REF_NAME#v}".tar.gz
166
+ - uses: pypa/gh-action-pypi-publish@release/v1
167
+
168
+ # https://jameskermode.github.io/AtomEye/
169
+ pages:
170
+ name: Publish the demo on GitHub Pages
171
+ needs: wasm
172
+ # (run the workflow by hand on master to publish again)
173
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
174
+ runs-on: ubuntu-latest
175
+ permissions:
176
+ pages: write
177
+ id-token: write
178
+ environment:
179
+ name: github-pages
180
+ url: ${{ steps.deployment.outputs.page_url }}
181
+ steps:
182
+ - id: deployment
183
+ uses: actions/deploy-pages@v5