npxpy 0.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 (201) hide show
  1. npxpy-0.1.0/.github/workflows/release-and-publish-to-pypi.yml +52 -0
  2. npxpy-0.1.0/.gitignore +7 -0
  3. npxpy-0.1.0/LICENSE +21 -0
  4. npxpy-0.1.0/PKG-INFO +229 -0
  5. npxpy-0.1.0/README.md +182 -0
  6. npxpy-0.1.0/docs/examples/example_README/example0.py +105 -0
  7. npxpy-0.1.0/docs/examples/example_README/example0_viewport.png +0 -0
  8. npxpy-0.1.0/docs/examples/example_README/example_marker.png +0 -0
  9. npxpy-0.1.0/docs/examples/example_README/example_mesh.stl +0 -0
  10. npxpy-0.1.0/docs/examples/example_README/gds_file.gds +0 -0
  11. npxpy-0.1.0/docs/examples/example_README/preset_from_file.toml +23 -0
  12. npxpy-0.1.0/docs/examples/example_menger/25x_IP-n162_surface_menger.toml +27 -0
  13. npxpy-0.1.0/docs/examples/example_menger/example_menger_cube.py +106 -0
  14. npxpy-0.1.0/docs/examples/example_menger/visualize_menger_cube.py +95 -0
  15. npxpy-0.1.0/docs/examples/example_menger/voxel_cube_10um.stl +0 -0
  16. npxpy-0.1.0/docs/examples/example_menger/voxel_cube_1um.stl +0 -0
  17. npxpy-0.1.0/docs/examples/example_stl_sweep/25x_IP-n162_cylinders.toml +27 -0
  18. npxpy-0.1.0/docs/examples/example_stl_sweep/cylinder_params_sweep.gds +0 -0
  19. npxpy-0.1.0/docs/examples/example_stl_sweep/cylinder_params_sweep.pdf +0 -0
  20. npxpy-0.1.0/docs/examples/example_stl_sweep/cylinder_params_sweep.svg +5529 -0
  21. npxpy-0.1.0/docs/examples/example_stl_sweep/example_stl_sweep.py +256 -0
  22. npxpy-0.1.0/docs/examples/example_stl_sweep/example_stl_sweep_with_gds.md +334 -0
  23. npxpy-0.1.0/docs/examples/example_stl_sweep/example_stl_sweep_with_gds.png +0 -0
  24. npxpy-0.1.0/docs/examples/example_stl_sweep/example_stl_sweep_with_gds.py +349 -0
  25. npxpy-0.1.0/docs/examples/example_stl_sweep/marker.png +0 -0
  26. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_1.stl +422 -0
  27. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_10.stl +422 -0
  28. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_100.stl +814 -0
  29. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_11.stl +814 -0
  30. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_12.stl +814 -0
  31. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_13.stl +814 -0
  32. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_14.stl +814 -0
  33. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_15.stl +814 -0
  34. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_16.stl +814 -0
  35. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_17.stl +814 -0
  36. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_18.stl +814 -0
  37. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_19.stl +814 -0
  38. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_2.stl +422 -0
  39. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_20.stl +814 -0
  40. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_21.stl +814 -0
  41. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_22.stl +814 -0
  42. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_23.stl +814 -0
  43. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_24.stl +814 -0
  44. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_25.stl +814 -0
  45. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_26.stl +814 -0
  46. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_27.stl +814 -0
  47. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_28.stl +814 -0
  48. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_29.stl +814 -0
  49. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_3.stl +422 -0
  50. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_30.stl +814 -0
  51. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_31.stl +814 -0
  52. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_32.stl +814 -0
  53. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_33.stl +814 -0
  54. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_34.stl +814 -0
  55. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_35.stl +814 -0
  56. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_36.stl +814 -0
  57. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_37.stl +814 -0
  58. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_38.stl +814 -0
  59. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_39.stl +814 -0
  60. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_4.stl +422 -0
  61. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_40.stl +814 -0
  62. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_41.stl +814 -0
  63. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_42.stl +814 -0
  64. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_43.stl +814 -0
  65. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_44.stl +814 -0
  66. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_45.stl +814 -0
  67. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_46.stl +814 -0
  68. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_47.stl +814 -0
  69. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_48.stl +814 -0
  70. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_49.stl +814 -0
  71. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_5.stl +422 -0
  72. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_50.stl +814 -0
  73. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_51.stl +814 -0
  74. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_52.stl +814 -0
  75. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_53.stl +814 -0
  76. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_54.stl +814 -0
  77. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_55.stl +814 -0
  78. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_56.stl +814 -0
  79. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_57.stl +814 -0
  80. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_58.stl +814 -0
  81. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_59.stl +814 -0
  82. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_6.stl +422 -0
  83. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_60.stl +814 -0
  84. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_61.stl +814 -0
  85. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_62.stl +814 -0
  86. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_63.stl +814 -0
  87. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_64.stl +814 -0
  88. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_65.stl +814 -0
  89. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_66.stl +814 -0
  90. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_67.stl +814 -0
  91. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_68.stl +814 -0
  92. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_69.stl +814 -0
  93. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_7.stl +422 -0
  94. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_70.stl +814 -0
  95. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_71.stl +814 -0
  96. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_72.stl +814 -0
  97. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_73.stl +814 -0
  98. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_74.stl +814 -0
  99. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_75.stl +814 -0
  100. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_76.stl +814 -0
  101. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_77.stl +814 -0
  102. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_78.stl +814 -0
  103. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_79.stl +814 -0
  104. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_8.stl +422 -0
  105. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_80.stl +814 -0
  106. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_81.stl +814 -0
  107. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_82.stl +814 -0
  108. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_83.stl +814 -0
  109. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_84.stl +814 -0
  110. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_85.stl +814 -0
  111. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_86.stl +814 -0
  112. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_87.stl +814 -0
  113. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_88.stl +814 -0
  114. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_89.stl +814 -0
  115. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_9.stl +422 -0
  116. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_90.stl +814 -0
  117. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_91.stl +814 -0
  118. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_92.stl +814 -0
  119. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_93.stl +814 -0
  120. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_94.stl +814 -0
  121. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_95.stl +814 -0
  122. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_96.stl +814 -0
  123. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_97.stl +814 -0
  124. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_98.stl +814 -0
  125. npxpy-0.1.0/docs/examples/example_stl_sweep/meshes/sweep_cylinders_99.stl +814 -0
  126. npxpy-0.1.0/docs/gds/GDSParser.md +4 -0
  127. npxpy-0.1.0/docs/howtocite/howtocite.md +0 -0
  128. npxpy-0.1.0/docs/images/favicon.ico +0 -0
  129. npxpy-0.1.0/docs/images/logo.png +0 -0
  130. npxpy-0.1.0/docs/images/logo.svg +224 -0
  131. npxpy-0.1.0/docs/index.md +185 -0
  132. npxpy-0.1.0/docs/nodes/Node.md +4 -0
  133. npxpy-0.1.0/docs/nodes/Project.md +4 -0
  134. npxpy-0.1.0/docs/nodes/aligners/CoarseAligner.md +4 -0
  135. npxpy-0.1.0/docs/nodes/aligners/EdgeAligner.md +4 -0
  136. npxpy-0.1.0/docs/nodes/aligners/FiberAligner.md +4 -0
  137. npxpy-0.1.0/docs/nodes/aligners/InterfaceAligner.md +4 -0
  138. npxpy-0.1.0/docs/nodes/aligners/MarkerAligner.md +4 -0
  139. npxpy-0.1.0/docs/nodes/misc/Capture.md +4 -0
  140. npxpy-0.1.0/docs/nodes/misc/DoseCompensation.md +4 -0
  141. npxpy-0.1.0/docs/nodes/misc/StageMove.md +4 -0
  142. npxpy-0.1.0/docs/nodes/misc/Wait.md +4 -0
  143. npxpy-0.1.0/docs/nodes/space/Array.md +4 -0
  144. npxpy-0.1.0/docs/nodes/space/Group.md +4 -0
  145. npxpy-0.1.0/docs/nodes/space/Scene.md +4 -0
  146. npxpy-0.1.0/docs/nodes/structures/Lens.md +4 -0
  147. npxpy-0.1.0/docs/nodes/structures/Structure.md +4 -0
  148. npxpy-0.1.0/docs/nodes/structures/Text.md +4 -0
  149. npxpy-0.1.0/docs/preset/Preset.md +4 -0
  150. npxpy-0.1.0/docs/resources/Image.md +4 -0
  151. npxpy-0.1.0/docs/resources/Mesh.md +4 -0
  152. npxpy-0.1.0/docs/resources/resources.md +4 -0
  153. npxpy-0.1.0/docs/stylesheets/extra.css +30 -0
  154. npxpy-0.1.0/docs/tutorials/gds_parsing.md +0 -0
  155. npxpy-0.1.0/docs/tutorials/node_viewport.md +0 -0
  156. npxpy-0.1.0/docs/tutorials/nodes.md +0 -0
  157. npxpy-0.1.0/docs/tutorials/resources_and_presets.md +0 -0
  158. npxpy-0.1.0/mkdocs.yml +120 -0
  159. npxpy-0.1.0/npxpy/__init__.py +57 -0
  160. npxpy-0.1.0/npxpy/_version.py +1 -0
  161. npxpy-0.1.0/npxpy/gds.py +1758 -0
  162. npxpy-0.1.0/npxpy/images/__init__.py +0 -0
  163. npxpy-0.1.0/npxpy/images/logo.png +0 -0
  164. npxpy-0.1.0/npxpy/nodes/__init__.py +0 -0
  165. npxpy-0.1.0/npxpy/nodes/_viewport_helpers.py +1100 -0
  166. npxpy-0.1.0/npxpy/nodes/aligners.py +1335 -0
  167. npxpy-0.1.0/npxpy/nodes/misc.py +412 -0
  168. npxpy-0.1.0/npxpy/nodes/node.py +794 -0
  169. npxpy-0.1.0/npxpy/nodes/project.py +235 -0
  170. npxpy-0.1.0/npxpy/nodes/space.py +375 -0
  171. npxpy-0.1.0/npxpy/nodes/structures.py +877 -0
  172. npxpy-0.1.0/npxpy/preset.py +470 -0
  173. npxpy-0.1.0/npxpy/resources.py +317 -0
  174. npxpy-0.1.0/npxpy.egg-info/PKG-INFO +229 -0
  175. npxpy-0.1.0/npxpy.egg-info/SOURCES.txt +199 -0
  176. npxpy-0.1.0/npxpy.egg-info/dependency_links.txt +1 -0
  177. npxpy-0.1.0/npxpy.egg-info/requires.txt +25 -0
  178. npxpy-0.1.0/npxpy.egg-info/top_level.txt +1 -0
  179. npxpy-0.1.0/pyproject.toml +79 -0
  180. npxpy-0.1.0/setup.cfg +4 -0
  181. npxpy-0.1.0/test_presets/25x_IP-Visio.toml +27 -0
  182. npxpy-0.1.0/test_presets/25x_IP-n162_anchorage_FuSi.toml +28 -0
  183. npxpy-0.1.0/test_presets/25x_IP-n162_speed.toml +27 -0
  184. npxpy-0.1.0/test_resources/5416ba193f0bacf1e37be08d5c249914/combined_file.stl +0 -0
  185. npxpy-0.1.0/test_resources/78eab7abd2cd201630ba30ed5a7ef4fc/markers.png +0 -0
  186. npxpy-0.1.0/tests/__init__.py +0 -0
  187. npxpy-0.1.0/tests/test_nodes.py +128 -0
  188. npxpy-0.1.0/tests/test_nodes_aligners.py +99 -0
  189. npxpy-0.1.0/tests/test_nodes_miscs.py +119 -0
  190. npxpy-0.1.0/tests/test_nodes_node.py +148 -0
  191. npxpy-0.1.0/tests/test_nodes_project.py +110 -0
  192. npxpy-0.1.0/tests/test_nodes_space.py +117 -0
  193. npxpy-0.1.0/tests/test_nodes_structures.py +107 -0
  194. npxpy-0.1.0/tests/test_preset.py +135 -0
  195. npxpy-0.1.0/tests/test_presets/25x_IP-Visio.toml +27 -0
  196. npxpy-0.1.0/tests/test_presets/25x_IP-n162_anchorage_FuSi.toml +28 -0
  197. npxpy-0.1.0/tests/test_presets/25x_IP-n162_speed.toml +27 -0
  198. npxpy-0.1.0/tests/test_resources/5416ba193f0bacf1e37be08d5c249914/combined_file.stl +0 -0
  199. npxpy-0.1.0/tests/test_resources/78eab7abd2cd201630ba30ed5a7ef4fc/markers.png +0 -0
  200. npxpy-0.1.0/tests/test_resources.py +139 -0
  201. npxpy-0.1.0/tests/test_temp_project.py +296 -0
