objutils 0.10.16__tar.gz → 0.10.18__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 (280) hide show
  1. objutils-0.10.18/.idea/objutils@1.iml +11 -0
  2. {objutils-0.10.16 → objutils-0.10.18}/PKG-INFO +1 -1
  3. {objutils-0.10.16 → objutils-0.10.18}/docs/howto.rst +76 -0
  4. {objutils-0.10.16 → objutils-0.10.18}/docs/session.rst +68 -0
  5. {objutils-0.10.16 → objutils-0.10.18}/docs/tutorial.rst +144 -8
  6. {objutils-0.10.16 → objutils-0.10.18}/objutils/__init__.py +1 -1
  7. {objutils-0.10.16 → objutils-0.10.18}/objutils/image.py +58 -12
  8. {objutils-0.10.16 → objutils-0.10.18}/objutils/section.py +271 -17
  9. objutils-0.10.18/objutils/tests/test_asam_alternate_modes.py +867 -0
  10. objutils-0.10.18/objutils/tests/test_extended.py +56 -0
  11. objutils-0.10.18/objutils/tests/test_pdb_typeinfo_dump.py +126 -0
  12. objutils-0.10.18/objutils/tests/test_probe_uniqueness.py +71 -0
  13. {objutils-0.10.16 → objutils-0.10.18}/objutils/version.py +1 -1
  14. {objutils-0.10.16 → objutils-0.10.18}/poetry.lock +124 -129
  15. {objutils-0.10.16 → objutils-0.10.18}/pyproject.toml +2 -2
  16. {objutils-0.10.16 → objutils-0.10.18}/.clang-format +0 -0
  17. {objutils-0.10.16 → objutils-0.10.18}/.codacy.yml +0 -0
  18. {objutils-0.10.16 → objutils-0.10.18}/.codeclimate.yml +0 -0
  19. {objutils-0.10.16 → objutils-0.10.18}/.coveralls.yml +0 -0
  20. {objutils-0.10.16 → objutils-0.10.18}/.github/FUNDING.yml +0 -0
  21. {objutils-0.10.16 → objutils-0.10.18}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  22. {objutils-0.10.16 → objutils-0.10.18}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  23. {objutils-0.10.16 → objutils-0.10.18}/.github/ISSUE_TEMPLATE/documentation.yml +0 -0
  24. {objutils-0.10.16 → objutils-0.10.18}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  25. {objutils-0.10.16 → objutils-0.10.18}/.github/ISSUE_TEMPLATE.md +0 -0
  26. {objutils-0.10.16 → objutils-0.10.18}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  27. {objutils-0.10.16 → objutils-0.10.18}/.github/copilot-instructions.md +0 -0
  28. {objutils-0.10.16 → objutils-0.10.18}/.github/workflows/pythonapp.yml +0 -0
  29. {objutils-0.10.16 → objutils-0.10.18}/.gitignore +0 -0
  30. {objutils-0.10.16 → objutils-0.10.18}/.idea/.gitignore +0 -0
  31. {objutils-0.10.16 → objutils-0.10.18}/.idea/copilot.data.migration.ask2agent.xml +0 -0
  32. {objutils-0.10.16 → objutils-0.10.18}/.idea/deployment.xml +0 -0
  33. {objutils-0.10.16 → objutils-0.10.18}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  34. {objutils-0.10.16 → objutils-0.10.18}/.idea/misc.xml +0 -0
  35. {objutils-0.10.16 → objutils-0.10.18}/.idea/modules.xml +0 -0
  36. {objutils-0.10.16 → objutils-0.10.18}/.idea/pyLspTools.xml +0 -0
  37. {objutils-0.10.16 → objutils-0.10.18}/.idea/pyProjectModel.xml +0 -0
  38. {objutils-0.10.16 → objutils-0.10.18}/.idea/vcs.xml +0 -0
  39. {objutils-0.10.16 → objutils-0.10.18}/.pre-commit-config.yaml +0 -0
  40. {objutils-0.10.16 → objutils-0.10.18}/.pylintrc +0 -0
  41. {objutils-0.10.16 → objutils-0.10.18}/.readthedocs.yml +0 -0
  42. {objutils-0.10.16 → objutils-0.10.18}/.travis.yml +0 -0
  43. {objutils-0.10.16 → objutils-0.10.18}/CMakeLists.txt +0 -0
  44. {objutils-0.10.16 → objutils-0.10.18}/CODE_OF_CONDUCT.md +0 -0
  45. {objutils-0.10.16 → objutils-0.10.18}/CONTRIBUTORS +0 -0
  46. {objutils-0.10.16 → objutils-0.10.18}/LICENSE +0 -0
  47. {objutils-0.10.16 → objutils-0.10.18}/MANIFEST.in +0 -0
  48. {objutils-0.10.16 → objutils-0.10.18}/PULL_REQUEST_TEMPLATE.md +0 -0
  49. {objutils-0.10.16 → objutils-0.10.18}/appveyor.yml +0 -0
  50. {objutils-0.10.16 → objutils-0.10.18}/bandit.yml +0 -0
  51. {objutils-0.10.16 → objutils-0.10.18}/docs/Data_Formats.pdf +0 -0
  52. {objutils-0.10.16 → objutils-0.10.18}/docs/ELF_Format.pdf +0 -0
  53. {objutils-0.10.16 → objutils-0.10.18}/docs/KNOWN_GOOD_DWARF_REFERENCE.md +0 -0
  54. {objutils-0.10.16 → objutils-0.10.18}/docs/README.rst +0 -0
  55. {objutils-0.10.16 → objutils-0.10.18}/docs/apidoc.sh +0 -0
  56. {objutils-0.10.16 → objutils-0.10.18}/docs/conf.py +0 -0
  57. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.buildinfo +0 -0
  58. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.buildinfo.bak +0 -0
  59. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/README.doctree +0 -0
  60. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/environment.pickle +0 -0
  61. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/howto.doctree +0 -0
  62. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/index.doctree +0 -0
  63. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/installation.doctree +0 -0
  64. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/modules.doctree +0 -0
  65. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/objutils.doctree +0 -0
  66. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/objutils.elf.doctree +0 -0
  67. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/scripts.doctree +0 -0
  68. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/session.doctree +0 -0
  69. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/.doctrees/tutorial.doctree +0 -0
  70. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/README.html +0 -0
  71. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_images/objutils_basic.png +0 -0
  72. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/index.html +0 -0
  73. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/ash.html +0 -0
  74. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/binfile.html +0 -0
  75. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/checksums.html +0 -0
  76. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/cosmac.html +0 -0
  77. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/elf/defs.html +0 -0
  78. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/elf.html +0 -0
  79. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/emon52.html +0 -0
  80. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/etek.html +0 -0
  81. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/exceptions.html +0 -0
  82. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/fpc.html +0 -0
  83. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/hexdump.html +0 -0
  84. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/hexfile.html +0 -0
  85. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/ihex.html +0 -0
  86. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/image.html +0 -0
  87. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/logger.html +0 -0
  88. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/mostec.html +0 -0
  89. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/pickleif.html +0 -0
  90. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/rca.html +0 -0
  91. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/readers.html +0 -0
  92. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/registry.html +0 -0
  93. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/section.html +0 -0
  94. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/sig.html +0 -0
  95. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/srec.html +0 -0
  96. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/tek.html +0 -0
  97. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/titxt.html +0 -0
  98. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils/utils.html +0 -0
  99. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_modules/objutils.html +0 -0
  100. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/README.rst.txt +0 -0
  101. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/howto.rst.txt +0 -0
  102. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/index.rst.txt +0 -0
  103. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/installation.rst.txt +0 -0
  104. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/modules.rst.txt +0 -0
  105. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/objutils.elf.rst.txt +0 -0
  106. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/objutils.rst.txt +0 -0
  107. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/scripts.rst.txt +0 -0
  108. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/session.rst.txt +0 -0
  109. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_sources/tutorial.rst.txt +0 -0
  110. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/alabaster.css +0 -0
  111. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/basic.css +0 -0
  112. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/check-solid.svg +0 -0
  113. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/clipboard.min.js +0 -0
  114. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/copy-button.svg +0 -0
  115. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/copybutton.css +0 -0
  116. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/copybutton.js +0 -0
  117. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/copybutton_funcs.js +0 -0
  118. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/custom.css +0 -0
  119. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/doctools.js +0 -0
  120. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/documentation_options.js +0 -0
  121. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/file.png +0 -0
  122. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/github-banner.svg +0 -0
  123. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/language_data.js +0 -0
  124. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/minus.png +0 -0
  125. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/plus.png +0 -0
  126. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/pygments.css +0 -0
  127. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/scripts/bootstrap.js +0 -0
  128. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/scripts/bootstrap.js.LICENSE.txt +0 -0
  129. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/scripts/fontawesome.js +0 -0
  130. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/scripts/fontawesome.js.LICENSE.txt +0 -0
  131. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/scripts/pydata-sphinx-theme.js +0 -0
  132. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/searchtools.js +0 -0
  133. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/sphinx_highlight.js +0 -0
  134. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/styles/pydata-sphinx-theme.css +0 -0
  135. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/styles/theme.css +0 -0
  136. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  137. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  138. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  139. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  140. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  141. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  142. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/_static/webpack-macros.html +0 -0
  143. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/genindex.html +0 -0
  144. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/howto.html +0 -0
  145. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/index.html +0 -0
  146. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/installation.html +0 -0
  147. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/modules.html +0 -0
  148. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/objects.inv +0 -0
  149. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/objutils.elf.html +0 -0
  150. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/objutils.html +0 -0
  151. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/py-modindex.html +0 -0
  152. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/scripts.html +0 -0
  153. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/search.html +0 -0
  154. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/searchindex.js +0 -0
  155. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/session.html +0 -0
  156. {objutils-0.10.16 → objutils-0.10.18}/docs/docs/_build/html/tutorial.html +0 -0
  157. {objutils-0.10.16 → objutils-0.10.18}/docs/elf-64-gen.pdf +0 -0
  158. {objutils-0.10.16 → objutils-0.10.18}/docs/example0.srec +0 -0
  159. {objutils-0.10.16 → objutils-0.10.18}/docs/index.rst +0 -0
  160. {objutils-0.10.16 → objutils-0.10.18}/docs/installation.rst +0 -0
  161. {objutils-0.10.16 → objutils-0.10.18}/docs/make.bat +0 -0
  162. {objutils-0.10.16 → objutils-0.10.18}/docs/modules.rst +0 -0
  163. {objutils-0.10.16 → objutils-0.10.18}/docs/objutils.elf.rst +0 -0
  164. {objutils-0.10.16 → objutils-0.10.18}/docs/objutils.rst +0 -0
  165. {objutils-0.10.16 → objutils-0.10.18}/docs/objutils_banner.png +0 -0
  166. {objutils-0.10.16 → objutils-0.10.18}/docs/objutils_basic.png +0 -0
  167. {objutils-0.10.16 → objutils-0.10.18}/docs/objutils_dark.jpg +0 -0
  168. {objutils-0.10.16 → objutils-0.10.18}/docs/objutils_social.jpg +0 -0
  169. {objutils-0.10.16 → objutils-0.10.18}/docs/requirements.txt +0 -0
  170. {objutils-0.10.16 → objutils-0.10.18}/docs/scripts.rst +0 -0
  171. {objutils-0.10.16 → objutils-0.10.18}/docs/tutorial1.ipynb +0 -0
  172. {objutils-0.10.16 → objutils-0.10.18}/objutils/.coveragerc +0 -0
  173. {objutils-0.10.16 → objutils-0.10.18}/objutils/.vscode/launch.json +0 -0
  174. {objutils-0.10.16 → objutils-0.10.18}/objutils/.vscode/settings.json +0 -0
  175. {objutils-0.10.16 → objutils-0.10.18}/objutils/a2l_test.shf +0 -0
  176. {objutils-0.10.16 → objutils-0.10.18}/objutils/ash.py +0 -0
  177. {objutils-0.10.16 → objutils-0.10.18}/objutils/binfile.py +0 -0
  178. {objutils-0.10.16 → objutils-0.10.18}/objutils/checksums.py +0 -0
  179. {objutils-0.10.16 → objutils-0.10.18}/objutils/cosmac.py +0 -0
  180. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/__init__.py +0 -0
  181. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/attrparser.py +0 -0
  182. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/c_generator.py +0 -0
  183. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/constants.py +0 -0
  184. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/encoding.py +0 -0
  185. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/lineprog.py +0 -0
  186. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/readers.py +0 -0
  187. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/sm.py +0 -0
  188. {objutils-0.10.16 → objutils-0.10.18}/objutils/dwarf/traverser.py +0 -0
  189. {objutils-0.10.16 → objutils-0.10.18}/objutils/elf/__init__.py +0 -0
  190. {objutils-0.10.16 → objutils-0.10.18}/objutils/elf/arm/__init__.py +0 -0
  191. {objutils-0.10.16 → objutils-0.10.18}/objutils/elf/arm/attributes.py +0 -0
  192. {objutils-0.10.16 → objutils-0.10.18}/objutils/elf/defs.py +0 -0
  193. {objutils-0.10.16 → objutils-0.10.18}/objutils/elf/model.py +0 -0
  194. {objutils-0.10.16 → objutils-0.10.18}/objutils/emon52.py +0 -0
  195. {objutils-0.10.16 → objutils-0.10.18}/objutils/etek.py +0 -0
  196. {objutils-0.10.16 → objutils-0.10.18}/objutils/exceptions.py +0 -0
  197. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/__init__.py +0 -0
  198. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/ctre.hpp +0 -0
  199. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/difflib.h +0 -0
  200. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/elf_parser.cpp +0 -0
  201. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/elf_parser.hpp +0 -0
  202. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/exceptions.cpp +0 -0
  203. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/exceptions.hpp +0 -0
  204. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/hexfile.cpp +0 -0
  205. {objutils-0.10.16 → objutils-0.10.18}/objutils/extensions/wrapper.cpp +0 -0
  206. {objutils-0.10.16 → objutils-0.10.18}/objutils/fpc.py +0 -0
  207. {objutils-0.10.16 → objutils-0.10.18}/objutils/hexdump.py +0 -0
  208. {objutils-0.10.16 → objutils-0.10.18}/objutils/hexfile.py +0 -0
  209. {objutils-0.10.16 → objutils-0.10.18}/objutils/ieee695.py +0 -0
  210. {objutils-0.10.16 → objutils-0.10.18}/objutils/ihex.py +0 -0
  211. {objutils-0.10.16 → objutils-0.10.18}/objutils/logger.py +0 -0
  212. {objutils-0.10.16 → objutils-0.10.18}/objutils/mostec.py +0 -0
  213. {objutils-0.10.16 → objutils-0.10.18}/objutils/objutils.code-workspace +0 -0
  214. {objutils-0.10.16 → objutils-0.10.18}/objutils/oocdtxt.py +0 -0
  215. {objutils-0.10.16 → objutils-0.10.18}/objutils/pecoff/__init__.py +0 -0
  216. {objutils-0.10.16 → objutils-0.10.18}/objutils/pecoff/defs.py +0 -0
  217. {objutils-0.10.16 → objutils-0.10.18}/objutils/pecoff/model.py +0 -0
  218. {objutils-0.10.16 → objutils-0.10.18}/objutils/pecoff/pdb/__init__.py +0 -0
  219. {objutils-0.10.16 → objutils-0.10.18}/objutils/pickleif.py +0 -0
  220. {objutils-0.10.16 → objutils-0.10.18}/objutils/rca.py +0 -0
  221. {objutils-0.10.16 → objutils-0.10.18}/objutils/readers.py +0 -0
  222. {objutils-0.10.16 → objutils-0.10.18}/objutils/registry.py +0 -0
  223. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/arduino_build_artifacts.py +0 -0
  224. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_cgen.py +0 -0
  225. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_coff_extract.py +0 -0
  226. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_coff_import.py +0 -0
  227. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_coff_info.py +0 -0
  228. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_coff_syms.py +0 -0
  229. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_dwarf_import.py +0 -0
  230. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_dwarf_info.py +0 -0
  231. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_elf_arm_attrs.py +0 -0
  232. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_elf_extract.py +0 -0
  233. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_elf_import.py +0 -0
  234. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_elf_info.py +0 -0
  235. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_elf_syms.py +0 -0
  236. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_hex_info.py +0 -0
  237. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_hex_merge.py +0 -0
  238. {objutils-0.10.16 → objutils-0.10.18}/objutils/scripts/oj_hex_split.py +0 -0
  239. {objutils-0.10.16 → objutils-0.10.18}/objutils/shf.py +0 -0
  240. {objutils-0.10.16 → objutils-0.10.18}/objutils/sig.py +0 -0
  241. {objutils-0.10.16 → objutils-0.10.18}/objutils/srec.py +0 -0
  242. {objutils-0.10.16 → objutils-0.10.18}/objutils/symbols.py +0 -0
  243. {objutils-0.10.16 → objutils-0.10.18}/objutils/tek.py +0 -0
  244. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/__init__.py +0 -0
  245. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_arm_attributes.py +0 -0
  246. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_ash.py +0 -0
  247. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_c_generator.py +0 -0
  248. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_checksums.py +0 -0
  249. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_cygpath.py +0 -0
  250. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_diff_bin.py +0 -0
  251. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_elf.py +0 -0
  252. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_emon52.py +0 -0
  253. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_etek.py +0 -0
  254. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_examples_cgen.py +0 -0
  255. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_fpc.py +0 -0
  256. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_hexdump.py +0 -0
  257. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_hexfile.py +0 -0
  258. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_ihex.py +0 -0
  259. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_image.py +0 -0
  260. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_mostec.py +0 -0
  261. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_oocdtxt.py +0 -0
  262. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_readers.py +0 -0
  263. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_registry.py +0 -0
  264. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_repr.py +0 -0
  265. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_section.py +0 -0
  266. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_section_join.py +0 -0
  267. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_shf.py +0 -0
  268. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_sm.py +0 -0
  269. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_srec.py +0 -0
  270. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_tek.py +0 -0
  271. {objutils-0.10.16 → objutils-0.10.18}/objutils/tests/test_titext.py +0 -0
  272. {objutils-0.10.16 → objutils-0.10.18}/objutils/titxt.py +0 -0
  273. {objutils-0.10.16 → objutils-0.10.18}/objutils/utils/__init__.py +0 -0
  274. {objutils-0.10.16 → objutils-0.10.18}/objutils/utils/arduino.py +0 -0
  275. {objutils-0.10.16 → objutils-0.10.18}/objutils/utils/diff.py +0 -0
  276. {objutils-0.10.16 → objutils-0.10.18}/requirements.txt +0 -0
  277. {objutils-0.10.16 → objutils-0.10.18}/setup.cfg +0 -0
  278. {objutils-0.10.16 → objutils-0.10.18}/setup.py +0 -0
  279. {objutils-0.10.16 → objutils-0.10.18}/test_join_sections.py +0 -0
  280. {objutils-0.10.16 → objutils-0.10.18}/test_requirements.txt +0 -0
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.system.id="pyproject.toml" type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.venv" />
6
+ <excludeFolder url="file://$MODULE_DIR$/objutils/.venv" />
7
+ </content>
8
+ <orderEntry type="jdk" jdkName="Poetry (objutils) (2)" jdkType="Python SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ </component>
11
+ </module>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: objutils
3
- Version: 0.10.16
3
+ Version: 0.10.18
4
4
  Summary: Objectfile library for Python
