pynxtools-spm 0.0.0__py3-none-any.whl

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 (86) hide show
  1. pynxtools_spm/__init__.py +22 -0
  2. pynxtools_spm/configs/__init__.py +45 -0
  3. pynxtools_spm/configs/nanonis_dat_generic_sts.json +737 -0
  4. pynxtools_spm/configs/nanonis_sxm_generic_afm.json +590 -0
  5. pynxtools_spm/configs/nanonis_sxm_generic_stm.json +556 -0
  6. pynxtools_spm/nomad/entrypoints.py +65 -0
  7. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/A151216.123306-02602.sxm +3411 -7
  8. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/AFM.scheme.archive.yaml +349 -0
  9. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/AFMDefaultExample.archive.json +1 -0
  10. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/Identifier_DemoCollectionIdentifier85fdc73e7c08b130b74537aa20923277.archive.json +1 -0
  11. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/Identifier_DemoExperimentIdentifiera91a1e4f71e2c2235538d1553b7f11a7.archive.json +1 -0
  12. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/README.md +8 -0
  13. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/eln_data.yaml +33 -0
  14. pynxtools_spm/nomad/examples/afm/AFMDefaultExample/output.nxs +0 -0
  15. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/A151216.123306-02602.sxm +3411 -7
  16. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/AFM.scheme.archive.yaml +349 -0
  17. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/AFMExampleWithCustomization.archive.json +1 -0
  18. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/Identifier_DemoCollectionIdentifier3a32950ffe1c42177d025708f1dd8ce4.archive.json +1 -0
  19. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/Identifier_DemoExperimentIdentifiere33d389e5b93f8f1d4aac899315a4b68.archive.json +1 -0
  20. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/README.md +8 -0
  21. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/config.json +590 -0
  22. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/eln_data.yaml +28 -0
  23. pynxtools_spm/nomad/examples/afm/AFMExampleWithCustomization/output.nxs +0 -0
  24. pynxtools_spm/nomad/examples/stm/STMDefaultExample/Identifier_DemoCollectionIdentifier85fdc73e7c08b130b74537aa20923277.archive.json +1 -0
  25. pynxtools_spm/nomad/examples/stm/STMDefaultExample/Identifier_DemoExperimentIdentifiera91a1e4f71e2c2235538d1553b7f11a7.archive.json +1 -0
  26. pynxtools_spm/nomad/examples/stm/STMDefaultExample/README.md +8 -0
  27. pynxtools_spm/nomad/examples/stm/STMDefaultExample/STM.scheme.archive.yaml +367 -0
  28. pynxtools_spm/nomad/examples/stm/STMDefaultExample/STMDefaultExample.archive.json +1 -0
  29. pynxtools_spm/nomad/examples/stm/STMDefaultExample/STM_nanonis_generic_4_5.sxm +0 -0
  30. pynxtools_spm/nomad/examples/stm/STMDefaultExample/eln_data.yaml +30 -0
  31. pynxtools_spm/nomad/examples/stm/STMDefaultExample/output.nxs +0 -0
  32. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/Identifier_DemoCollectionIdentifierb389a0d00c349e884d708664be4246e9.archive.json +1 -0
  33. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/Identifier_DemoExperimentIdentifier75d8e3bbabff1e76c01d5ff9962ad926.archive.json +1 -0
  34. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/README.md +8 -0
  35. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/STM.scheme.archive.yaml +367 -0
  36. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/STMExampleWithCustomization.archive.json +1 -0
  37. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/STM_nanonis_generic_4_5.sxm +0 -0
  38. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/config.json +559 -0
  39. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/eln_data.yaml +37 -0
  40. pynxtools_spm/nomad/examples/stm/STMExampleWithCustomization/output.nxs +0 -0
  41. pynxtools_spm/nomad/examples/sts/STSDefaultExample/Identifier_DemoCollectionIdentifier85fdc73e7c08b130b74537aa20923277.archive.json +1 -0
  42. pynxtools_spm/nomad/examples/sts/STSDefaultExample/Identifier_DemoExperimentIdentifiera91a1e4f71e2c2235538d1553b7f11a7.archive.json +1 -0
  43. pynxtools_spm/nomad/examples/sts/STSDefaultExample/Identifier_STSCollectionIdentifier8ae11a03ef282660abfe601209f3cbaa.archive.json +1 -0
  44. pynxtools_spm/nomad/examples/sts/STSDefaultExample/Identifier_STSExperimentIdentifier2813c37e9b2e99b4830eba91de0efcc0.archive.json +1 -0
  45. pynxtools_spm/nomad/examples/sts/STSDefaultExample/README.md +8 -0
  46. pynxtools_spm/nomad/examples/sts/STSDefaultExample/STS.scheme.archive.yaml +367 -0
  47. pynxtools_spm/nomad/examples/sts/STSDefaultExample/STSDefaultExample.archive.json +1 -0
  48. pynxtools_spm/nomad/examples/sts/STSDefaultExample/STSExampleDefaultDataSettings.archive.json +1 -0
  49. pynxtools_spm/nomad/examples/sts/STSDefaultExample/STS_nanonis_generic_5e_1.dat +4237 -0
  50. pynxtools_spm/nomad/examples/sts/STSDefaultExample/eln_data.yaml +36 -0
  51. pynxtools_spm/nomad/examples/sts/STSDefaultExample/output.nxs +0 -0
  52. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/Identifier_DemoCollectionIdentifier3a32950ffe1c42177d025708f1dd8ce4.archive.json +1 -0
  53. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/Identifier_DemoExperimentIdentifiere33d389e5b93f8f1d4aac899315a4b68.archive.json +1 -0
  54. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/Identifier_STSCollectionIdentifier1b75cebffd905436b6785207dda0efe3.archive.json +1 -0
  55. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/Identifier_STSExperimentIdentifiercae3807c0908d722384c80e68b61df43.archive.json +1 -0
  56. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/README.md +8 -0
  57. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/STS.scheme.archive.yaml +367 -0
  58. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/STSExampleWithCustomization.archive.json +1 -0
  59. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/STS_nanonis_generic_5e_1.dat +4237 -0
  60. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/config.json +742 -0
  61. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/eln_data.yaml +38 -0
  62. pynxtools_spm/nomad/examples/sts/STSExampleWithCustomization/output.nxs +0 -0
  63. pynxtools_spm/nomad/nomad_example_paths.py +46 -0
  64. pynxtools_spm/nxformatters/__init__.py +0 -0
  65. pynxtools_spm/nxformatters/base_formatter.py +431 -0
  66. pynxtools_spm/nxformatters/helpers.py +346 -0
  67. pynxtools_spm/nxformatters/nanonis_dat_sts.py +352 -0
  68. pynxtools_spm/nxformatters/nanonis_sxm_afm.py +212 -0
  69. pynxtools_spm/nxformatters/nanonis_sxm_stm.py +475 -0
  70. pynxtools_spm/parsers/__init__.py +237 -0
  71. pynxtools_spm/parsers/base_parser.py +39 -0
  72. pynxtools_spm/parsers/helpers.py +132 -0
  73. pynxtools_spm/parsers/nanonis_dat.py +296 -0
  74. pynxtools_spm/parsers/nanonis_sxm.py +556 -0
  75. pynxtools_spm/parsers/nanonispy/README.md +2 -0
  76. pynxtools_spm/parsers/nanonispy/__init__.py +2 -0
  77. pynxtools_spm/parsers/nanonispy/constants.py +8 -0
  78. pynxtools_spm/parsers/nanonispy/read.py +792 -0
  79. pynxtools_spm/parsers/nanonispy/utils.py +51 -0
  80. pynxtools_spm/reader.py +150 -0
  81. pynxtools_spm-0.0.0.dist-info/LICENSE +202 -0
  82. pynxtools_spm-0.0.0.dist-info/METADATA +245 -0
  83. pynxtools_spm-0.0.0.dist-info/RECORD +86 -0
  84. pynxtools_spm-0.0.0.dist-info/WHEEL +5 -0
  85. pynxtools_spm-0.0.0.dist-info/entry_points.txt +2 -0
  86. pynxtools_spm-0.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ TODO: Add simple description of the module
