mfethuls 0.3.1__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 (187) hide show
  1. mfethuls-0.3.1/LICENSE +202 -0
  2. mfethuls-0.3.1/NOTICE +5 -0
  3. mfethuls-0.3.1/PKG-INFO +166 -0
  4. mfethuls-0.3.1/README.md +115 -0
  5. mfethuls-0.3.1/pyproject.toml +85 -0
  6. mfethuls-0.3.1/setup.cfg +4 -0
  7. mfethuls-0.3.1/src/mfethuls/__init__.py +26 -0
  8. mfethuls-0.3.1/src/mfethuls/_files.py +22 -0
  9. mfethuls-0.3.1/src/mfethuls/app/__init__.py +6 -0
  10. mfethuls-0.3.1/src/mfethuls/app/backend.py +186 -0
  11. mfethuls-0.3.1/src/mfethuls/app/launch.py +21 -0
  12. mfethuls-0.3.1/src/mfethuls/app/page.py +775 -0
  13. mfethuls-0.3.1/src/mfethuls/app/register.py +292 -0
  14. mfethuls-0.3.1/src/mfethuls/app/streamlit_app.py +6 -0
  15. mfethuls-0.3.1/src/mfethuls/app/welcome.py +526 -0
  16. mfethuls-0.3.1/src/mfethuls/characterizers/__init__.py +0 -0
  17. mfethuls-0.3.1/src/mfethuls/characterizers/dsc.py +84 -0
  18. mfethuls-0.3.1/src/mfethuls/characterizers/tga.py +29 -0
  19. mfethuls-0.3.1/src/mfethuls/comparison.py +171 -0
  20. mfethuls-0.3.1/src/mfethuls/config/__init__.py +0 -0
  21. mfethuls-0.3.1/src/mfethuls/config/instrument_params.json +126 -0
  22. mfethuls-0.3.1/src/mfethuls/config/loader.py +313 -0
  23. mfethuls-0.3.1/src/mfethuls/config/schemas/dma.json +91 -0
  24. mfethuls-0.3.1/src/mfethuls/config/schemas/dsc.json +97 -0
  25. mfethuls-0.3.1/src/mfethuls/config/schemas/fluorescence.json +27 -0
  26. mfethuls-0.3.1/src/mfethuls/config/schemas/ftir.json +32 -0
  27. mfethuls-0.3.1/src/mfethuls/config/schemas/ms.json +27 -0
  28. mfethuls-0.3.1/src/mfethuls/config/schemas/nmr.json +27 -0
  29. mfethuls-0.3.1/src/mfethuls/config/schemas/rheometer.json +91 -0
  30. mfethuls-0.3.1/src/mfethuls/config/schemas/saxs.json +37 -0
  31. mfethuls-0.3.1/src/mfethuls/config/schemas/sec.json +36 -0
  32. mfethuls-0.3.1/src/mfethuls/config/schemas/tga.json +60 -0
  33. mfethuls-0.3.1/src/mfethuls/config/schemas/uv_vis.json +47 -0
  34. mfethuls-0.3.1/src/mfethuls/dataset.py +49 -0
  35. mfethuls-0.3.1/src/mfethuls/discovery.py +415 -0
  36. mfethuls-0.3.1/src/mfethuls/examples/__init__.py +102 -0
  37. mfethuls-0.3.1/src/mfethuls/examples/data/DSC/poly1.txt +6034 -0
  38. mfethuls-0.3.1/src/mfethuls/examples/data/DSC/poly2.txt +8194 -0
  39. mfethuls-0.3.1/src/mfethuls/examples/data/FTIR/poly1.csv +3403 -0
  40. mfethuls-0.3.1/src/mfethuls/examples/data/FTIR/poly2.csv +3403 -0
  41. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__0__18-11-09-757.txt +1058 -0
  42. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__10__18-11-19-757.txt +1058 -0
  43. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__11__18-11-20-757.txt +1058 -0
  44. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__12__18-11-21-757.txt +1058 -0
  45. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__13__18-11-22-757.txt +1058 -0
  46. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__14__18-11-23-757.txt +1058 -0
  47. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__15__18-11-24-757.txt +1058 -0
  48. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__16__18-11-25-757.txt +1058 -0
  49. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__17__18-11-26-757.txt +1058 -0
  50. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__18__18-11-27-757.txt +1058 -0
  51. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__19__18-11-28-758.txt +1058 -0
  52. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__1__18-11-10-757.txt +1058 -0
  53. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__20__18-11-29-757.txt +1058 -0
  54. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__21__18-11-30-757.txt +1058 -0
  55. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__22__18-11-31-744.txt +1058 -0
  56. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__23__18-11-32-758.txt +1058 -0
  57. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__24__18-11-33-758.txt +1058 -0
  58. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__25__18-11-34-758.txt +1058 -0
  59. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__26__18-11-35-758.txt +1058 -0
  60. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__27__18-11-36-758.txt +1058 -0
  61. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__28__18-11-37-758.txt +1058 -0
  62. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__29__18-11-38-758.txt +1058 -0
  63. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__2__18-11-11-757.txt +1058 -0
  64. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__30__18-11-39-758.txt +1058 -0
  65. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__31__18-11-40-758.txt +1058 -0
  66. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__32__18-11-41-758.txt +1058 -0
  67. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__33__18-11-42-758.txt +1058 -0
  68. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__34__18-11-43-758.txt +1058 -0
  69. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__35__18-11-44-758.txt +1058 -0
  70. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__36__18-11-45-757.txt +1058 -0
  71. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__37__18-11-46-758.txt +1058 -0
  72. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__38__18-11-47-758.txt +1058 -0
  73. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__39__18-11-48-758.txt +1058 -0
  74. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__3__18-11-12-757.txt +1058 -0
  75. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__40__18-11-49-758.txt +1058 -0
  76. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__41__18-11-50-758.txt +1058 -0
  77. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__42__18-11-51-758.txt +1058 -0
  78. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__43__18-11-52-758.txt +1058 -0
  79. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__44__18-11-53-758.txt +1058 -0
  80. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__45__18-11-54-758.txt +1058 -0
  81. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__46__18-11-55-758.txt +1058 -0
  82. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__47__18-11-56-758.txt +1058 -0
  83. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__48__18-11-57-758.txt +1058 -0
  84. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__49__18-11-58-758.txt +1058 -0
  85. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__4__18-11-13-757.txt +1058 -0
  86. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__5__18-11-14-757.txt +1058 -0
  87. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__6__18-11-15-757.txt +1058 -0
  88. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__7__18-11-16-757.txt +1058 -0
  89. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__8__18-11-17-757.txt +1058 -0
  90. mfethuls-0.3.1/src/mfethuls/examples/data/Fluorescence/poly3/poly3__9__18-11-18-757.txt +1058 -0
  91. mfethuls-0.3.1/src/mfethuls/examples/data/TGA/poly1.txt +2854 -0
  92. mfethuls-0.3.1/src/mfethuls/examples/data/TGA/poly2.txt +2854 -0
  93. mfethuls-0.3.1/src/mfethuls/examples/experiments_registry.csv +8 -0
  94. mfethuls-0.3.1/src/mfethuls/experiments.py +427 -0
  95. mfethuls-0.3.1/src/mfethuls/factory.py +134 -0
  96. mfethuls-0.3.1/src/mfethuls/instruments/__init__.py +0 -0
  97. mfethuls-0.3.1/src/mfethuls/instruments/base.py +6 -0
  98. mfethuls-0.3.1/src/mfethuls/instruments/generic.py +17 -0
  99. mfethuls-0.3.1/src/mfethuls/main.py +154 -0
  100. mfethuls-0.3.1/src/mfethuls/manifest.py +325 -0
  101. mfethuls-0.3.1/src/mfethuls/parsers/__init__.py +3 -0
  102. mfethuls-0.3.1/src/mfethuls/parsers/dma.py +127 -0
  103. mfethuls-0.3.1/src/mfethuls/parsers/dsc.py +439 -0
  104. mfethuls-0.3.1/src/mfethuls/parsers/ftir.py +81 -0
  105. mfethuls-0.3.1/src/mfethuls/parsers/ingestion.py +80 -0
  106. mfethuls-0.3.1/src/mfethuls/parsers/ms.py +116 -0
  107. mfethuls-0.3.1/src/mfethuls/parsers/nmr.py +141 -0
  108. mfethuls-0.3.1/src/mfethuls/parsers/registry.py +35 -0
  109. mfethuls-0.3.1/src/mfethuls/parsers/rheometer.py +113 -0
  110. mfethuls-0.3.1/src/mfethuls/parsers/saxs.py +85 -0
  111. mfethuls-0.3.1/src/mfethuls/parsers/sec.py +110 -0
  112. mfethuls-0.3.1/src/mfethuls/parsers/tga.py +136 -0
  113. mfethuls-0.3.1/src/mfethuls/parsers/uv_vis.py +189 -0
  114. mfethuls-0.3.1/src/mfethuls/plotting/__init__.py +46 -0
  115. mfethuls-0.3.1/src/mfethuls/plotting/backend.py +51 -0
  116. mfethuls-0.3.1/src/mfethuls/plotting/comparison.py +296 -0
  117. mfethuls-0.3.1/src/mfethuls/plotting/core.py +398 -0
  118. mfethuls-0.3.1/src/mfethuls/plotting/dma.py +97 -0
  119. mfethuls-0.3.1/src/mfethuls/plotting/dsc.py +180 -0
  120. mfethuls-0.3.1/src/mfethuls/plotting/fluorescence.py +56 -0
  121. mfethuls-0.3.1/src/mfethuls/plotting/ftir.py +65 -0
  122. mfethuls-0.3.1/src/mfethuls/plotting/labels.py +148 -0
  123. mfethuls-0.3.1/src/mfethuls/plotting/ms.py +53 -0
  124. mfethuls-0.3.1/src/mfethuls/plotting/nmr.py +55 -0
  125. mfethuls-0.3.1/src/mfethuls/plotting/render_mpl.py +193 -0
  126. mfethuls-0.3.1/src/mfethuls/plotting/render_plotly.py +212 -0
  127. mfethuls-0.3.1/src/mfethuls/plotting/rheology.py +97 -0
  128. mfethuls-0.3.1/src/mfethuls/plotting/saxs.py +55 -0
  129. mfethuls-0.3.1/src/mfethuls/plotting/sec.py +93 -0
  130. mfethuls-0.3.1/src/mfethuls/plotting/spec.py +118 -0
  131. mfethuls-0.3.1/src/mfethuls/plotting/style.py +67 -0
  132. mfethuls-0.3.1/src/mfethuls/plotting/tga.py +60 -0
  133. mfethuls-0.3.1/src/mfethuls/plotting/uv_vis.py +63 -0
  134. mfethuls-0.3.1/src/mfethuls/py.typed +0 -0
  135. mfethuls-0.3.1/src/mfethuls/reconcile.py +419 -0
  136. mfethuls-0.3.1/src/mfethuls/registry_validator.py +481 -0
  137. mfethuls-0.3.1/src/mfethuls/schema_normalization.py +207 -0
  138. mfethuls-0.3.1/src/mfethuls/settings.py +204 -0
  139. mfethuls-0.3.1/src/mfethuls/storage/__init__.py +23 -0
  140. mfethuls-0.3.1/src/mfethuls/storage/backends.py +105 -0
  141. mfethuls-0.3.1/src/mfethuls/storage/catalog.py +82 -0
  142. mfethuls-0.3.1/src/mfethuls/storage/config.py +67 -0
  143. mfethuls-0.3.1/src/mfethuls/storage/duckdb_backend.py +293 -0
  144. mfethuls-0.3.1/src/mfethuls/storage/manager.py +102 -0
  145. mfethuls-0.3.1/src/mfethuls/storage/notebook.py +26 -0
  146. mfethuls-0.3.1/src/mfethuls/storage/provenance.py +88 -0
  147. mfethuls-0.3.1/src/mfethuls/storage/types.py +83 -0
  148. mfethuls-0.3.1/src/mfethuls/stores.py +50 -0
  149. mfethuls-0.3.1/src/mfethuls/tutorials/__init__.py +53 -0
  150. mfethuls-0.3.1/src/mfethuls/tutorials/local_tutorial.py +345 -0
  151. mfethuls-0.3.1/src/mfethuls.egg-info/PKG-INFO +166 -0
  152. mfethuls-0.3.1/src/mfethuls.egg-info/SOURCES.txt +185 -0
  153. mfethuls-0.3.1/src/mfethuls.egg-info/dependency_links.txt +1 -0
  154. mfethuls-0.3.1/src/mfethuls.egg-info/entry_points.txt +4 -0
  155. mfethuls-0.3.1/src/mfethuls.egg-info/requires.txt +26 -0
  156. mfethuls-0.3.1/src/mfethuls.egg-info/top_level.txt +1 -0
  157. mfethuls-0.3.1/tests/test_app_onboarding.py +152 -0
  158. mfethuls-0.3.1/tests/test_app_style_by.py +100 -0
  159. mfethuls-0.3.1/tests/test_catalog.py +136 -0
  160. mfethuls-0.3.1/tests/test_cli.py +22 -0
  161. mfethuls-0.3.1/tests/test_comparison.py +87 -0
  162. mfethuls-0.3.1/tests/test_core_boundary.py +47 -0
  163. mfethuls-0.3.1/tests/test_discovery.py +316 -0
  164. mfethuls-0.3.1/tests/test_duckdb_lifecycle.py +32 -0
  165. mfethuls-0.3.1/tests/test_examples.py +50 -0
  166. mfethuls-0.3.1/tests/test_experiment_flow.py +385 -0
  167. mfethuls-0.3.1/tests/test_instrument_config.py +40 -0
  168. mfethuls-0.3.1/tests/test_manifest.py +371 -0
  169. mfethuls-0.3.1/tests/test_parsers.py +257 -0
  170. mfethuls-0.3.1/tests/test_plotting.py +663 -0
  171. mfethuls-0.3.1/tests/test_plotting_colorbar.py +139 -0
  172. mfethuls-0.3.1/tests/test_plotting_labels.py +103 -0
  173. mfethuls-0.3.1/tests/test_plotting_limits.py +65 -0
  174. mfethuls-0.3.1/tests/test_plotting_plotly.py +151 -0
  175. mfethuls-0.3.1/tests/test_plotting_spec.py +117 -0
  176. mfethuls-0.3.1/tests/test_real_data_pipeline.py +103 -0
  177. mfethuls-0.3.1/tests/test_reconcile.py +210 -0
  178. mfethuls-0.3.1/tests/test_registry.py +170 -0
  179. mfethuls-0.3.1/tests/test_registry_row_builder.py +55 -0
  180. mfethuls-0.3.1/tests/test_registry_validator.py +181 -0
  181. mfethuls-0.3.1/tests/test_registry_write.py +92 -0
  182. mfethuls-0.3.1/tests/test_schema_normalization.py +468 -0
  183. mfethuls-0.3.1/tests/test_settings.py +139 -0
  184. mfethuls-0.3.1/tests/test_source_file.py +67 -0
  185. mfethuls-0.3.1/tests/test_tutorials.py +31 -0
  186. mfethuls-0.3.1/tests/test_validate_registry_dataframe.py +35 -0
  187. mfethuls-0.3.1/tests/test_wrong_instrument.py +65 -0