5
5
  Keywords: hex files,intel hex,s19,srec,srecords,object files,map files,embedded,microcontroller,ECU,shf,rfc4194
6
6
  Author-Email: Christoph Schueler <cpu12.gems@googlemail.com>
@@ -75,6 +75,82 @@ Read/write ASAM values (incl. word-swap byte orders)
75
75
  img.write_asam_string(0x3010, "MOTOR", "ASCII")
76
76
  name = img.read_asam_string(0x3010, "ASCII")
77
77
 
78
+ Read/write ASAM strings with encoding override
79
+ ----------------------------------------------
80
+
81
+ Some ECUs store Latin-1 (or other non-UTF-8) characters in a field that is
82
+ declared ``ASCII`` in the A2L description. Use the ``encoding`` keyword to
83
+ override the codec without changing the ASAM dtype name:
84
+
85
+ .. code-block:: python
86
+
87
+ from objutils import Image, Section
88
+
89
+ img = Image([Section(0x4000, bytes(64))])
90
+
91
+ # The string contains "Ü" (0xDC in Latin-1) – would fail with plain ASCII
92
+ img.write_asam_string(0x4000, "MOTOR_ÜBERDREHZAHL", "ASCII", encoding="latin-1")
93
+ name = img.read_asam_string(0x4000, "ASCII", encoding="latin-1")
94
+ # name == 'MOTOR_ÜBERDREHZAHL'
95
+
96
+ The ``encoding`` parameter is accepted by both ``read_asam_string`` and
97
+ ``write_asam_string`` on ``Section`` as well as ``Image``.
98
+
99
+ Read/write ASAM characteristic maps with ALTERNATE_WITH_X
100
+ ---------------------------------------------------------
101
+
102
+ ``ALTERNATE_WITH_X`` stores each X-column preceded by its X-axis coordinate:
103
+ ``[x[0], f(0,0), f(0,1), …, x[1], f(1,0), f(1,1), …]``.
104
+
105
+ .. code-block:: python
106
+
107
+ import numpy as np
108
+ from objutils import Image, Section
109
+
110
+ # ASAM shape (X=3, Y=4) → numpy shape (4, 3)
111
+ matrix = np.array(
112
+ [[11, 21, 31],
113
+ [12, 22, 32],
114
+ [13, 23, 33],
115
+ [14, 24, 34]],
116
+ dtype=np.uint8,
117
+ )
118
+ x_axis = np.array([10, 20, 30], dtype=np.uint8)
119
+
120
+ total = 3 * (1 + 4) # num_x * (axis_byte + num_y * element_byte)
121
+ img = Image([Section(0x8000, bytes(total + 8))])
122
+
123
+ img.write_asam_ndarray(0x8000, matrix, "UBYTE", "MSB_LAST",
124
+ index_mode="ALTERNATE_WITH_X", x_axis=x_axis)
125
+
126
+ result = img.read_asam_ndarray(0x8000, 0, "UBYTE",
127
+ shape=(3, 4), byte_order="MSB_LAST",
128
+ index_mode="ALTERNATE_WITH_X")
129
+ # result.values → matrix
130
+ # result.axis → x_axis
131
+
132
+ Read/write ASAM characteristic maps with ALTERNATE_WITH_Y
133
+ ---------------------------------------------------------
134
+
135
+ ``ALTERNATE_WITH_Y`` stores each Y-row preceded by its Y-axis coordinate:
136
+ ``[y[0], f(0,0), f(1,0), …, y[1], f(0,1), f(1,1), …]``.
137
+
138
+ .. code-block:: python
139
+
140
+ y_axis = np.array([1, 2, 3, 4], dtype=np.uint8)
141
+
142
+ total_y = 4 * (1 + 3) # num_y * (axis_byte + num_x * element_byte)
143
+ img2 = Image([Section(0x9000, bytes(total_y + 8))])
144
+
145
+ img2.write_asam_ndarray(0x9000, matrix, "UBYTE", "MSB_LAST",
146
+ index_mode="ALTERNATE_WITH_Y", y_axis=y_axis)
147
+
148
+ result2 = img2.read_asam_ndarray(0x9000, 0, "UBYTE",
149
+ shape=(3, 4), byte_order="MSB_LAST",
150
+ index_mode="ALTERNATE_WITH_Y")
151
+ # result2.values → matrix
152
+ # result2.axis → y_axis
153
+
78
154
  Extract loadable image from ELF