4
+ """
5
+ # -*- coding: utf-8 -*-
6
+ #
7
+ # Copyright The NOMAD Authors.
8
+ #
9
+ # This file is part of NOMAD. See https://nomad-lab.eu for further info.
10
+ #
11
+ # Licensed under the Apache License, Version 2.0 (the "License");
12
+ # you may not use this file except in compliance with the License.
13
+ # You may obtain a copy of the License at
14
+ #
15
+ # http://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the License is distributed on an "AS IS" BASIS,
19
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ # See the License for the specific language governing permissions and
21
+ # limitations under the License.
22
+ #
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ TODO: Add simple description of the module
4
+ """
5
+ # -*- coding: utf-8 -*-
6
+ #
7
+ # Copyright The NOMAD Authors.
8
+ #
9
+ # This file is part of NOMAD. See https://nomad-lab.eu for further info.
10
+ #
11
+ # Licensed under the Apache License, Version 2.0 (the "License");
12
+ # you may not use this file except in compliance with the License.
13
+ # You may obtain a copy of the License at
14
+ #
15
+ # http://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the License is distributed on an "AS IS" BASIS,
19
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ # See the License for the specific language governing permissions and
21
+ # limitations under the License.
22
+ #
23
+
24
+ import os
25
+ import json
26
+
27
+
28
+ pwd = os.path.dirname(__file__)
29
+
30
+
31
+ def load_default_config(config_type):
32
+ nanonis_dat_generic_sts = os.path.join(pwd, "nanonis_dat_generic_sts.json")
33
+ nanonis_sxm_generic_stm = os.path.join(pwd, "nanonis_sxm_generic_stm.json")
34
+ nanonis_sxm_generic_afm = os.path.join(pwd, "nanonis_sxm_generic_afm.json")
35
+
36
+ config_file = None
37
+ if config_type == "nanonis_dat_generic_sts":
38
+ config_file = nanonis_dat_generic_sts
39
+ elif config_type == "nanonis_sxm_generic_stm":
40
+ config_file = nanonis_sxm_generic_stm
41
+ elif config_type == "nanonis_sxm_generic_afm":
42
+ config_file = nanonis_sxm_generic_afm
43
+ if config_file is not None:
44
+ with open(config_file, "r", encoding="utf-8") as f:
45
+ return json.load(f)