mfethuls-0.3.1/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
mfethuls-0.3.1/NOTICE ADDED
@@ -0,0 +1,5 @@
1
+ mfethuls
2
+ Copyright 2026 Luca Bertossi
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+ Versions released before the change to Apache-2.0 were published under the MIT License.
@@ -0,0 +1,166 @@
1
+ Metadata-Version: 2.4
2
+ Name: mfethuls
3
+ Version: 0.3.1
4
+ Summary: From scattered instrument files to analysis-ready data: a Python framework and app that read, clean and organise experimental lab data.
5
+ Author-email: Luca Bertossi <lucabertossi@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/lucaAyt/mfethuls
8
+ Project-URL: Documentation, https://github.com/lucaAyt/mfethuls/tree/master/docs
9
+ Project-URL: Repository, https://github.com/lucaAyt/mfethuls
10
+ Project-URL: Issues, https://github.com/lucaAyt/mfethuls/issues
11
+ Project-URL: Changelog, https://github.com/lucaAyt/mfethuls/releases
12
+ Keywords: laboratory,instrument data,ETL,data management,DSC,TGA,FTIR,UV-Vis,rheology,materials science
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Scientific/Engineering
21
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
22
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
23
+ Requires-Python: >=3.11
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ License-File: NOTICE
27
+ Requires-Dist: duckdb>=1.0.0
28
+ Requires-Dist: filelock>=3.12
29
+ Requires-Dist: nmrglue>=0.11
30
+ Requires-Dist: numpy>=1.24.2
31
+ Requires-Dist: openpyxl>=3.1.0
32
+ Requires-Dist: pandas>=1.5.3
33
+ Requires-Dist: pyarrow>=20.0.0
34
+ Requires-Dist: python-dotenv>=1.0.0
35
+ Requires-Dist: pytz>=2024.1
36
+ Provides-Extra: notebook
37
+ Requires-Dist: notebook>=6.5.3; extra == "notebook"
38
+ Requires-Dist: marimo>=0.9.0; extra == "notebook"
39
+ Requires-Dist: matplotlib>=3.10.1; extra == "notebook"
40
+ Requires-Dist: plotly>=6.0.0; extra == "notebook"
41
+ Requires-Dist: seaborn>=0.13.0; extra == "notebook"
42
+ Provides-Extra: viz
43
+ Requires-Dist: matplotlib>=3.10.1; extra == "viz"
44
+ Requires-Dist: kaleido>=1.0.0; extra == "viz"
45
+ Requires-Dist: plotly>=6.0.0; extra == "viz"
46
+ Requires-Dist: streamlit>=1.36.0; extra == "viz"
47
+ Provides-Extra: dev
48
+ Requires-Dist: pytest>=9.0.3; extra == "dev"
49
+ Requires-Dist: ruff>=0.6.0; extra == "dev"
50
+ Dynamic: license-file
51
+
52
+ # mfethuls
53
+
54
+ From scattered instrument files to analysis-ready data. mfethuls is a Python framework that reads, cleans and organises experimental data: raw instrument exports are ingested against an experiment registry, normalised to a canonical schema and stored as traceable, queryable Parquet datasets. Use it from the app (`mfethuls-app`, no code needed), from notebooks, or with SQL. Experimentalists get consistent, comparable data and publication-ready figures; data scientists get harmonised data from every instrument to build features and models on.
55
+
56
+ ---
57
+
58
+ ## Instrument support
59
+
60
+ | Instrument | Models |
61
+ |---|---|
62
+ | DSC | Generic, Mettler Toledo, Perkin Elmer |
63
+ | TGA | Generic |
64
+ | FTIR | Bruker |
65
+ | UV-Vis | Shimadzu, Ocean Optics Flame (in-situ) |
66
+ | NMR | Bruker |
67
+ | Rheometer | Anton Paar |
68
+ | DMA | TA Q800 |
69
+ | SEC | Agilent |
70
+ | SAXS | Anton Paar |
71
+ | MS | Bruker |
72
+
73
+ Each parser normalises raw exports to a [canonical column schema](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/schema.md) — same column names and units regardless of instrument model.
74
+
75
+ ---
76
+
77
+ ## Install
78
+
79
+ ```shell
80
+ pip install "mfethuls[viz,notebook]"
81
+ ```
82
+
83
+ The latest development version: `pip install "mfethuls[viz,notebook] @ git+https://github.com/lucaAyt/mfethuls.git"`. The extras:
84
+
85
+ | Extra | Installs | Use when |
86
+ |---|---|---|
87
+ | `viz` | Plotly, Matplotlib, Kaleido, Streamlit | The app or notebook plotting |
88
+ | `notebook` | Jupyter, Marimo, Matplotlib, Plotly, seaborn | Interactive notebooks with plotting |
89
+
90
+ ---
91
+
92
+ ## Getting started
93
+
94
+ No Docker, no database, no server. Start the app:
95
+
96
+ ```shell
97
+ mfethuls-app
98
+ ```
99
+
100
+ The welcome page offers three ways in:
101
+
102
+ - **Get started**: choose your data folder (one subfolder per instrument) and your registry (CSV or Excel, one row per experiment; the app can create an empty one or give you an example). They are saved in `~/.mfethuls/settings.json`, so notebooks use the same folders; change them any time under **⚙ Settings**.
103
+ - **Try the example**: explore example DSC, TGA, FTIR and fluorescence data, copied to `~/mfethuls-example`. Your own data is not touched.
104
+ - **Use it from Python**: the tutorial notebook (below).
105
+
106
+ A getting-started checklist then walks through registering (**Ingest** → **Review & register**), ingesting, selecting and plotting (**Colour by**, **Style by**, axis limits, SVG/HTML export) and cleaning up (**⚙ Settings** → **Clean up**); a compact tracker stays at the top of the sidebar, next to 🏠 (back to the welcome page) and ⚙.
107
+
108
+ Non-technical users: double-click `launch.bat` (Windows) or run `bash launch.sh`; it needs only [`uv`](https://docs.astral.sh/uv/). See [docs/guides/local_setup.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/local_setup.md). Folders can also come from `.env` (copy `env_example`); folders saved in the app take precedence. `experiments_template.csv` in the repo root has an example row for every supported instrument.
109
+
110
+ **Python API:** a guided tutorial (a marimo notebook on its own copy of the example data) opens with `mfethuls-tutorial`, or **Use it from Python** on the app's welcome page.
111
+
112
+ ```python
113
+ import mfethuls
114
+
115
+ # Load one or more experiments
116
+ cs = mfethuls.load_experiments(["exp_001", "exp_002"])
117
+ df = cs.to_dataframe() # tidy long-format DataFrame
118
+
119
+ # Load all experiments for a sample
120
+ cs = mfethuls.load_samples(["S001", "S002"])
121
+ ```
122
+
123
+ **Plotting:**
124
+
125
+ ```python
126
+ fig, ax = mfethuls.plot_experiments(cs) # publication figure (Matplotlib)
127
+ fig = mfethuls.plot_experiments(cs, backend="plotly") # interactive, every data point (WebGL)
128
+ mfethuls.set_plot_backend("plotly") # make Plotly the default
129
+ ```
130
+
131
+ Each instrument gets a suitable plot, with axis labels and units (*Temperature (°C)*, *Wavenumber (cm⁻¹)*). Experiments that share an x-axis are overlaid, otherwise each gets its own panel, and time-resolved spectra series are coloured by elapsed time. Matplotlib figures use a fixed publication style and save as vector SVG/PDF. See [docs/guides/plotting.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/plotting.md).
132
+
133
+ ---
134
+
135
+ ## For teams
136
+
137
+ A shared lab server (API, background ingest, Postgres, cloud storage, OneDrive sync and a shared app) is developed separately as **mfethuls-server**, which builds on this package.
138
+
139
+ ---
140
+
141
+ ## Data access for analysis
142
+
143
+ Three stores, each with a distinct role — see [docs/guides/data_analysis.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/data_analysis.md) for the full guide including DuckDB SQL recipes and model-building patterns.
144
+
145
+ ---
146
+
147
+ ## Docs
148
+
149
+ | Document | Contents |
150
+ |---|---|
151
+ | [docs/guides/quickstart.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/quickstart.md) | Start here: install, the app's first run, and using mfethuls from Python |
152
+ | [docs/guides/workflow.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/workflow.md) | End-to-end tutorial — registry → ingest → dashboard → notebook |
153
+ | [docs/guides/local_setup.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/local_setup.md) | Non-technical user guide — `uv` + launcher |
154
+ | [docs/guides/data_analysis.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/data_analysis.md) | Notebook access — Python API, DuckDB SQL, model building |
155
+ | [docs/guides/plotting.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/plotting.md) | Built-in plots, Matplotlib/Plotly backends, labels and units, dashboard plotting |
156
+ | [docs/reference/registry.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/registry.md) | Registry format, column reference, measurement profiles |
157
+ | [docs/reference/architecture.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/architecture.md) | System diagrams, ETL pipeline, storage design |
158
+ | [docs/reference/schema.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/schema.md) | Canonical column names, units, normalisation rules |
159
+
160
+ ---
161
+
162
+ ## License
163
+
164
+ Apache License 2.0 — see [LICENSE](https://github.com/lucaAyt/mfethuls/blob/master/LICENSE) and [NOTICE](https://github.com/lucaAyt/mfethuls/blob/master/NOTICE). Versions released before the change were published under the MIT License.
165
+
166
+ Contributions are welcome; see [CONTRIBUTING.md](https://github.com/lucaAyt/mfethuls/blob/master/CONTRIBUTING.md). First-time contributors are asked to sign the [Contributor License Agreement](https://github.com/lucaAyt/mfethuls/blob/master/CLA.md).
@@ -0,0 +1,115 @@
1
+ # mfethuls
2
+
3
+ From scattered instrument files to analysis-ready data. mfethuls is a Python framework that reads, cleans and organises experimental data: raw instrument exports are ingested against an experiment registry, normalised to a canonical schema and stored as traceable, queryable Parquet datasets. Use it from the app (`mfethuls-app`, no code needed), from notebooks, or with SQL. Experimentalists get consistent, comparable data and publication-ready figures; data scientists get harmonised data from every instrument to build features and models on.
4
+
5
+ ---
6
+
7
+ ## Instrument support
8
+
9
+ | Instrument | Models |
10
+ |---|---|
11
+ | DSC | Generic, Mettler Toledo, Perkin Elmer |
12
+ | TGA | Generic |
13
+ | FTIR | Bruker |
14
+ | UV-Vis | Shimadzu, Ocean Optics Flame (in-situ) |
15
+ | NMR | Bruker |
16
+ | Rheometer | Anton Paar |
17
+ | DMA | TA Q800 |
18
+ | SEC | Agilent |
19
+ | SAXS | Anton Paar |
20
+ | MS | Bruker |
21
+
22
+ Each parser normalises raw exports to a [canonical column schema](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/schema.md) — same column names and units regardless of instrument model.
23
+
24
+ ---
25
+
26
+ ## Install
27
+
28
+ ```shell
29
+ pip install "mfethuls[viz,notebook]"
30
+ ```
31
+
32
+ The latest development version: `pip install "mfethuls[viz,notebook] @ git+https://github.com/lucaAyt/mfethuls.git"`. The extras:
33
+
34
+ | Extra | Installs | Use when |
35
+ |---|---|---|
36
+ | `viz` | Plotly, Matplotlib, Kaleido, Streamlit | The app or notebook plotting |
37
+ | `notebook` | Jupyter, Marimo, Matplotlib, Plotly, seaborn | Interactive notebooks with plotting |
38
+
39
+ ---
40
+
41
+ ## Getting started
42
+
43
+ No Docker, no database, no server. Start the app:
44
+
45
+ ```shell
46
+ mfethuls-app
47
+ ```
48
+
49
+ The welcome page offers three ways in:
50
+
51
+ - **Get started**: choose your data folder (one subfolder per instrument) and your registry (CSV or Excel, one row per experiment; the app can create an empty one or give you an example). They are saved in `~/.mfethuls/settings.json`, so notebooks use the same folders; change them any time under **⚙ Settings**.
52
+ - **Try the example**: explore example DSC, TGA, FTIR and fluorescence data, copied to `~/mfethuls-example`. Your own data is not touched.
53
+ - **Use it from Python**: the tutorial notebook (below).
54
+
55
+ A getting-started checklist then walks through registering (**Ingest** → **Review & register**), ingesting, selecting and plotting (**Colour by**, **Style by**, axis limits, SVG/HTML export) and cleaning up (**⚙ Settings** → **Clean up**); a compact tracker stays at the top of the sidebar, next to 🏠 (back to the welcome page) and ⚙.
56
+
57
+ Non-technical users: double-click `launch.bat` (Windows) or run `bash launch.sh`; it needs only [`uv`](https://docs.astral.sh/uv/). See [docs/guides/local_setup.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/local_setup.md). Folders can also come from `.env` (copy `env_example`); folders saved in the app take precedence. `experiments_template.csv` in the repo root has an example row for every supported instrument.
58
+
59
+ **Python API:** a guided tutorial (a marimo notebook on its own copy of the example data) opens with `mfethuls-tutorial`, or **Use it from Python** on the app's welcome page.
60
+
61
+ ```python
62
+ import mfethuls
63
+
64
+ # Load one or more experiments
65
+ cs = mfethuls.load_experiments(["exp_001", "exp_002"])
66
+ df = cs.to_dataframe() # tidy long-format DataFrame
67
+
68
+ # Load all experiments for a sample
69
+ cs = mfethuls.load_samples(["S001", "S002"])
70
+ ```
71
+
72
+ **Plotting:**
73
+
74
+ ```python
75
+ fig, ax = mfethuls.plot_experiments(cs) # publication figure (Matplotlib)
76
+ fig = mfethuls.plot_experiments(cs, backend="plotly") # interactive, every data point (WebGL)
77
+ mfethuls.set_plot_backend("plotly") # make Plotly the default
78
+ ```
79
+
80
+ Each instrument gets a suitable plot, with axis labels and units (*Temperature (°C)*, *Wavenumber (cm⁻¹)*). Experiments that share an x-axis are overlaid, otherwise each gets its own panel, and time-resolved spectra series are coloured by elapsed time. Matplotlib figures use a fixed publication style and save as vector SVG/PDF. See [docs/guides/plotting.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/plotting.md).
81
+
82
+ ---
83
+
84
+ ## For teams
85
+
86
+ A shared lab server (API, background ingest, Postgres, cloud storage, OneDrive sync and a shared app) is developed separately as **mfethuls-server**, which builds on this package.
87
+
88
+ ---
89
+
90
+ ## Data access for analysis
91
+
92
+ Three stores, each with a distinct role — see [docs/guides/data_analysis.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/data_analysis.md) for the full guide including DuckDB SQL recipes and model-building patterns.
93
+
94
+ ---
95
+
96
+ ## Docs
97
+
98
+ | Document | Contents |
99
+ |---|---|
100
+ | [docs/guides/quickstart.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/quickstart.md) | Start here: install, the app's first run, and using mfethuls from Python |
101
+ | [docs/guides/workflow.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/workflow.md) | End-to-end tutorial — registry → ingest → dashboard → notebook |
102
+ | [docs/guides/local_setup.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/local_setup.md) | Non-technical user guide — `uv` + launcher |
103
+ | [docs/guides/data_analysis.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/data_analysis.md) | Notebook access — Python API, DuckDB SQL, model building |
104
+ | [docs/guides/plotting.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/guides/plotting.md) | Built-in plots, Matplotlib/Plotly backends, labels and units, dashboard plotting |
105
+ | [docs/reference/registry.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/registry.md) | Registry format, column reference, measurement profiles |
106
+ | [docs/reference/architecture.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/architecture.md) | System diagrams, ETL pipeline, storage design |
107
+ | [docs/reference/schema.md](https://github.com/lucaAyt/mfethuls/blob/master/docs/reference/schema.md) | Canonical column names, units, normalisation rules |
108
+
109
+ ---
110
+
111
+ ## License
112
+
113
+ Apache License 2.0 — see [LICENSE](https://github.com/lucaAyt/mfethuls/blob/master/LICENSE) and [NOTICE](https://github.com/lucaAyt/mfethuls/blob/master/NOTICE). Versions released before the change were published under the MIT License.
114
+
115
+ Contributions are welcome; see [CONTRIBUTING.md](https://github.com/lucaAyt/mfethuls/blob/master/CONTRIBUTING.md). First-time contributors are asked to sign the [Contributor License Agreement](https://github.com/lucaAyt/mfethuls/blob/master/CLA.md).
@@ -0,0 +1,85 @@
1
+ [project]
2
+ name = "mfethuls"
3
+ version = "0.3.1"
4
+ description = "From scattered instrument files to analysis-ready data: a Python framework and app that read, clean and organise experimental lab data."
5
+ authors = [{name = "Luca Bertossi", email = "lucabertossi@gmail.com"}]
6
+ readme = "README.md"
7
+ license = "Apache-2.0"
8
+ license-files = ["LICENSE", "NOTICE"]
9
+ requires-python = ">=3.11"
10
+ keywords = ["laboratory", "instrument data", "ETL", "data management", "DSC", "TGA", "FTIR", "UV-Vis", "rheology", "materials science"]
11
+ classifiers = [
12
+ "Development Status :: 3 - Alpha",
13
+ "Intended Audience :: Science/Research",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.11",
17
+ "Programming Language :: Python :: 3.12",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Topic :: Scientific/Engineering",
20
+ "Topic :: Scientific/Engineering :: Chemistry",
21
+ "Topic :: Scientific/Engineering :: Information Analysis",
22
+ ]
23
+ dependencies = [
24
+ "duckdb>=1.0.0",
25
+ "filelock>=3.12",
26
+ "nmrglue>=0.11",
27
+ "numpy>=1.24.2",
28
+ "openpyxl>=3.1.0",
29
+ "pandas>=1.5.3",
30
+ "pyarrow>=20.0.0",
31
+ "python-dotenv>=1.0.0",
32
+ "pytz>=2024.1",
33
+ ]
34
+
35
+ [project.optional-dependencies]
36
+ notebook = [
37
+ "notebook>=6.5.3",
38
+ "marimo>=0.9.0",
39
+ "matplotlib>=3.10.1",
40
+ "plotly>=6.0.0",
41
+ "seaborn>=0.13.0",
42
+ ]
43
+ viz = [
44
+ "matplotlib>=3.10.1",
45
+ "kaleido>=1.0.0",
46
+ "plotly>=6.0.0",
47
+ "streamlit>=1.36.0",
48
+ ]
49
+ dev = [
50
+ "pytest>=9.0.3",
51
+ "ruff>=0.6.0",
52
+ ]
53
+
54
+ [tool.ruff]
55
+ line-length = 120
56
+ extend-exclude = ["notebooks", "__marimo__"]
57
+
58
+ [tool.ruff.lint]
59
+ # Errors only (syntax, undefined names, unused imports); no style rules.
60
+ select = ["E4", "E7", "E9", "F"]
61
+
62
+ [tool.setuptools.packages.find]
63
+ where = ["src"]
64
+
65
+ [tool.setuptools.package-data]
66
+ mfethuls = ["py.typed"]
67
+ "mfethuls.config" = ["*.json", "schemas/*.json"]
68
+ "mfethuls.examples" = ["experiments_registry.csv", "data/**/*"]
69
+ "mfethuls.tutorials" = ["*.py"]
70
+
71
+ [build-system]
72
+ requires = ["setuptools>=77.0"] # SPDX license expression and license-files (PEP 639)
73
+ build-backend = "setuptools.build_meta"
74
+
75
+ [project.urls]
76
+ Homepage = "https://github.com/lucaAyt/mfethuls"
77
+ Documentation = "https://github.com/lucaAyt/mfethuls/tree/master/docs"
78
+ Repository = "https://github.com/lucaAyt/mfethuls"
79
+ Issues = "https://github.com/lucaAyt/mfethuls/issues"
80
+ Changelog = "https://github.com/lucaAyt/mfethuls/releases"
81
+
82
+ [project.scripts]
83
+ mfethuls = "mfethuls.main:main"
84
+ mfethuls-app = "mfethuls.app.launch:main"
85
+ mfethuls-tutorial = "mfethuls.tutorials:main"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,26 @@
1
+ from .comparison import ComparisonSet, load_experiments, load_samples
2
+ from .settings import use_test_env
3
+ from .experiments import Registry
4
+
5
+
6
+ def plot_experiments(*args, **kwargs):
7
+ from .plotting.comparison import plot_experiments as _plot_experiments
8
+
9
+ return _plot_experiments(*args, **kwargs)
10
+
11
+
12
+ def set_plot_backend(backend):
13
+ """Default plotting backend: "matplotlib" (publication, vector SVG) or "plotly" (interactive)."""
14
+ from .plotting.backend import set_default_backend
15
+
16
+ set_default_backend(backend)
17
+
18
+ __all__ = [
19
+ "ComparisonSet",
20
+ "Registry",
21
+ "load_experiments",
22
+ "load_samples",
23
+ "plot_experiments",
24
+ "set_plot_backend",
25
+ "use_test_env",
26
+ ]
@@ -0,0 +1,22 @@
1
+ """Small file helpers shared by the manifest and the saved settings."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import time
7
+
8
+
9
+ def replace_with_retry(source: str, target: str, attempts: int = 10) -> None:
10
+ """``os.replace``, retried briefly: on Windows it fails while another process has the target open.
11
+
12
+ Virus scanners, indexers and sync clients (OneDrive) open freshly written files for
13
+ a moment; waiting a little and trying again is enough.
14
+ """
15
+ for attempt in range(attempts):
16
+ try:
17
+ os.replace(source, target)
18
+ return
19
+ except PermissionError:
20
+ if attempt == attempts - 1:
21
+ raise
22
+ time.sleep(0.05 * (attempt + 1))
@@ -0,0 +1,6 @@
1
+ """The mfethuls Streamlit app: ``mfethuls-app`` starts it on this computer.
2
+
3
+ - :mod:`mfethuls.app.page`: the page, drawn by ``run(backend)``
4
+ - :mod:`mfethuls.app.backend`: where its data comes from (:class:`LocalBackend`)
5
+ - :mod:`mfethuls.app.register`: the "Register new data" dialog
6
+ """