79
155
  -------------------------------
80
156
 
@@ -163,6 +163,15 @@ ASAM strings
163
163
  >>> img.read_asam_string(0x3020, "UTF8")
164
164
  'Drehzahl'
165
165
 
166
+ When an ECU stores non-ASCII characters in a nominally ASCII field, override
167
+ the codec with an explicit ``encoding`` keyword argument:
168
+
169
+ .. code-block:: python
170
+
171
+ >>> img.write_asam_string(0x3030, "MOTOR_ÜBERDREHZAHL", "ASCII", encoding="latin-1")
172
+ >>> img.read_asam_string(0x3030, "ASCII", encoding="latin-1")
173
+ 'MOTOR_ÜBERDREHZAHL'
174
+
166
175
  ASAM numeric arrays
167
176
  -------------------
168
177
 
@@ -202,6 +211,65 @@ ASAM ndarrays (NumPy)
202
211
  >>> np.array_equal(matrix_rt, matrix)
203
212
  True
204
213
 
214
+ ASAM ndarrays — ALTERNATE_WITH_X / ALTERNATE_WITH_Y
215
+ ----------------------------------------------------
216
+
217
+ For characteristic maps (2-D) the ``ALTERNATE_WITH_X`` and ``ALTERNATE_WITH_Y``
218
+ index modes interleave axis coordinate values with the function values in memory.
219
+
220
+ **ALTERNATE_WITH_X** — each X-column is preceded by its X-axis coordinate:
221
+
222
+ .. code-block:: python
223
+
224
+ >>> import numpy as np
225
+ >>> from objutils import Image, Section
226
+
227
+ >>> # Value matrix numpy shape (Y=2, X=3); ASAM shape (X=3, Y=2)
228
+ >>> vals = np.array([[11, 21, 31], [12, 22, 32]], dtype=np.uint8)
229
+ >>> x_ax = np.array([10, 20, 30], dtype=np.uint8)
230
+
231
+ >>> total = 3 * (1 + 2) # num_x * (axis_byte + num_y)
232
+ >>> img = Image([Section(0xA000, bytes(total + 8))])
233
+ >>> img.write_asam_ndarray(0xA000, vals, "UBYTE", "MSB_LAST",
234
+ ... index_mode="ALTERNATE_WITH_X", x_axis=x_ax)
235
+
236
+ >>> # Raw memory: [10, 11, 12, 20, 21, 22, 30, 31, 32]
237
+ >>> list(img.read(0xA000, total))
238
+ [10, 11, 12, 20, 21, 22, 30, 31, 32]
239
+
240
+ >>> result = img.read_asam_ndarray(0xA000, 0, "UBYTE",
241
+ ... shape=(3, 2), byte_order="MSB_LAST",
242
+ ... index_mode="ALTERNATE_WITH_X")
243
+ >>> np.array_equal(result.values, vals)
244
+ True
245
+ >>> np.array_equal(result.axis, x_ax)
246
+ True
247
+
248
+ **ALTERNATE_WITH_Y** — each Y-row is preceded by its Y-axis coordinate:
249
+
250
+ .. code-block:: python
251
+
252
+ >>> y_ax = np.array([100, 200], dtype=np.uint8)
253
+
254
+ >>> total_y = 2 * (1 + 3) # num_y * (axis_byte + num_x)
255
+ >>> img2 = Image([Section(0xB000, bytes(total_y + 8))])
256
+ >>> img2.write_asam_ndarray(0xB000, vals, "UBYTE", "MSB_LAST",
257
+ ... index_mode="ALTERNATE_WITH_Y", y_axis=y_ax)
258
+
259
+ >>> # Raw memory: [100, 11, 21, 31, 200, 12, 22, 32]
260
+ >>> list(img2.read(0xB000, total_y))
261
+ [100, 11, 21, 31, 200, 12, 22, 32]
262
+
263
+ >>> result2 = img2.read_asam_ndarray(0xB000, 0, "UBYTE",
264
+ ... shape=(3, 2), byte_order="MSB_LAST",
265
+ ... index_mode="ALTERNATE_WITH_Y")
266
+ >>> np.array_equal(result2.values, vals)
267
+ True
268
+
269
+ ``read_asam_ndarray`` returns an ``AlternateArrayResult`` named tuple for
270
+ these modes. Access the parts via ``result.values`` / ``result.axis``, or
271
+ unpack: ``values, axis = result``.
272
+
205
273
  What next?