@@ -0,0 +1,52 @@
1
+ name: Tag and publish Python package to PyPI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ build:
10
+ name: Build distribution
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ id-token: write
14
+ contents: write
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ persist-credentials: false
20
+ fetch-depth: 0
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.x"
25
+
26
+ - name: Python Semantic Release
27
+ uses: python-semantic-release/python-semantic-release@v9.21.0
28
+ with:
29
+ github_token: ${{ secrets.GITHUB_TOKEN }}
30
+
31
+ - name: Store the distribution packages
32
+ uses: actions/upload-artifact@v4
33
+ with:
34
+ name: python-package-distributions
35
+ path: dist/
36
+
37
+ publish-to-pypi:
38
+ name: Publish package to PyPI
39
+ needs:
40
+ - build
41
+ runs-on: ubuntu-latest
42
+ permissions:
43
+ id-token: write
44
+
45
+ steps:
46
+ - name: Download all the dists
47
+ uses: actions/download-artifact@v4
48
+ with:
49
+ name: python-package-distributions
50
+ path: dist/
51
+ - name: Publish package to PyPI
52
+ uses: pypa/gh-action-pypi-publish@release/v1
npxpy-0.1.0/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ *.nano
2
+ *.pyc
3
+ /npxpy.egg-info
4
+ adjusthashes.py
5
+ docs/images/desktop.ini
6
+ /.spyproject
7
+
npxpy-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Caghan Ünlüer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
npxpy-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,229 @@
1
+ Metadata-Version: 2.2
2
+ Name: npxpy
3
+ Version: 0.1.0
4
+ Summary: Python based open source text-only project preparation framework for Nanoscribe's two-photon 3D lithography system Quantum X align.
5
+ Author: Caghan Ünlüer, Simone Ferrari, Wolfram Pernice
6
+ Project-URL: Bug Tracker, https://github.com/cuenlueer/npxpy/issues
7
+ Project-URL: Source Code, https://github.com/cuenlueer/npxpy
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: Topic :: Scientific/Engineering
11
+ Classifier: Topic :: Scientific/Engineering :: Physics
12
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
13
+ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.7
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: License :: OSI Approved :: MIT License
21
+ Classifier: Operating System :: OS Independent
22
+ Requires-Python: >=3.7
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: pytomlpp
26
+ Requires-Dist: numpy-stl
27
+ Provides-Extra: all
28
+ Requires-Dist: pyvistaqt; extra == "all"
29
+ Requires-Dist: pyvista; extra == "all"
30
+ Requires-Dist: numpy; extra == "all"
31
+ Requires-Dist: PyQt5; extra == "all"
32
+ Requires-Dist: klayout; extra == "all"
33
+ Requires-Dist: shapely>=1.8.0; extra == "all"
34
+ Requires-Dist: trimesh[easy]; extra == "all"
35
+ Requires-Dist: pillow; extra == "all"
36
+ Provides-Extra: viewport
37
+ Requires-Dist: pyvistaqt; extra == "viewport"
38
+ Requires-Dist: pyvista; extra == "viewport"
39
+ Requires-Dist: numpy; extra == "viewport"
40
+ Requires-Dist: PyQt5; extra == "viewport"
41
+ Provides-Extra: gds
42
+ Requires-Dist: klayout; extra == "gds"
43
+ Requires-Dist: numpy; extra == "gds"
44
+ Requires-Dist: shapely>=1.8.0; extra == "gds"
45
+ Requires-Dist: trimesh[easy]; extra == "gds"
46
+ Requires-Dist: pillow; extra == "gds"
47
+
48
+ ![](docs/images/logo.svg)
49
+
50
+ [![semantic-release: conventional](https://img.shields.io/badge/semantic--release-conventional-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
51
+ # npxpy
52
+ npxpy is a versatile open source Python package that enables you to build projects (NANO files) for the 3D direct laser
53
+ lithography system **Nanoscribe Quantum X align** (**QXa**) via CLI/Scripts. It is designed such that it adheres to the
54
+ same workflow logic as Nanoscribe's GUI software *nanoPrintX*, making the application additionally user-friendly to
55
+ experienced users of the **QXa**.
56
+
57
+ ## Table of Contents
58
+ - [Installation](#installation)
59
+ - [Features and Usage](#usageandfeatures)
60
+ - [Documentation](#documentation)
61
+ - [How to Cite npxpy](#howtocitenpxpy)
62
+ - [License](#license)
63
+
64
+ ## Installation
65
+ You can install ```npxpy``` via ```pip``` together with all features (recommended) :
66
+ ```
67
+ pip install npxpy[all]
68
+ ```
69
+ It is recommended to install ```npxpy``` in a virtual environment to prevent dependency issues.
70
+ A more selective installation with respect to features like the 3D-viewport or GDS-parsing is possible as well by
71
+ exchanging ```[all]``` with ```[viewport]``` and ```[gds]```, respectively. If you are interested in a light-weight
72
+ installation you are able to install only the core features of ```npxpy``` via:
73
+ ```
74
+ pip install npxpy
75
+ ```
76
+ Beware that the light-weight installation lacks the other aforementioned features entirely.
77
+
78
+ ## Features and Usage
79
+ Straightforward print project preparation with usual workflow logic is embeded in the Python-software ecosystem
80
+ with extras like GDS-parsing for high workflow integration.
81
+ ```python
82
+ >>> import npxpy
83
+ >>> # Initialize the presets and resources that you want to use in this project.
84
+ >>> # You can either load presets directly from a .toml...
85
+ >>> preset_from_file = npxpy.Preset.load_single(file_path="preset_from_file.toml")
86
+ >>>
87
+ >>> # ... or initialize it inside of your script.
88
+ >>> edit_presets = {
89
+ ... "writing_speed": 220000.0,
90
+ ... "writing_power": 50.0,
91
+ ... "slicing_spacing": 0.8,
92
+ ... "hatching_spacing": 0.3,
93
+ ... "hatching_angle": 0.0,
94
+ ... "hatching_angle_increment": 0.0,
95
+ ... "hatching_offset": 0.0,
96
+ ... "hatching_offset_increment": 0.0,
97
+ ... "hatching_back_n_forth": True,
98
+ ... "mesh_z_offset": 0.0,
99
+ ... }
100
+ >>>
101
+ >>> preset_from_args = npxpy.Preset(name="preset_from_args", **edit_presets)
102
+ >>>
103
+ >>> # Load your resources simply via path to their directories.
104
+ >>> stl_mesh = npxpy.Mesh(file_path="./example_mesh.stl", name="stl_structure")
105
+ >>> marker = npxpy.Image(file_path="./example_marker.png", name="marker_image")
106
+ >>>
107
+ >>> # Initialize your project and load your presets and resources into it.
108
+ >>> project = npxpy.Project(objective="25x", resin="IP-n162", substrate="FuSi")
109
+ >>> project.load_presets(preset_from_file, preset_from_args)
110
+ >>> project.load_resources(stl_mesh, marker)
111
+ >>>
112
+ >>> # Prepare the nodes of your project as usual.
113
+ >>> # Setup alignment nodes
114
+ >>> coarse_aligner = npxpy.CoarseAligner(residual_threshold=8)
115
+ >>> marker_aligner = npxpy.MarkerAligner(
116
+ ... name="Marker Aligner", image=marker, marker_size=[10, 10]
117
+ ... )
118
+ >>>
119
+ >>> # Set anchors manually...
120
+ >>> ca_positions = [
121
+ ... [200.0, 200.0, 0.0],
122
+ ... [200.0, -200.0, 0.0],
123
+ ... [-200.0, -200.0, 0.0],
124
+ ... [-200.0, 200.0, 0.0],
125
+ ... ]
126
+ >>>
127
+ ma_positions = [
128
+ ... [0, 200, 0.33],
129
+ ... [200, 0, 0.33],
130
+ ... [0, -200, 0.33],
131
+ ... [-200, 0, 0.33],
132
+ ... ]
133
+ >>>
134
+ >>> coarse_aligner.set_coarse_anchors_at(ca_positions)
135
+ >>> marker_aligner.set_markers_at(ma_positions)
136
+ >>>
137
+ >>> # ... or incorporate them in a GDS-design and read them in.
138
+ >>> gds = npxpy.gds.GDSParser("gds_file.gds")
139
+ >>>
140
+ >>> interface_aligner = gds.get_custom_interface_aligner(
141
+ ... cell_name="cell_with_print_scene",
142
+ ... interface_layer=(1, 0),
143
+ ... signal_type="reflection",
144
+ ... detector_type="confocal",
145
+ ... area_measurement=True,
146
+ ... measure_tilt=True,
147
+ ... )
148
+ >>>
149
+ >>> # Initialize printing scene
150
+ >>> scene = npxpy.Scene(name="scene", writing_direction_upward=True)
151
+ >>>
152
+ >>> # Initialize structure with desired preset and mesh defined above.
153
+ >>> structure = npxpy.Structure(
154
+ ... name="structure", preset=preset_from_file, mesh=stl_mesh
155
+ ... )
156
+ >>>
157
+ >>> # Arrange hierarchy of all nodes as desired either with .add_child()...
158
+ >>> coarse_aligner.add_child(scene.add_child(interface_aligner))
159
+ >>>
160
+ >>> # ...or more conveniently by using .append_node() to append
161
+ >>> # consecutively to the lowest node.
162
+ >>> scene.append_node(marker_aligner, structure)
163
+ >>>
164
+ >>> # Eventually, add all highest-order nodes of interest
165
+ >>> # (here only coarse_aligner) to project.
166
+ >>> project.add_child(coarse_aligner)
167
+ >>>
168
+ >>> # After allocating your nodes, you can copy, manipulate and add additional
169
+ >>> # instances as you like.
170
+ >>> scene_1 = scene.deepcopy_node(copy_children=True)
171
+ >>> scene_1.name = "scene_1"
172
+ >>> scene_1.translate([254.0, 300.0, 0.0])
173
+ >>>
174
+ >>> # You can access descendants/ancestors as you go via semantically ordered lists.
175
+ >>> structure_1 = scene_1.all_descendants[-1]
176
+ >>> structure_1.preset = preset_from_args
177
+ >>> structure_1.name = "structure_1"
178
+ >>>
179
+ >>> coarse_aligner.add_child(scene_1)
180
+ >>>
181
+ >>> # Checking the node order can be done as well
182
+ >>> project.tree()
183
+ ```
184
+ ```
185
+ Project (project)
186
+ └──Coarse aligner (coarse_alignment)
187
+ ├──scene (scene)
188
+ │ └──cell_with_print_scene(1, 0) (interface_alignment)
189
+ │ └──Marker Aligner (marker_alignment)
190
+ │ └──structure (structure)
191
+ └──scene_1 (scene)
192
+ └──cell_with_print_scene(1, 0) (interface_alignment)
193
+ └──Marker Aligner (marker_alignment)
194
+ └──structure_1 (structure)
195
+ ```
196
+ ```python
197
+ >>> # Export your project to a .nano-file.
198
+ >>> project.nano(project_name="my_project")
199
+ ```
200
+ Features like a viewport based on ```pyvistaqt``` are also available for keeping track of your project visually as well.
201
+ ```python
202
+ >>> viewport = project.viewport()
203
+ ```
204
+ ![](docs/examples/example_README/example0_viewport.png)
205
+
206
+ ## [Documentation](heregoesthelink!)
207
+ To view more functionalities and use case examples of npxpy, refer to the the provided [documentation](heregoesthelink!).
208
+
209
+ ## License
210
+
211
+ This project is licensed under the MIT License - see the [LICENSE](https://github.com/cuenlueer/nanoAPI/blob/main/LICENSE)
212
+ file for details.
213
+ **TL;DR:** You may use, modify, and distribute this software freely, provided the license and copyright notice are included.
214
+ ### What This Means for Users and Contributors
215
+
216
+ - **Freedom to Use:** You are free to use this software in any project (commercial, personal, or otherwise) without
217
+ restrictions, as long as the MIT License terms are met.
218
+
219
+ - **Modifications and Derivatives:** You may modify the code, create derivative works, and distribute them under any
220
+ license of your choice. The only requirements are:
221
+ - Include the original MIT License and copyright notice with your distribution.
222
+ - Clearly state any significant changes made to the original code.
223
+ - **Linking and Distribution:** You may link this software with proprietary code or other open-source projects without
224
+ restrictions. No obligations apply to the proprietary components of your project.
225
+
226
+ - **Contribution:** By contributing to this project, you agree that your contributions will be licensed under the
227
+ MIT License. This ensures your changes remain freely usable by others under the same terms.
228
+
229
+ For more details on your rights and responsibilities under this license, please review the [LICENSE](https://github.com/cuenlueer/nanoAPI/blob/main/LICENSE) file.
npxpy-0.1.0/README.md ADDED
@@ -0,0 +1,182 @@
1
+ ![](docs/images/logo.svg)
2
+
3
+ [![semantic-release: conventional](https://img.shields.io/badge/semantic--release-conventional-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
4
+ # npxpy
5
+ npxpy is a versatile open source Python package that enables you to build projects (NANO files) for the 3D direct laser
6
+ lithography system **Nanoscribe Quantum X align** (**QXa**) via CLI/Scripts. It is designed such that it adheres to the
7
+ same workflow logic as Nanoscribe's GUI software *nanoPrintX*, making the application additionally user-friendly to
8
+ experienced users of the **QXa**.
9
+
10
+ ## Table of Contents
11
+ - [Installation](#installation)
12
+ - [Features and Usage](#usageandfeatures)
13
+ - [Documentation](#documentation)
14
+ - [How to Cite npxpy](#howtocitenpxpy)
15
+ - [License](#license)
16
+
17
+ ## Installation
18
+ You can install ```npxpy``` via ```pip``` together with all features (recommended) :
19
+ ```
20
+ pip install npxpy[all]
21
+ ```
22
+ It is recommended to install ```npxpy``` in a virtual environment to prevent dependency issues.
23
+ A more selective installation with respect to features like the 3D-viewport or GDS-parsing is possible as well by
24
+ exchanging ```[all]``` with ```[viewport]``` and ```[gds]```, respectively. If you are interested in a light-weight
25
+ installation you are able to install only the core features of ```npxpy``` via:
26
+ ```
27
+ pip install npxpy
28
+ ```
29
+ Beware that the light-weight installation lacks the other aforementioned features entirely.
30
+
31
+ ## Features and Usage
32
+ Straightforward print project preparation with usual workflow logic is embeded in the Python-software ecosystem
33
+ with extras like GDS-parsing for high workflow integration.
34
+ ```python
35
+ >>> import npxpy
36
+ >>> # Initialize the presets and resources that you want to use in this project.
37
+ >>> # You can either load presets directly from a .toml...
38
+ >>> preset_from_file = npxpy.Preset.load_single(file_path="preset_from_file.toml")
39
+ >>>
40
+ >>> # ... or initialize it inside of your script.
41
+ >>> edit_presets = {
42
+ ... "writing_speed": 220000.0,
43
+ ... "writing_power": 50.0,
44
+ ... "slicing_spacing": 0.8,
45
+ ... "hatching_spacing": 0.3,
46
+ ... "hatching_angle": 0.0,
47
+ ... "hatching_angle_increment": 0.0,
48
+ ... "hatching_offset": 0.0,
49
+ ... "hatching_offset_increment": 0.0,
50
+ ... "hatching_back_n_forth": True,
51
+ ... "mesh_z_offset": 0.0,
52
+ ... }
53
+ >>>
54
+ >>> preset_from_args = npxpy.Preset(name="preset_from_args", **edit_presets)
55
+ >>>
56
+ >>> # Load your resources simply via path to their directories.
57
+ >>> stl_mesh = npxpy.Mesh(file_path="./example_mesh.stl", name="stl_structure")
58
+ >>> marker = npxpy.Image(file_path="./example_marker.png", name="marker_image")
59
+ >>>
60
+ >>> # Initialize your project and load your presets and resources into it.
61
+ >>> project = npxpy.Project(objective="25x", resin="IP-n162", substrate="FuSi")
62
+ >>> project.load_presets(preset_from_file, preset_from_args)
63
+ >>> project.load_resources(stl_mesh, marker)
64
+ >>>
65
+ >>> # Prepare the nodes of your project as usual.
66
+ >>> # Setup alignment nodes
67
+ >>> coarse_aligner = npxpy.CoarseAligner(residual_threshold=8)
68
+ >>> marker_aligner = npxpy.MarkerAligner(
69
+ ... name="Marker Aligner", image=marker, marker_size=[10, 10]
70
+ ... )
71
+ >>>
72
+ >>> # Set anchors manually...
73
+ >>> ca_positions = [
74
+ ... [200.0, 200.0, 0.0],
75
+ ... [200.0, -200.0, 0.0],
76
+ ... [-200.0, -200.0, 0.0],
77
+ ... [-200.0, 200.0, 0.0],
78
+ ... ]
79
+ >>>
80
+ ma_positions = [
81
+ ... [0, 200, 0.33],
82
+ ... [200, 0, 0.33],
83
+ ... [0, -200, 0.33],
84
+ ... [-200, 0, 0.33],
85
+ ... ]
86
+ >>>
87
+ >>> coarse_aligner.set_coarse_anchors_at(ca_positions)
88
+ >>> marker_aligner.set_markers_at(ma_positions)
89
+ >>>
90
+ >>> # ... or incorporate them in a GDS-design and read them in.
91
+ >>> gds = npxpy.gds.GDSParser("gds_file.gds")
92
+ >>>
93
+ >>> interface_aligner = gds.get_custom_interface_aligner(
94
+ ... cell_name="cell_with_print_scene",
95
+ ... interface_layer=(1, 0),
96
+ ... signal_type="reflection",
97
+ ... detector_type="confocal",
98
+ ... area_measurement=True,
99
+ ... measure_tilt=True,
100
+ ... )
101
+ >>>
102
+ >>> # Initialize printing scene
103
+ >>> scene = npxpy.Scene(name="scene", writing_direction_upward=True)
104
+ >>>
105
+ >>> # Initialize structure with desired preset and mesh defined above.
106
+ >>> structure = npxpy.Structure(
107
+ ... name="structure", preset=preset_from_file, mesh=stl_mesh
108
+ ... )
109
+ >>>
110
+ >>> # Arrange hierarchy of all nodes as desired either with .add_child()...
111
+ >>> coarse_aligner.add_child(scene.add_child(interface_aligner))
112
+ >>>
113
+ >>> # ...or more conveniently by using .append_node() to append
114
+ >>> # consecutively to the lowest node.
115
+ >>> scene.append_node(marker_aligner, structure)
116
+ >>>
117
+ >>> # Eventually, add all highest-order nodes of interest
118
+ >>> # (here only coarse_aligner) to project.
119
+ >>> project.add_child(coarse_aligner)
120
+ >>>
121
+ >>> # After allocating your nodes, you can copy, manipulate and add additional
122
+ >>> # instances as you like.
123
+ >>> scene_1 = scene.deepcopy_node(copy_children=True)
124
+ >>> scene_1.name = "scene_1"
125
+ >>> scene_1.translate([254.0, 300.0, 0.0])
126
+ >>>
127
+ >>> # You can access descendants/ancestors as you go via semantically ordered lists.
128
+ >>> structure_1 = scene_1.all_descendants[-1]
129
+ >>> structure_1.preset = preset_from_args
130
+ >>> structure_1.name = "structure_1"
131
+ >>>
132
+ >>> coarse_aligner.add_child(scene_1)
133
+ >>>
134
+ >>> # Checking the node order can be done as well
135
+ >>> project.tree()
136
+ ```
137
+ ```
138
+ Project (project)
139
+ └──Coarse aligner (coarse_alignment)
140
+ ├──scene (scene)
141
+ │ └──cell_with_print_scene(1, 0) (interface_alignment)
142
+ │ └──Marker Aligner (marker_alignment)
143
+ │ └──structure (structure)
144
+ └──scene_1 (scene)
145
+ └──cell_with_print_scene(1, 0) (interface_alignment)
146
+ └──Marker Aligner (marker_alignment)
147
+ └──structure_1 (structure)
148
+ ```
149
+ ```python
150
+ >>> # Export your project to a .nano-file.
151
+ >>> project.nano(project_name="my_project")
152
+ ```
153
+ Features like a viewport based on ```pyvistaqt``` are also available for keeping track of your project visually as well.
154
+ ```python
155
+ >>> viewport = project.viewport()
156
+ ```
157
+ ![](docs/examples/example_README/example0_viewport.png)
158
+
159
+ ## [Documentation](heregoesthelink!)
160
+ To view more functionalities and use case examples of npxpy, refer to the the provided [documentation](heregoesthelink!).
161
+
162
+ ## License
163
+
164
+ This project is licensed under the MIT License - see the [LICENSE](https://github.com/cuenlueer/nanoAPI/blob/main/LICENSE)
165
+ file for details.
166
+ **TL;DR:** You may use, modify, and distribute this software freely, provided the license and copyright notice are included.
167
+ ### What This Means for Users and Contributors
168
+
169
+ - **Freedom to Use:** You are free to use this software in any project (commercial, personal, or otherwise) without
170
+ restrictions, as long as the MIT License terms are met.
171
+
172
+ - **Modifications and Derivatives:** You may modify the code, create derivative works, and distribute them under any
173
+ license of your choice. The only requirements are:
174
+ - Include the original MIT License and copyright notice with your distribution.
175
+ - Clearly state any significant changes made to the original code.
176
+ - **Linking and Distribution:** You may link this software with proprietary code or other open-source projects without
177
+ restrictions. No obligations apply to the proprietary components of your project.
178
+
179
+ - **Contribution:** By contributing to this project, you agree that your contributions will be licensed under the
180
+ MIT License. This ensures your changes remain freely usable by others under the same terms.
181
+
182
+ For more details on your rights and responsibilities under this license, please review the [LICENSE](https://github.com/cuenlueer/nanoAPI/blob/main/LICENSE) file.
@@ -0,0 +1,105 @@
1
+ import npxpy
2
+
3
+ # Initialize the presets and resources that you want to use in this project.
4
+ # You can either load presets directly from a .toml...
5
+ preset_from_file = npxpy.Preset.load_single(file_path="preset_from_file.toml")
6
+
7
+ # ... or initialize it inside of your script.
8
+ edit_presets = {
9
+ "writing_speed": 220000.0,
10
+ "writing_power": 50.0,
11
+ "slicing_spacing": 0.8,
12
+ "hatching_spacing": 0.3,
13
+ "hatching_angle": 0.0,
14
+ "hatching_angle_increment": 0.0,
15
+ "hatching_offset": 0.0,
16
+ "hatching_offset_increment": 0.0,
17
+ "hatching_back_n_forth": True,
18
+ "mesh_z_offset": 0.0,
19
+ }
20
+
21
+ preset_from_args = npxpy.Preset(name="preset_from_args", **edit_presets)
22
+
23
+ # Load your resources simply via path to their directories.
24
+ stl_mesh = npxpy.Mesh(file_path="./example_mesh.stl", name="stl_structure")
25
+ marker = npxpy.Image(file_path="./example_marker.png", name="marker_image")
26
+
27
+ # Initialize your project and load your presets and resources into it.
28
+ project = npxpy.Project(objective="25x", resin="IP-n162", substrate="FuSi")
29
+ project.load_presets(preset_from_file, preset_from_args)
30
+ project.load_resources(stl_mesh, marker)
31
+
32
+ # Prepare the nodes of your project as usual.
33
+ # Setup alignment nodes
34
+ coarse_aligner = npxpy.CoarseAligner(residual_threshold=8)
35
+ marker_aligner = npxpy.MarkerAligner(
36
+ name="Marker Aligner", image=marker, marker_size=[10, 10]
37
+ )
38
+
39
+ # Set anchors manually...
40
+ ca_positions = [
41
+ [200.0, 200.0, 0.0],
42
+ [200.0, -200.0, 0.0],
43
+ [-200.0, -200.0, 0.0],
44
+ [-200.0, 200.0, 0.0],
45
+ ]
46
+
47
+ ma_positions = [
48
+ [0, 200, 0.33],
49
+ [200, 0, 0.33],
50
+ [0, -200, 0.33],
51
+ [-200, 0, 0.33],
52
+ ]
53
+
54
+ coarse_aligner.set_coarse_anchors_at(ca_positions)
55
+ marker_aligner.set_markers_at(ma_positions)
56
+
57
+ # ... or incorporate them in a GDS-design and read them in.
58
+ gds = npxpy.gds.GDSParser("gds_file.gds")
59
+
60
+ interface_aligner = gds.get_custom_interface_aligner(
61
+ cell_name="cell_with_print_scene",
62
+ interface_layer=(1, 0),
63
+ signal_type="reflection",
64
+ detector_type="confocal",
65
+ area_measurement=True,
66
+ measure_tilt=True,
67
+ )
68
+
69
+ # Initiale printing scene
70
+ scene = npxpy.Scene(name="scene", writing_direction_upward=True)
71
+
72
+ # Initialize structure with desired preset and mesh defined above.
73
+ structure = npxpy.Structure(
74
+ name="structure", preset=preset_from_file, mesh=stl_mesh
75
+ )
76
+
77
+ # Arrange hierarchy of all nodes as desired either with .add_child()...
78
+ coarse_aligner.add_child(scene.add_child(interface_aligner))
79
+
80
+ # ...or more conveniently by using .append_node() to append
81
+ # consecutively to the lowest node.
82
+ scene.append_node(marker_aligner, structure)
83
+
84
+ # Eventually, add all highest-order nodes of interest
85
+ # (here only coarse_aligner) to project.
86
+ project.add_child(coarse_aligner)
87
+
88
+ # After allocating your nodes, you can copy, manipulate and add additional
89
+ # instances as you like.
90
+ scene_1 = scene.deepcopy_node(copy_children=True)
91
+ scene_1.name = "scene_1"
92
+ scene_1.translate([254.0, 300.0, 0.0])
93
+
94
+ # You can access descendants/ancestors as you go via semantically ordered lists.
95
+ structure_1 = scene_1.all_descendants[-1]
96
+ structure_1.preset = preset_from_args
97
+ structure_1.name = "structure_1"
98
+
99
+ coarse_aligner.add_child(scene_1)
100
+
101
+ # Checking the node order can be done as well
102
+ project.tree()
103
+
104
+ # Export your project to a .nano-file.
105
+ project.nano(project_name="my_project")
@@ -0,0 +1,23 @@
1
+ valid_objectives = [
2
+ "25x",
3
+ ]
4
+ valid_resins = [
5
+ "IP-n162",
6
+ ]
7
+ valid_substrates = [
8
+ "*",
9
+ ]
10
+ writing_speed = 250000.0
11
+ writing_power = 50.0
12
+ slicing_spacing = 0.8
13
+ hatching_spacing = 0.3
14
+ hatching_angle = 0.0
15
+ hatching_angle_increment = 0.0
16
+ hatching_offset = 0.0
17
+ hatching_offset_increment = 0.0
18
+ hatching_back_n_forth = true
19
+ mesh_z_offset = 0.0
20
+ grayscale_multilayer_enabled = false
21
+ grayscale_layer_profile_nr_layers = 6.0
22
+ grayscale_writing_power_minimum = 0.0
23
+ grayscale_exponent = 1.0
@@ -0,0 +1,27 @@
1
+ format = "2.34+hotfix1"
2
+ version = 1
3
+ valid_objectives = [
4
+ "25x",
5
+ ]
6
+ valid_resins = [
7
+ "IP-n162",
8
+ ]
9
+ valid_substrates = [
10
+ "*",
11
+ ]
12
+ writing_speed = 250000.0
13
+ writing_power = 40.0
14
+ slicing_spacing = 0.2
15
+ hatching_spacing = 0.3
16
+ hatching_angle = 0.0
17
+ hatching_angle_increment = 137.508
18
+ hatching_offset = 0.0
19
+ hatching_offset_increment = 0.0
20
+ hatching_back_n_forth = true
21
+ mesh_z_offset = 0.0
22
+ grayscale_multilayer_enabled = false
23
+ grayscale_layer_profile_nr_layers = 6.0
24
+ grayscale_writing_power_minimum = 0.0
25
+ grayscale_exponent = 1.0
26
+
27
+ [properties]