206
274
  ----------
207
275
 
@@ -178,13 +178,35 @@ side by side in one small image.
178
178
  - ``UTF16``
179
179
  - ``UTF32``
180
180
 
181
+ .. rubric:: Encoding override for ASAM strings
182
+
183
+ When an ECU stores text that cannot be decoded with the default ASAM mapping
184
+ (for example Latin-1 characters in a nominally ASCII field), pass an explicit
185
+ ``encoding`` keyword argument to override:
186
+
187
+ .. code-block:: python
188
+
189
+ from objutils import Image, Section
190
+
191
+ img = Image([Section(0x4000, bytes(64))])
192
+
193
+ # Write a string that contains a non-ASCII character (Ü = 0xDC in Latin-1)
194
+ img.write_asam_string(0x4000, "MOTOR_ÜBERDREHZAHL", "ASCII", encoding="latin-1")
195
+
196
+ # Read it back with the same override
197
+ text = img.read_asam_string(0x4000, "ASCII", encoding="latin-1")
198
+ # text == 'MOTOR_ÜBERDREHZAHL'
199
+
200
+ Without ``encoding=...`` the codec is derived from *dtype* as usual
201
+ (``ASCII`` → ``"ascii"``, ``UTF8`` → ``"utf-8"``, …).
202
+
181
203
  .. rubric:: ASAM Array Cheat Sheet
182
204
 
183
205
  Quick reference for the ASAM array helpers on ``Image`` and ``Section``.
184
206
 
185
207
  .. list-table::
186
208
  :header-rows: 1
187
- :widths: 30 18 22 20
209
+ :widths: 30 18 28 20
188
210
 
189
211
  * - Method
190
212
  - ``length`` semantics
@@ -198,10 +220,14 @@ Quick reference for the ASAM array helpers on ``Image`` and ``Section``.
198
220
  - n/a (from ``len(data)``)
199
221
  - ``None``
200
222
  - scalar lists/tuples
201
- * - ``read_asam_ndarray(...)``
223
+ * - ``read_asam_ndarray(...)`` ROW_DIR / COLUMN_DIR
202
224
  - element count
203
225
  - ``numpy.ndarray``
204
226
  - matrix/tensor data
227
+ * - ``read_asam_ndarray(...)`` ALTERNATE_WITH_X/Y
228
+ - ignored (derived from shape)
229
+ - ``AlternateArrayResult(values, axis)``
230
+ - interleaved axis+value maps
205
231
  * - ``write_asam_ndarray(...)``
206
232
  - n/a (from ``array.nbytes``)
207
233
  - ``None``
@@ -217,13 +243,84 @@ Quick reference for the ASAM array helpers on ``Image`` and ``Section``.
217
243
  .. note::
218
244
  **ASAM index modes**
219
245
 
220
- ``index_mode="ROW_DIR"`` (default) uses C-like row-major layout
221
- where X increments fastest. ``index_mode="COLUMN_DIR"`` swaps only
222
- X and Y (not true Fortran-order for dims > 2).
246
+ +------------------------+---------------------------------------------------+
247
+ | ``index_mode`` | Memory layout |
248
+ +========================+===================================================+
249
+ | ``ROW_DIR`` (default) | C-order row-major; X increments fastest |
250
+ +------------------------+---------------------------------------------------+
251
+ | ``COLUMN_DIR`` | X and Y swapped; not true Fortran for dims > 2 |
252
+ +------------------------+---------------------------------------------------+
253
+ | ``ALTERNATE_WITH_X`` | 2-D maps only: each X-column preceded by its |
254
+ | | X-axis coordinate value in memory |
255
+ +------------------------+---------------------------------------------------+
256
+ | ``ALTERNATE_WITH_Y`` | 2-D maps only: each Y-row preceded by its Y-axis |
257
+ | | coordinate value in memory |
258
+ +------------------------+---------------------------------------------------+
259
+ | ``ALTERNATE_CURVES`` | 1-D curves sharing a common axis, stored as |
260
+ | | Array-of-Structs (AoS). Shape must be |
261
+ | | ``(num_curves, num_axis_points)`` in ASAM |
262
+ | | convention. Equivalent to C-order ROW_DIR of |
263
+ | | a 2-D array; returns |
264
+ | | ``ndarray(num_axis_points, num_curves)``. |
265
+ +------------------------+---------------------------------------------------+
266
+
267
+ For ``ALTERNATE_WITH_X`` / ``ALTERNATE_WITH_Y``:
268
+
269
+ - Pass axis values with ``x_axis=<array>`` or ``y_axis=<array>`` to
270
+ ``write_asam_ndarray``.
271
+ - ``read_asam_ndarray`` returns an ``AlternateArrayResult(values, axis)``
272
+ named tuple; unpack with ``values, axis = result`` or access as
273
+ ``result.values`` / ``result.axis``.
274
+ - The ``length`` parameter of ``read_asam_ndarray`` is ignored for these
275
+ modes; the byte count is derived from ``shape``.
276
+
277
+ ``shape`` always uses **ASAM convention** ``(X, Y, Z, …)`` – reversed
278
+ compared to numpy ``(…, Z, Y, X)``.
279
+
280
+ .. rubric:: ALTERNATE_WITH_X example (map, 5 columns × 4 rows)
281
+
282
+ .. code-block:: python
283
+
284
+ import numpy as np
285
+ from objutils import Image, Section
223
286
 
224
- ``shape`` uses **ASAM convention** ``(X, Y, Z, …)`` which is reversed
225
- compared to numpy ``(…, Z, Y, X)``. ``length`` is the **element count**,
226
- not byte count.
287
+ # Value matrix: shape (4, 5) in numpy = ASAM shape (X=5, Y=4)
288
+ matrix = np.array(
289
+ [[11, 21, 31, 41, 51],
290
+ [12, 22, 32, 42, 52],
291
+ [13, 23, 33, 43, 53],
292
+ [14, 24, 34, 44, 54]],
293
+ dtype=np.uint8,
294
+ )
295
+ x_axis = np.array([10, 20, 30, 40, 50], dtype=np.uint8)
296
+
297
+ # Memory: x[0]=10, col0=[11,12,13,14], x[1]=20, col1=[21,22,23,24], …
298
+ img = Image([Section(0x8000, bytes(5 * (1 + 4) + 16))])
299
+ img.write_asam_ndarray(0x8000, matrix, "UBYTE", "MSB_LAST",
300
+ index_mode="ALTERNATE_WITH_X", x_axis=x_axis)
301
+
302
+ result = img.read_asam_ndarray(0x8000, 0, "UBYTE",
303
+ shape=(5, 4), byte_order="MSB_LAST",
304
+ index_mode="ALTERNATE_WITH_X")
305
+ assert np.array_equal(result.values, matrix)
306
+ assert np.array_equal(result.axis, x_axis)
307
+
308
+ .. rubric:: ALTERNATE_WITH_Y example (map, 5 columns × 4 rows)
309
+
310
+ .. code-block:: python
311
+
312
+ y_axis = np.array([1, 2, 3, 4], dtype=np.uint8)
313
+
314
+ # Memory: y[0]=1, row0=[11,21,31,41,51], y[1]=2, row1=[12,22,32,42,52], …
315
+ img2 = Image([Section(0x9000, bytes(4 * (1 + 5) + 16))])
316
+ img2.write_asam_ndarray(0x9000, matrix, "UBYTE", "MSB_LAST",
317
+ index_mode="ALTERNATE_WITH_Y", y_axis=y_axis)
318
+
319
+ result2 = img2.read_asam_ndarray(0x9000, 0, "UBYTE",
320
+ shape=(5, 4), byte_order="MSB_LAST",
321
+ index_mode="ALTERNATE_WITH_Y")
322
+ assert np.array_equal(result2.values, matrix)
323
+ assert np.array_equal(result2.axis, y_axis)
227
324
 
228
325
  .. warning::
229
326
  **Frequent pitfalls**
@@ -232,6 +329,45 @@ Quick reference for the ASAM array helpers on ``Image`` and ``Section``.
232
329
  - Forgetting that byte order is applied per element, not per full buffer.
233
330
  - Passing unsupported ASAM dtype names (must be values like ``UWORD``/``ULONG``).
234
331
  - Assuming MSW swapping affects 8-bit types (it does not).
332
+ - Using ``ALTERNATE_WITH_X`` / ``ALTERNATE_WITH_Y`` with a 1-D array or
333
+ without a 2-D ``shape`` parameter.
334
+ - Using ``ALTERNATE_CURVES`` with a 1-D array or a non-2-D ``shape``.
335
+
336
+ .. rubric:: ALTERNATE_CURVES example (3 curves, 5 axis points)
337
+
338
+ Corresponds to the C Array-of-Structs pattern from the ASAM specification::
339
+
340
+ typedef struct { int DT10; int DT20; int DT30; } CURVE_TYPE;
341
+ const CURVE_TYPE DATA[5] = {
342
+ {10, 3, 4}, {12, 2, 6}, {17, 9, 8}, {10, 1, 8}, {18, 3, 8},
343
+ };
344
+
345
+ .. code-block:: python
346
+
347
+ import numpy as np
348
+ from objutils import Image, Section
349
+
350
+ # numpy shape (5 axis_points, 3 curves); ASAM shape (X=3, Y=5)
351
+ curves = np.array(
352
+ [[10, 3, 4],
353
+ [12, 2, 6],
354
+ [17, 9, 8],
355
+ [10, 1, 8],
356
+ [18, 3, 8]],
357
+ dtype=np.int32,
358
+ )
359
+ total = curves.nbytes
360
+ img = Image([Section(0xC000, bytes(total + 8))])
361
+ img.write_asam_ndarray(0xC000, curves, "SLONG", "MSB_LAST",
362
+ index_mode="ALTERNATE_CURVES")
363
+
364
+ result = img.read_asam_ndarray(0xC000, 15, "SLONG",
365
+ shape=(3, 5), byte_order="MSB_LAST",
366
+ index_mode="ALTERNATE_CURVES")
367
+ # result.shape == (5, 3) – each column is one curve
368
+ curve_dt10 = result[:, 0] # [10, 12, 17, 10, 18]
369
+ curve_dt20 = result[:, 1] # [ 3, 2, 9, 1, 3]
370
+ curve_dt30 = result[:, 2] # [ 4, 6, 8, 8, 8]
235
371
 
236
372
  .. rubric:: Copy/paste example: ULONG array roundtrip
237
373
 
@@ -13,7 +13,7 @@ Registers CODECS and implements an interface to them.
13
13
  The first parameter is always the codec name.
14
14
  """
15
15
 
16
- __version__ = "0.10.16"
16
+ __version__ = "0.10.18"
17
17
 
18
18
  __all__ = [
19
19
  "Image",
@@ -798,11 +798,33 @@ class Image:
798
798
 
799
799
  Args:
800
800
  addr: Absolute memory address to write to.
801
- array: NumPy ndarray (shape in numpy convention).
802
- dtype: ASAM datatype name.
803
- byte_order: ASAM byte order string.
804
- index_mode: ``"ROW_DIR"`` (default) or ``"COLUMN_DIR"``.
805
- **kws: Passed through to section method.
801
+ array: NumPy ndarray (shape in numpy convention, i.e. rows × columns).
802
+ dtype: ASAM datatype name (e.g. ``"UWORD"``, ``"ULONG"``).
803
+ byte_order: ASAM byte order string (e.g. ``"MSB_FIRST"``, ``"MSB_LAST"``).
804
+ index_mode: Memory layout mode:
805
+
806
+ - ``"ROW_DIR"`` (default) – C-order row-major; X increments fastest.
807
+ - ``"COLUMN_DIR"`` – X and Y swapped; not true Fortran-order for
808
+ dims > 2.
809
+ - ``"ALTERNATE_WITH_X"`` – 2-D maps only; each X-column is preceded
810
+ by its X-axis coordinate value. Pass axis values via
811
+ ``x_axis=<array>`` in *kws*.
812
+ - ``"ALTERNATE_WITH_Y"`` – 2-D maps only; each Y-row is preceded by
813
+ its Y-axis coordinate value. Pass axis values via
814
+ ``y_axis=<array>`` in *kws*.
815
+ - ``"ALTERNATE_CURVES"`` – multiple 1-D curves sharing a common axis,
816
+ stored as Array-of-Structs (AoS). Array shape must be
817
+ ``(num_axis_points, num_curves)`` in numpy convention.
818
+ Memory layout is identical to C-order ``ROW_DIR``.
819
+ **kws: Keyword arguments passed through to the section method.
820
+ Relevant for ALTERNATE modes:
821
+
822
+ - ``x_axis`` (array-like): X-axis coordinate values for
823
+ ``ALTERNATE_WITH_X``.
824
+ - ``y_axis`` (array-like): Y-axis coordinate values for
825
+ ``ALTERNATE_WITH_Y``.
826
+ - ``axis_dtype`` (str): ASAM datatype for axis values (defaults
827
+ to the same as *dtype*).
806
828
  """
807
829
  self._call_address_function("write_asam_ndarray", addr, array, dtype, byte_order, index_mode=index_mode, **kws)
808
830
 
@@ -847,15 +869,39 @@ class Image:
847
869
 
848
870
  Args:
849
871
  addr: Start address to read from.
850
- length: Number of **elements** (not bytes).
851
- dtype: ASAM datatype name.
852
- shape: Dimensions in **ASAM** order ``(X, Y, Z, ...)``.
853
- byte_order: ASAM byte order string.
854
- index_mode: ``"ROW_DIR"`` (default) or ``"COLUMN_DIR"``.
855
- **kws: Passed through to section method.
872
+ length: Number of **elements** (not bytes). Ignored for
873
+ ``ALTERNATE_WITH_X`` and ``ALTERNATE_WITH_Y`` – the byte count
874
+ is derived from *shape* in those modes.
875
+ dtype: ASAM datatype name (e.g. ``"UWORD"``, ``"ULONG"``).
876
+ shape: Dimensions in **ASAM** order ``(X, Y, Z, ...)``, which is
877
+ the reverse of numpy order ``(..., Z, Y, X)``.
878
+ **Required** for ``ALTERNATE_WITH_X`` and ``ALTERNATE_WITH_Y``.
879
+ byte_order: ASAM byte order string (e.g. ``"MSB_FIRST"``, ``"MSB_LAST"``).
880
+ index_mode: Memory layout mode:
881
+
882
+ - ``"ROW_DIR"`` (default) – C-order row-major; X increments fastest.
883
+ - ``"COLUMN_DIR"`` – X and Y swapped; not true Fortran-order for
884
+ dims > 2.
885
+ - ``"ALTERNATE_WITH_X"`` – 2-D maps only; each X-column is preceded
886
+ by its X-axis coordinate value in memory.
887
+ - ``"ALTERNATE_WITH_Y"`` – 2-D maps only; each Y-row is preceded by
888
+ its Y-axis coordinate value in memory.
889
+ - ``"ALTERNATE_CURVES"`` – multiple 1-D curves sharing a common axis,
890
+ stored as Array-of-Structs (AoS); returns
891
+ ``ndarray(num_axis_points, num_curves)``.
892
+ **kws: Keyword arguments passed through to the section method.
893
+ Relevant for ALTERNATE modes:
894
+
895
+ - ``axis_dtype`` (str): ASAM datatype for axis values (defaults
896
+ to the same as *dtype*).
856
897
 
857
898
  Returns:
858
- NumPy ndarray with shape in numpy convention.
899
+ - ``numpy.ndarray`` with shape in numpy convention for ``ROW_DIR``
900
+ and ``COLUMN_DIR``.
901
+ - :class:`~objutils.section.AlternateArrayResult` ``(values, axis)``
902
+ named tuple for ``ALTERNATE_WITH_X`` and ``ALTERNATE_WITH_Y``.
903
+ Access via ``result.values`` / ``result.axis`` or unpack:
904
+ ``values, axis = result``.
859
905
  """
860
906
  return self._call_address_function(
861
907
  "read_asam_ndarray", addr, length, dtype, shape=shape, byte_order=byte_order, index_mode=index_mode, **kws