syncmoss 0.7.0__tar.gz → 0.8.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.
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/_MacOS.yml +20 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/_Tests.yml +29 -2
- syncmoss-0.8.1/.github/workflows/_WindowsExe.yml +74 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.gitignore +3 -0
- {syncmoss-0.7.0/syncmoss.egg-info → syncmoss-0.8.1}/PKG-INFO +54 -25
- {syncmoss-0.7.0 → syncmoss-0.8.1}/README.md +53 -24
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/MacOS.spec +3 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/Windows.spec +7 -17
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/bundle.py +0 -1
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/CMS_source_geometry_calibration.py +4 -3
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Calibration.py +31 -6
- syncmoss-0.8.1/syncmoss/Expressions/ASM P(m) from m.mdl +7 -0
- syncmoss-0.8.1/syncmoss/Expressions/ASM m from P(m).mdl +7 -0
- syncmoss-0.8.1/syncmoss/Expressions/Thickness PDF, Gamma.mdl +7 -0
- syncmoss-0.8.1/syncmoss/Expressions/Thickness PDF, pressed window (clamped plate).mdl +7 -0
- syncmoss-0.8.1/syncmoss/Expressions/Thickness PDF, pressed window (membrane).mdl +7 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library_io.py +2 -2
- syncmoss-0.8.1/syncmoss/app_paths.py +35 -0
- syncmoss-0.8.1/syncmoss/compile_functions.py +85 -0
- syncmoss-0.8.1/syncmoss/compile_window.py +126 -0
- syncmoss-0.8.1/syncmoss/components_results.py +223 -0
- syncmoss-0.8.1/syncmoss/components_search.py +1648 -0
- syncmoss-0.8.1/syncmoss/components_window.py +1122 -0
- syncmoss-0.8.1/syncmoss/console_io.py +177 -0
- syncmoss-0.8.1/syncmoss/dual_kernels.py +673 -0
- syncmoss-0.8.1/syncmoss/dual_numbers.py +476 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/exclusion_bar.py +6 -1
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/exclusion_regions.py +23 -0
- syncmoss-0.8.1/syncmoss/experimental_features.py +24 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/fit_quality.py +6 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/fitting_io.py +75 -11
- syncmoss-0.8.1/syncmoss/frozen_cache_locator.py +40 -0
- syncmoss-0.8.1/syncmoss/hamiltonian_dual.py +293 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/instrumental_io.py +102 -41
- syncmoss-0.8.1/syncmoss/jit_cache.py +196 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/legacy.py +45 -1
- syncmoss-0.8.1/syncmoss/main.py +194 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/minimi_lib.py +92 -7
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/model_io.py +77 -25
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/models.py +597 -842
- syncmoss-0.8.1/syncmoss/models_dual.py +790 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/models_positions.py +62 -412
- syncmoss-0.8.1/syncmoss/models_removed.py +763 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/one_model.py +2 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/help.md +31 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/help_extended.md +272 -9
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/models_description.md +14 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters_table.py +102 -45
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/result_window.py +2 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/results_table.py +81 -111
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/sms_theory.py +1 -1
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/spectrum_io.py +69 -33
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/spectrum_model.py +18 -8
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/spectrum_plotter.py +27 -14
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/spectrum_reference.py +105 -57
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/spectrum_reference_window.py +2 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/supp_menu.py +9 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/support_math.py +18 -13
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/syncmoss_main.py +98 -42
- syncmoss-0.8.1/syncmoss/thickness_distribution.py +37 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1/syncmoss.egg-info}/PKG-INFO +54 -25
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss.egg-info/SOURCES.txt +33 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss.egg-info/scm_file_list.json +33 -0
- syncmoss-0.8.1/tests/compile_stand_ins.py +33 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/golden_models.json +97 -168
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/resource_profile.json +1138 -330
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/syncmoss_test.py +74 -11
- syncmoss-0.8.1/tests/test_asm_p.py +186 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_channel_average.py +147 -12
- syncmoss-0.8.1/tests/test_components_search.py +688 -0
- syncmoss-0.8.1/tests/test_console_io.py +56 -0
- syncmoss-0.8.1/tests/test_distr_t.py +252 -0
- syncmoss-0.8.1/tests/test_dual_kernels.py +224 -0
- syncmoss-0.8.1/tests/test_dual_numbers.py +234 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_exclusion_gui.py +43 -1
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_exclusion_regions.py +18 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_expressions.py +15 -4
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_fit_core.py +114 -1
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_fit_quality.py +11 -5
- syncmoss-0.8.1/tests/test_hamiltonian_dual.py +158 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_hamiltonian_texture.py +230 -12
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_instrumental_metadata.py +18 -2
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_interrupt.py +33 -0
- syncmoss-0.8.1/tests/test_jacobi_elliptic.py +52 -0
- syncmoss-0.8.1/tests/test_jit_cache.py +333 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_legacy.py +38 -2
- syncmoss-0.8.1/tests/test_minimi_batch_eval.py +167 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_minimi_covariance.py +2 -3
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_model_io.py +1 -4
- syncmoss-0.8.1/tests/test_models_dual.py +415 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_result_window.py +1 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_results_table_rows.py +7 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_save_result_model.py +8 -3
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_sdw_grid.py +32 -1
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_sms_theory.py +23 -12
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_spectrum_model.py +42 -14
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_support_math.py +32 -10
- syncmoss-0.8.1/tests/test_voigt_complex.py +100 -0
- syncmoss-0.7.0/.github/workflows/_WindowsExe.yml +0 -47
- syncmoss-0.7.0/syncmoss/main.py +0 -74
- syncmoss-0.7.0/tests/test_minimi_batch_eval.py +0 -29
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.gitattributes +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/Tests.yml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/_PyPI.yml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/_TagRelease.yml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/_UploadRelease.yml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/_Version.yml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/_Wheels.yml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.github/workflows/release.yml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/.vscode/settings.json +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/COPYING.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/LICENSE +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/Lib_test/test.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/NOTICE.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/SYNCmoss.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/dmg_background.pdf +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/licenses/GPL-3.0.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/licenses/LGPL-3.0.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/macos_bundle.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/bundle/third_party_licenses.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/docs/thick_models.md +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/docs/thick_vs_thin.md +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/pyproject.toml +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/requirements.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/setup.cfg +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Central shift vs temperature.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Hyperfine field in applied field, Langevin.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Hyperfine field vs temperature, Bloch.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Hyperfine field vs temperature, critical.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Hyperfine field vs temperature, empirical.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Lamb-Mossbauer factor vs temperature.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Lifetime from line width.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Neel relaxation time vs temperature.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Paramagnetic quadrupole shift from Hamiltonian.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Quadrupole splitting, doublet.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Expressions/Quadrupole splitting, sextet.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Hamiltonian_helper.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Aegirine.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Akaganeite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Almandine.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Antitaenite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Arsenopyrite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Bornite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Bridgmanite (Fe,Al-bearing) @100 GPa.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Bridgmanite (Fe,Al-bearing).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Celadonite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Cementite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Chalcopyrite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Clinopyroxene (augite).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Copiapite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Cubanite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Epidote.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Fayalite (Fe-olivine).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Ferrihydrite (2-line).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Ferropericlase.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Goethite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Green rust (fougerite, carbonate).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Haegg carbide.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Hedenbergite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Hematite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Heterosite (FePO4).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Ilmenite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Iron phosphide.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Isocubanite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Jarosite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Kamacite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Lepidocrocite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Maghemite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Magnetite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Marcasite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Melanterite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Orthopyroxene (enstatite-ferrosilite).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Prussian blue (ferric ferrocyanide).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Pyrite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Pyrrhotite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Rhomboclase.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Roemerite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Siderite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Szomolnokite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Taenite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Talnakhite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Tetrataenite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Triphylite (LiFePO4).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Troilite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Vivianite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/Voltaite.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library/alpha-Fe (metallic iron, bcc).mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/Library_window.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/bliss_channel.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/constants.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/error_reporter.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/expression_eval.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/expressions_io.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/expressions_window.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/CheckBox.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/CheckBox_.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/CheckBox_L.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/CheckBox_L2.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/DU.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/Switch.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/UD.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/icons/icon_r.ico +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/instrumental_dialogs.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/instrumental_window.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/license_window.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/models_description_window.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/one_spectrum.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/ABSorber3.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/Be.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/Calibration.dat +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/GCMS.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/INS_APS.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/INSexp.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/INSint.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/INSth.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/KB.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/NFS.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/Standard_CMS.dat +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/Standard_SMS.dat +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/parameters/calibr.png +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/spectrum_parameters.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/test_graf.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/test_param.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/theme_dark.json +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss/theme_light.json +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss.egg-info/dependency_links.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss.egg-info/entry_points.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss.egg-info/requires.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/syncmoss.egg-info/top_level.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/README.md +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/conftest.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/Distr_corr.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/Distr_distr.mdl +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/alpha_fe_sms_000.mca +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/calibration_000_golden.json +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/generate_cal_fixtures.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/parameters/Calibration.dat +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/parameters/GCMS.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/parameters/INSexp.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/parameters/INSint.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/parameters/INSth.txt +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/synthetic_alpha_fe_cms_linear.mca +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/data/synthetic_alpha_fe_cms_sinus.mca +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/profile_resources.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_baseline_polynomial.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_bliss_channel.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_calculation_time.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_calibrate_menu.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_calibration.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_calibration_helpers.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_calibration_path.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_chi2_spread.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_cms_source_geometry_calibration.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_contact_author.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_cosine_smearing.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_create_spectrum_from_model.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_default_settings.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_distr_composition.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_distr_expansion.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_distr_mdl.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_distr_targets.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_distr_text_references.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_error_reporter.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_exclusion_fit.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_expression_fit_start.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_expression_validation.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_find_bar.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_fit_one_spectrum.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_golden_models.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_gui_smoke.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_impurity_presets.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_instrumental_joint.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_instrumental_method_choice.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_instrumental_recentre.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_instrumental_window.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_integral_points.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_library_dir.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_library_io.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_license_window.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_link_chains.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_minimi_bounds.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_model_append.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_model_only_mode.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_model_pointwise.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_nbaseline_multidistr.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_nbaseline_results.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_node_sum_reuse.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_one_model_expand.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_one_model_gui.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_overwrite_dat_instrumental.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_parameter_links.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_polarization.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_recon_composition.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_recon_mdl.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_recon_results.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_recon_variants.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_reference_shift.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_replaced_component_skip.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_results_table_image.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_search_guards.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_source_norm.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_spectrum_parameters.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_table_marks.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_take_result.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_texture_s1.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_theory_search.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/test_thick_gui.py +0 -0
- {syncmoss-0.7.0 → syncmoss-0.8.1}/tests/worker_plan.py +0 -0
|
@@ -83,10 +83,13 @@ jobs:
|
|
|
83
83
|
# wheels. The pin applies to BOTH architectures: the universal2 app holds
|
|
84
84
|
# one copy of the pure-Python code, so the two builds must resolve the
|
|
85
85
|
# same versions (checked again before the merge). --only-binary stops pip
|
|
86
|
-
# from quietly building an sdist on one architecture only.
|
|
86
|
+
# from quietly building an sdist on one architecture only. certifi comes
|
|
87
|
+
# preinstalled with the runner's Python, at the version of each runner
|
|
88
|
+
# image (they differ), and pip never upgrades an installed package by
|
|
89
|
+
# itself: --upgrade gives both the latest.
|
|
87
90
|
- name: Install dependencies
|
|
88
91
|
run: |
|
|
89
|
-
python -m pip install --upgrade pip setuptools wheel
|
|
92
|
+
python -m pip install --upgrade pip setuptools wheel certifi
|
|
90
93
|
python -m pip install --only-binary=:all: "numba==0.62.1" -r requirements.txt pyinstaller wheels/*.whl
|
|
91
94
|
python -m pip list --format=freeze
|
|
92
95
|
|
|
@@ -127,10 +130,19 @@ jobs:
|
|
|
127
130
|
|
|
128
131
|
# Runs each architecture natively (the x86_64 slice is never exercised
|
|
129
132
|
# later). After archiving, so nothing the test writes reaches the artifact.
|
|
133
|
+
# --test is a first start: a plain fit before anything is compiled, the
|
|
134
|
+
# compiling, the GUI smoke flow (main.py).
|
|
130
135
|
- name: Smoke-test the frozen app
|
|
131
136
|
run: |
|
|
132
137
|
"${APP_PATH}/Contents/MacOS/SYNCmoss" --test
|
|
133
138
|
|
|
139
|
+
# A second start of the same app: it must find everything compiled (in
|
|
140
|
+
# ~/Library/Application Support/SYNCmoss/numba_cache) and fit at least
|
|
141
|
+
# twice as fast as the first start's fit before the compiling.
|
|
142
|
+
- name: Second start of the frozen app
|
|
143
|
+
run: |
|
|
144
|
+
"${APP_PATH}/Contents/MacOS/SYNCmoss" --test-again
|
|
145
|
+
|
|
134
146
|
universal2:
|
|
135
147
|
name: Merge, sign and notarize the universal2 app
|
|
136
148
|
needs: build
|
|
@@ -380,6 +392,12 @@ jobs:
|
|
|
380
392
|
ditto dist/universal2/SYNCmoss.app "${RUNNER_TEMP}/smoke/SYNCmoss.app"
|
|
381
393
|
"${RUNNER_TEMP}/smoke/SYNCmoss.app/Contents/MacOS/SYNCmoss" --test
|
|
382
394
|
|
|
395
|
+
# A second start of that copy: everything found compiled, the fit at
|
|
396
|
+
# least twice as fast as the first start's before the compiling.
|
|
397
|
+
- name: Second start of the signed universal2 app
|
|
398
|
+
run: |
|
|
399
|
+
"${RUNNER_TEMP}/smoke/SYNCmoss.app/Contents/MacOS/SYNCmoss" --test-again
|
|
400
|
+
|
|
383
401
|
# The drag-and-drop installer window, built as crispy's
|
|
384
402
|
# package/create-dmg.sh does: a writable image holding the app, a link to
|
|
385
403
|
# /Applications, the background picture (bundle/dmg_background.pdf) and
|
|
@@ -7,10 +7,11 @@ name: _Tests (Linux / Windows / macOS)
|
|
|
7
7
|
# quickly.
|
|
8
8
|
# * release.yml -- before the (expensive) PyInstaller builds. Tests the
|
|
9
9
|
# INSTALLED WHEEL, with no marker filter, so nothing is
|
|
10
|
-
# skipped in a release
|
|
10
|
+
# skipped in a release, and starts the installed program
|
|
11
|
+
# twice (first start compiles, second finds it compiled).
|
|
11
12
|
#
|
|
12
13
|
# Both always run on all three OSes; the two lanes differ only in WHAT is
|
|
13
|
-
# installed and WHICH tests are selected.
|
|
14
|
+
# installed and WHICH tests are selected (plus the two starts of the wheel).
|
|
14
15
|
on:
|
|
15
16
|
workflow_call:
|
|
16
17
|
inputs:
|
|
@@ -107,3 +108,29 @@ jobs:
|
|
|
107
108
|
# which oversubscribes a small CI runner. xdist is installed above
|
|
108
109
|
# only so that this flag parses.
|
|
109
110
|
python -m pytest "$GITHUB_WORKSPACE/tests" -n 0 "${args[@]}"
|
|
111
|
+
|
|
112
|
+
# The installed program started twice, as a user starts it (wheel lane
|
|
113
|
+
# only, i.e. before a release): the first start (--test: a plain fit
|
|
114
|
+
# before anything is compiled, the compiling, the GUI smoke flow), then a
|
|
115
|
+
# second one, which must find everything compiled -- numba_cache/ in the
|
|
116
|
+
# installed package -- and fit at least twice as fast (--test-again).
|
|
117
|
+
# The smoke driver is not in the wheel: it comes from the checkout.
|
|
118
|
+
- name: First start of the installed program
|
|
119
|
+
if: inputs.install == 'wheel'
|
|
120
|
+
shell: bash
|
|
121
|
+
env:
|
|
122
|
+
QT_QPA_PLATFORM: offscreen
|
|
123
|
+
PYTHONPATH: ${{ github.workspace }}/tests
|
|
124
|
+
run: |
|
|
125
|
+
cd "$(mktemp -d)"
|
|
126
|
+
syncmoss --test
|
|
127
|
+
|
|
128
|
+
- name: Second start of the installed program
|
|
129
|
+
if: inputs.install == 'wheel'
|
|
130
|
+
shell: bash
|
|
131
|
+
env:
|
|
132
|
+
QT_QPA_PLATFORM: offscreen
|
|
133
|
+
PYTHONPATH: ${{ github.workspace }}/tests
|
|
134
|
+
run: |
|
|
135
|
+
cd "$(mktemp -d)"
|
|
136
|
+
syncmoss --test-again
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: _Windows (PyInstaller executable)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
windows_pyinstaller:
|
|
8
|
+
runs-on: windows-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v6
|
|
11
|
+
|
|
12
|
+
- uses: actions/setup-python@v6
|
|
13
|
+
with:
|
|
14
|
+
python-version: "3.13"
|
|
15
|
+
cache: "pip"
|
|
16
|
+
|
|
17
|
+
- name: Download wheel artifact
|
|
18
|
+
uses: actions/download-artifact@v6
|
|
19
|
+
with:
|
|
20
|
+
name: wheels
|
|
21
|
+
path: wheels
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: |
|
|
25
|
+
python -m pip install --upgrade pip setuptools wheel
|
|
26
|
+
pip install -r requirements.txt
|
|
27
|
+
# PowerShell does NOT expand a glob when calling a native command, so
|
|
28
|
+
# `pip install wheels/*.whl` handed pip the literal string and failed --
|
|
29
|
+
# silently, because the step's exit code came from the last line. Resolve
|
|
30
|
+
# the path in PowerShell instead.
|
|
31
|
+
pip install (Get-ChildItem wheels/*.whl).FullName
|
|
32
|
+
pip install pyinstaller
|
|
33
|
+
|
|
34
|
+
- name: Build with PyInstaller
|
|
35
|
+
run: python bundle/bundle.py
|
|
36
|
+
|
|
37
|
+
# Before the smoke test, so nothing it writes next to the executable (the
|
|
38
|
+
# compiled functions, numba_cache/) reaches the artifact.
|
|
39
|
+
- name: Upload Windows executable
|
|
40
|
+
uses: actions/upload-artifact@v5
|
|
41
|
+
with:
|
|
42
|
+
name: windows-executable-pyinstaller
|
|
43
|
+
path: bundle/Windows/SYNCmoss/**
|
|
44
|
+
retention-days: 5
|
|
45
|
+
|
|
46
|
+
# The pytest suite already ran on Windows in _Tests.yml (before this job);
|
|
47
|
+
# here we only self-test the frozen executable via the bundled smoke driver.
|
|
48
|
+
# --test is a first start: a plain fit before anything is compiled, the
|
|
49
|
+
# compiling, the GUI smoke flow (main.py).
|
|
50
|
+
#
|
|
51
|
+
# SYNCmoss.exe is a GUI-subsystem build, so PowerShell does NOT wait for
|
|
52
|
+
# it and leaves $LASTEXITCODE unset. Start-Process -Wait -PassThru waits
|
|
53
|
+
# and reports the real exit code; the redirected stdout/stderr are valid
|
|
54
|
+
# handles that the program prints into (syncmoss/console_io.py).
|
|
55
|
+
- name: Run smoke test on frozen executable
|
|
56
|
+
timeout-minutes: 30
|
|
57
|
+
run: |
|
|
58
|
+
$run = Start-Process -FilePath bundle\Windows\SYNCmoss\SYNCmoss.exe -ArgumentList '--test' `
|
|
59
|
+
-Wait -PassThru -RedirectStandardOutput first.out -RedirectStandardError first.err
|
|
60
|
+
Get-Content first.out, first.err -ErrorAction SilentlyContinue | Write-Host
|
|
61
|
+
Write-Host "exit code: $($run.ExitCode)"
|
|
62
|
+
exit $run.ExitCode
|
|
63
|
+
|
|
64
|
+
# A second start of the same executable: it must find everything compiled
|
|
65
|
+
# (numba_cache/ next to it) and fit at least twice as fast as the first
|
|
66
|
+
# start's fit before the compiling.
|
|
67
|
+
- name: Second start of the frozen executable
|
|
68
|
+
timeout-minutes: 10
|
|
69
|
+
run: |
|
|
70
|
+
$run = Start-Process -FilePath bundle\Windows\SYNCmoss\SYNCmoss.exe -ArgumentList '--test-again' `
|
|
71
|
+
-Wait -PassThru -RedirectStandardOutput second.out -RedirectStandardError second.err
|
|
72
|
+
Get-Content second.out, second.err -ErrorAction SilentlyContinue | Write-Host
|
|
73
|
+
Write-Host "exit code: $($run.ExitCode)"
|
|
74
|
+
exit $run.ExitCode
|
|
@@ -140,6 +140,9 @@ bundle/Windows/
|
|
|
140
140
|
|
|
141
141
|
# The user's saved settings (Supp -> Save settings as default): never shipped
|
|
142
142
|
syncmoss/parameters/config.json
|
|
143
|
+
# numba's compiled functions (syncmoss/jit_cache.py): the machine's own
|
|
144
|
+
syncmoss/numba_cache/
|
|
145
|
+
syncmoss/numba_cache_time/
|
|
143
146
|
|
|
144
147
|
# fitting results
|
|
145
148
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: syncmoss
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.1
|
|
4
4
|
Summary: SYNCmoss — Mössbauer spectroscopy analysis application
|
|
5
5
|
Author: Sergey Yaroslavtsev
|
|
6
6
|
License: MIT
|
|
@@ -71,38 +71,67 @@ syncmoss
|
|
|
71
71
|
|
|
72
72
|
## Main features
|
|
73
73
|
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
*
|
|
82
|
-
* MDGD model (instead of xVBF https://doi.org/10.1016/j.nimb.2025.165669)
|
|
83
|
-
* SCDW: spin- and charge-density-wave model
|
|
84
|
-
* Multi-dimensional distributions with correlations (not reconstruction but functional)
|
|
85
|
-
* Distribution reconstruction with regularization (on testing)
|
|
86
|
-
* Expressions (which could be linked to parameters)
|
|
87
|
-
* Online (along with experiment) fitting
|
|
88
|
-
* Parallel calculations of full-transmission integral
|
|
89
|
-
* Library with import/export - create your own and share it with others, ~50 reference phases included
|
|
90
|
-
* Interactive spectrum image
|
|
91
|
-
|
|
74
|
+
*Both kinds of Mössbauer source*
|
|
75
|
+
* SMS — synchrotron Mössbauer source (polarized, settable polarization degree)
|
|
76
|
+
and CMS — conventional radioactive source (unpolarized)
|
|
77
|
+
* Instrumental function found from a spectrum of a standard absorber (single
|
|
78
|
+
line, α-Fe, or any model, also jointly over several spectra); for SMS also a
|
|
79
|
+
simulated ⁵⁷FeBO₃ source; for CMS the source line width and the cosine
|
|
80
|
+
smearing of the source–aperture geometry
|
|
81
|
+
* Each `.dat` file can carry its own instrumental function
|
|
92
82
|
|
|
93
83
|
*Thick samples and proper handling of polarization*
|
|
94
|
-
*
|
|
95
|
-
|
|
96
|
-
together
|
|
97
|
-
* Works in both source modes: polarized SMS
|
|
98
|
-
(with a settable linear polarization degree)
|
|
99
|
-
and unpolarized CMS
|
|
84
|
+
* Full transmission integral, calculated in parallel on all cores
|
|
85
|
+
* Every model builds a 2x2 cross-section matrix, so absorber thickness,
|
|
86
|
+
polarization and multi-line interference are treated together
|
|
100
87
|
* `Layer` marker: stack layers of different orientation or composition, each with
|
|
101
88
|
its own transmission matrix
|
|
102
89
|
* Magnetic texture: uniaxial order `A` on every anisotropic component plus the
|
|
103
90
|
magnetic polar order `Am` on the Faraday-active ones - a random powder,
|
|
104
91
|
a textured foil and a single crystal are the same model at different values
|
|
105
92
|
|
|
93
|
+
*Models*
|
|
94
|
+
* Singlet, doublet, sextet
|
|
95
|
+
* Full Hamiltonian for the single crystal, mosaic textured and powder cases (one
|
|
96
|
+
model, three order parameters)
|
|
97
|
+
* 2-state relaxation and many-state superparamagnetic relaxation
|
|
98
|
+
* Anharmonic spin modulation (ASM)
|
|
99
|
+
* MDGD (instead of xVBF https://doi.org/10.1016/j.nimb.2025.165669)
|
|
100
|
+
* SCDW: spin- and charge-density-wave model
|
|
101
|
+
* A measured spectrum used as a component
|
|
102
|
+
* Multi-dimensional functional distributions of any parameter, with correlations
|
|
103
|
+
* Distribution reconstruction with regularization (on testing)
|
|
104
|
+
* Thickness distribution of the sample
|
|
105
|
+
* Expressions and links between parameters
|
|
106
|
+
* Library with import/export - create your own and share it with others, ~50
|
|
107
|
+
reference phases included
|
|
108
|
+
|
|
109
|
+
*Fitting*
|
|
110
|
+
* Maximum-likelihood fits for Poisson counts, with the exact derivatives of
|
|
111
|
+
the model
|
|
112
|
+
* Errors and correlation matrix; fit-quality statistics (χ², deviance,
|
|
113
|
+
misfit) telling a model problem from counting noise
|
|
114
|
+
* Several spectra: sequence (batch) fitting, simultaneous fitting with one model
|
|
115
|
+
(shared and per-spectrum parameters) or with a model built spectrum by
|
|
116
|
+
spectrum
|
|
117
|
+
* Components of many spectra (a series or a map): the spectral components
|
|
118
|
+
found in the data and their amount in every spectrum
|
|
119
|
+
* Exclusion regions: velocity ranges left out of the fit
|
|
120
|
+
* Simulation without a spectrum
|
|
121
|
+
|
|
122
|
+
*Spectra*
|
|
123
|
+
* RAW (`.mca`, `.cmca`, `.ws5`, `.w98`, `.moe`, `.m1`, `.mcs`) and folded `.dat`
|
|
124
|
+
files; online fitting along with the experiment (Bliss channel)
|
|
125
|
+
* Velocity calibration with α-Fe (sinusoidal or linear drive), RAW → `.dat`
|
|
126
|
+
* Each point modelled as the average over its channel's velocity range
|
|
127
|
+
* Sum spectra, subtract a model, create a spectrum from a model
|
|
128
|
+
|
|
129
|
+
*Interface*
|
|
130
|
+
* Interactive plot: zoom, components, distributions, a result window per
|
|
131
|
+
spectrum after a simultaneous fit
|
|
132
|
+
* Results saved as text tables, figures (PNG, SVG) and a ready-to-load model
|
|
133
|
+
* Light and dark themes, built-in help and description of every model
|
|
134
|
+
|
|
106
135
|
## Bug report and Feature request
|
|
107
136
|
|
|
108
137
|
Both are very welcome — SYNCmoss gets better mainly from user feedback.
|
|
@@ -38,38 +38,67 @@ syncmoss
|
|
|
38
38
|
|
|
39
39
|
## Main features
|
|
40
40
|
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
* MDGD model (instead of xVBF https://doi.org/10.1016/j.nimb.2025.165669)
|
|
50
|
-
* SCDW: spin- and charge-density-wave model
|
|
51
|
-
* Multi-dimensional distributions with correlations (not reconstruction but functional)
|
|
52
|
-
* Distribution reconstruction with regularization (on testing)
|
|
53
|
-
* Expressions (which could be linked to parameters)
|
|
54
|
-
* Online (along with experiment) fitting
|
|
55
|
-
* Parallel calculations of full-transmission integral
|
|
56
|
-
* Library with import/export - create your own and share it with others, ~50 reference phases included
|
|
57
|
-
* Interactive spectrum image
|
|
58
|
-
|
|
41
|
+
*Both kinds of Mössbauer source*
|
|
42
|
+
* SMS — synchrotron Mössbauer source (polarized, settable polarization degree)
|
|
43
|
+
and CMS — conventional radioactive source (unpolarized)
|
|
44
|
+
* Instrumental function found from a spectrum of a standard absorber (single
|
|
45
|
+
line, α-Fe, or any model, also jointly over several spectra); for SMS also a
|
|
46
|
+
simulated ⁵⁷FeBO₃ source; for CMS the source line width and the cosine
|
|
47
|
+
smearing of the source–aperture geometry
|
|
48
|
+
* Each `.dat` file can carry its own instrumental function
|
|
59
49
|
|
|
60
50
|
*Thick samples and proper handling of polarization*
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
together
|
|
64
|
-
* Works in both source modes: polarized SMS
|
|
65
|
-
(with a settable linear polarization degree)
|
|
66
|
-
and unpolarized CMS
|
|
51
|
+
* Full transmission integral, calculated in parallel on all cores
|
|
52
|
+
* Every model builds a 2x2 cross-section matrix, so absorber thickness,
|
|
53
|
+
polarization and multi-line interference are treated together
|
|
67
54
|
* `Layer` marker: stack layers of different orientation or composition, each with
|
|
68
55
|
its own transmission matrix
|
|
69
56
|
* Magnetic texture: uniaxial order `A` on every anisotropic component plus the
|
|
70
57
|
magnetic polar order `Am` on the Faraday-active ones - a random powder,
|
|
71
58
|
a textured foil and a single crystal are the same model at different values
|
|
72
59
|
|
|
60
|
+
*Models*
|
|
61
|
+
* Singlet, doublet, sextet
|
|
62
|
+
* Full Hamiltonian for the single crystal, mosaic textured and powder cases (one
|
|
63
|
+
model, three order parameters)
|
|
64
|
+
* 2-state relaxation and many-state superparamagnetic relaxation
|
|
65
|
+
* Anharmonic spin modulation (ASM)
|
|
66
|
+
* MDGD (instead of xVBF https://doi.org/10.1016/j.nimb.2025.165669)
|
|
67
|
+
* SCDW: spin- and charge-density-wave model
|
|
68
|
+
* A measured spectrum used as a component
|
|
69
|
+
* Multi-dimensional functional distributions of any parameter, with correlations
|
|
70
|
+
* Distribution reconstruction with regularization (on testing)
|
|
71
|
+
* Thickness distribution of the sample
|
|
72
|
+
* Expressions and links between parameters
|
|
73
|
+
* Library with import/export - create your own and share it with others, ~50
|
|
74
|
+
reference phases included
|
|
75
|
+
|
|
76
|
+
*Fitting*
|
|
77
|
+
* Maximum-likelihood fits for Poisson counts, with the exact derivatives of
|
|
78
|
+
the model
|
|
79
|
+
* Errors and correlation matrix; fit-quality statistics (χ², deviance,
|
|
80
|
+
misfit) telling a model problem from counting noise
|
|
81
|
+
* Several spectra: sequence (batch) fitting, simultaneous fitting with one model
|
|
82
|
+
(shared and per-spectrum parameters) or with a model built spectrum by
|
|
83
|
+
spectrum
|
|
84
|
+
* Components of many spectra (a series or a map): the spectral components
|
|
85
|
+
found in the data and their amount in every spectrum
|
|
86
|
+
* Exclusion regions: velocity ranges left out of the fit
|
|
87
|
+
* Simulation without a spectrum
|
|
88
|
+
|
|
89
|
+
*Spectra*
|
|
90
|
+
* RAW (`.mca`, `.cmca`, `.ws5`, `.w98`, `.moe`, `.m1`, `.mcs`) and folded `.dat`
|
|
91
|
+
files; online fitting along with the experiment (Bliss channel)
|
|
92
|
+
* Velocity calibration with α-Fe (sinusoidal or linear drive), RAW → `.dat`
|
|
93
|
+
* Each point modelled as the average over its channel's velocity range
|
|
94
|
+
* Sum spectra, subtract a model, create a spectrum from a model
|
|
95
|
+
|
|
96
|
+
*Interface*
|
|
97
|
+
* Interactive plot: zoom, components, distributions, a result window per
|
|
98
|
+
spectrum after a simultaneous fit
|
|
99
|
+
* Results saved as text tables, figures (PNG, SVG) and a ready-to-load model
|
|
100
|
+
* Light and dark themes, built-in help and description of every model
|
|
101
|
+
|
|
73
102
|
## Bug report and Feature request
|
|
74
103
|
|
|
75
104
|
Both are very welcome — SYNCmoss gets better mainly from user feedback.
|
|
@@ -25,6 +25,9 @@ hiddenimports += ['PySide6.QtCore', 'PySide6.QtGui', 'PySide6.QtWidgets']
|
|
|
25
25
|
# GUI smoke driver lives in tests/syncmoss_test.py; bundling it lets the frozen
|
|
26
26
|
# binary self-test via `SYNCmoss --test` (see syncmoss/main.py).
|
|
27
27
|
hiddenimports += ['syncmoss_test']
|
|
28
|
+
# numba imports it by the name main.py puts in NUMBA_CACHE_LOCATOR_CLASSES
|
|
29
|
+
# (syncmoss/jit_cache.py); no module imports it.
|
|
30
|
+
hiddenimports += ['syncmoss.frozen_cache_locator']
|
|
28
31
|
|
|
29
32
|
# llvmlite carries native data/bitcode that must be collected.
|
|
30
33
|
llvmlite_data = collect_data_files('llvmlite')
|
|
@@ -23,6 +23,9 @@ hiddenimports += ['PySide6.QtCore', 'PySide6.QtGui', 'PySide6.QtWidgets']
|
|
|
23
23
|
# GUI smoke driver lives in tests/syncmoss_test.py; bundling it lets the frozen
|
|
24
24
|
# binary self-test via `SYNCmoss --test` (see syncmoss/main.py).
|
|
25
25
|
hiddenimports += ['syncmoss_test']
|
|
26
|
+
# numba imports it by the name main.py puts in NUMBA_CACHE_LOCATOR_CLASSES
|
|
27
|
+
# (syncmoss/jit_cache.py); no module imports it.
|
|
28
|
+
hiddenimports += ['syncmoss.frozen_cache_locator']
|
|
26
29
|
|
|
27
30
|
# scipy is only needed for scipy.linalg.eig (the import-time "dummy" in
|
|
28
31
|
# models.py); scipy_excludes below drops the big unused subpackages.
|
|
@@ -96,7 +99,10 @@ a.datas += license_datas(a)
|
|
|
96
99
|
|
|
97
100
|
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
|
98
101
|
|
|
99
|
-
# ──
|
|
102
|
+
# ── The one exe: GUI subsystem (no console window on a double-click) ──
|
|
103
|
+
# Started from a terminal it prints there, with --console into a console
|
|
104
|
+
# window of its own (syncmoss/console_io.py); there is no separate console
|
|
105
|
+
# exe any more.
|
|
100
106
|
exe_gui = EXE(
|
|
101
107
|
pyz,
|
|
102
108
|
a.scripts,
|
|
@@ -111,24 +117,8 @@ exe_gui = EXE(
|
|
|
111
117
|
icon=os.path.join(syncmoss_dir, 'icons', 'icon_r.ico'),
|
|
112
118
|
)
|
|
113
119
|
|
|
114
|
-
# ── Console/debug exe ──────────────────────────────────────────
|
|
115
|
-
exe_console = EXE(
|
|
116
|
-
pyz,
|
|
117
|
-
a.scripts,
|
|
118
|
-
[],
|
|
119
|
-
exclude_binaries=True,
|
|
120
|
-
name='SYNCmoss_console',
|
|
121
|
-
debug=True,
|
|
122
|
-
bootloader_ignore_signals=False,
|
|
123
|
-
strip=False,
|
|
124
|
-
upx=True,
|
|
125
|
-
console=True,
|
|
126
|
-
icon=os.path.join(syncmoss_dir, 'icons', 'icon_r.ico'),
|
|
127
|
-
)
|
|
128
|
-
|
|
129
120
|
coll = COLLECT(
|
|
130
121
|
exe_gui,
|
|
131
|
-
exe_console,
|
|
132
122
|
a.binaries,
|
|
133
123
|
a.zipfiles,
|
|
134
124
|
a.datas,
|
|
@@ -45,8 +45,8 @@ import numpy as np
|
|
|
45
45
|
|
|
46
46
|
import syncmoss.minimi_lib as mi
|
|
47
47
|
import syncmoss.models as m5
|
|
48
|
-
from syncmoss.Calibration import (Calibration, MulCoCMS, _fold_sinusoidal, _fold_triangular,
|
|
49
|
-
_raw_drive, _write_calibration_dat)
|
|
48
|
+
from syncmoss.Calibration import (Calibration, MulCoCMS, _fold_offset, _fold_sinusoidal, _fold_triangular,
|
|
49
|
+
_load_raw_counts, _raw_drive, _write_calibration_dat)
|
|
50
50
|
from syncmoss.constants import ALPHA_FE_FIELD, NAT_WIDTH, number_of_baseline_parameters as NB
|
|
51
51
|
from syncmoss.instrumental_io import compute_norm, drive_rest_velocity, r_ratio_of, write_gcms_file
|
|
52
52
|
from syncmoss.spectrum_io import estimate_edge_background, load_spectrum
|
|
@@ -352,7 +352,8 @@ def calibrate_source(params_dir, files, pool, JN, vel_start, G, dtheta, diameter
|
|
|
352
352
|
for raw, fit in ((alpha_raw, model[:n_ch]), (line_raw, model[n_ch:]))]
|
|
353
353
|
alpha, line = folded(JN)
|
|
354
354
|
v_f, n1, n2 = alpha[0], alpha[4], alpha[5]
|
|
355
|
-
_write_calibration_dat(params_dir, details['method'], n1, n2, v_f, alpha[1]
|
|
355
|
+
_write_calibration_dat(params_dir, details['method'], n1, n2, v_f, alpha[1],
|
|
356
|
+
_fold_offset(v_axis, details['method'], q[DRIVE]))
|
|
356
357
|
write_gcms_file(params_dir, G, dtheta, *diameters)
|
|
357
358
|
fine = folded(4 * JN)
|
|
358
359
|
# each spectrum's model with its baseline as folded (two channels to a
|
|
@@ -471,18 +471,21 @@ def _fold_triangular(v_axis, counts, fit_curve, pS):
|
|
|
471
471
|
# Output #
|
|
472
472
|
# ========================================================================= #
|
|
473
473
|
|
|
474
|
-
def _write_calibration_dat(dir_path, method, n1, n2, v_folded, data_folded):
|
|
474
|
+
def _write_calibration_dat(dir_path, method, n1, n2, v_folded, data_folded, fold_offset=None):
|
|
475
475
|
"""Write ``Calibration.dat``: the folded velocity/counts table.
|
|
476
476
|
|
|
477
|
-
The header line records the drive waveform (``sin``/``lin``)
|
|
478
|
-
window ``n1 n2``
|
|
479
|
-
can be folded identically (see
|
|
477
|
+
The header line records the drive waveform (``sin``/``lin``), the fold
|
|
478
|
+
window ``n1 n2`` and the fold offset (_fold_offset) so that measurement
|
|
479
|
+
spectra recorded with the same drive can be folded identically (see
|
|
480
|
+
spectrum_io.load_spectrum) and the two visits summed into each of their
|
|
481
|
+
points averaged where they are (models.channel_windows).
|
|
480
482
|
"""
|
|
481
483
|
rpath = os.path.join(str(dir_path), 'Calibration.dat')
|
|
482
484
|
with open(rpath, "w") as f:
|
|
483
485
|
f.write(str('#') + '\t' + str('lin ') * (method == 1)
|
|
484
486
|
+ str('sin ') * (method == 0)
|
|
485
|
-
+ '\t' + str(n1) + '\t' + str(n2)
|
|
487
|
+
+ '\t' + str(n1) + '\t' + str(n2)
|
|
488
|
+
+ ('' if fold_offset is None else '\t' + str(float(fold_offset))) + '\n')
|
|
486
489
|
for i in range(0, int(len(v_folded))):
|
|
487
490
|
f.write(str(v_folded[i]) + '\t' + str(data_folded[i]) + '\n')
|
|
488
491
|
f.write('\n')
|
|
@@ -534,6 +537,26 @@ def _save_sms_diagnostic_plot(dir_path, channels, counts, final_curve, flat_coun
|
|
|
534
537
|
plt.close()
|
|
535
538
|
|
|
536
539
|
|
|
540
|
+
def _fold_offset(v_axis, method, pS):
|
|
541
|
+
"""How many channels apart the two visits summed into one folded point are
|
|
542
|
+
-- the same for every point, 0 to 1/2: the fold pairs whole channels,
|
|
543
|
+
while the turning point lies where the drive's phase puts it. Folding the
|
|
544
|
+
channels' velocities *v_axis* themselves, as the counts are folded
|
|
545
|
+
(_fold_sinusoidal / _fold_triangular with *pS*), gives every pair's
|
|
546
|
+
velocity difference as the fold's residual: the fold offset times the
|
|
547
|
+
channel width (_raw_drive's). Its median over the pairs: a triangular
|
|
548
|
+
fold's turning point pairs two channels of one ramp, a whole channel
|
|
549
|
+
apart."""
|
|
550
|
+
v_axis = np.asarray(v_axis, dtype=float)
|
|
551
|
+
if method == 0:
|
|
552
|
+
v_pair, _, _, difference, _, _ = _fold_sinusoidal(v_axis, v_axis, v_axis, pS[2])
|
|
553
|
+
else:
|
|
554
|
+
v_pair, _, _, difference, _, _ = _fold_triangular(v_axis, v_axis, v_axis, pS)
|
|
555
|
+
widths = m5.channel_widths(v_pair, _raw_drive(v_axis))
|
|
556
|
+
counted = widths > 0
|
|
557
|
+
return float(np.median(np.abs(difference[counted]) / widths[counted]))
|
|
558
|
+
|
|
559
|
+
|
|
537
560
|
def _raw_drive(x):
|
|
538
561
|
"""The drive of a raw sweep -- a velocity per channel, in recorded order, as
|
|
539
562
|
sin_cal or lin_cal make them -- as models.channel_widths takes it: a cosine
|
|
@@ -1062,6 +1085,8 @@ def Calibration(dir_path, Cal_file, pool, VVV, INS, JN, x0, MulCo, Vel_start=1,
|
|
|
1062
1085
|
v_folded, data_folded, fit_folded, fold_residual, n1, n2 = \
|
|
1063
1086
|
_fold_triangular(v_axis, counts, final_curve, pS)
|
|
1064
1087
|
v_folded = v_folded + INS_shift
|
|
1088
|
+
fold_offset = _fold_offset(v_axis, method, pS)
|
|
1089
|
+
print('Fold offset (channels between the two visits of a point):', fold_offset)
|
|
1065
1090
|
|
|
1066
1091
|
# --------------------------------------------------------------------- #
|
|
1067
1092
|
# STEP 12: diagnostics and output files. #
|
|
@@ -1083,7 +1108,7 @@ def Calibration(dir_path, Cal_file, pool, VVV, INS, JN, x0, MulCo, Vel_start=1,
|
|
|
1083
1108
|
'or ', max(np.abs(data_folded - fit_folded)) / pCAL[0], '%')
|
|
1084
1109
|
print('Texture parameter is', pS[10], 'should be 0 for isotropic')
|
|
1085
1110
|
|
|
1086
|
-
_write_calibration_dat(dir_path, method, n1, n2, v_folded, data_folded)
|
|
1111
|
+
_write_calibration_dat(dir_path, method, n1, n2, v_folded, data_folded, fold_offset)
|
|
1087
1112
|
|
|
1088
1113
|
if details is not None:
|
|
1089
1114
|
details.update(method=method, velocity=cal, pS=np.copy(pS), model=np.copy(pCAL), counts=np.copy(counts))
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#@Comment P(m) of the ASM from its anharmonicity m (a published value, say): a start, or a comparison.
|
|
2
|
+
#@Comment $P=\mathrm{sign}(m)\,\frac{L}{L+\ln 16},\ L=-\ln(1-|m|)$
|
|
3
|
+
#@Comment {m} - the anharmonicity m, |m| < 1.
|
|
4
|
+
baseline Expression
|
|
5
|
+
red red
|
|
6
|
+
10000 1 False 0 True 0 True 0 True 0 True =[1,1] True =[2,1] True =[3,1] True False False False False False False False False False False False False False False False False False False False
|
|
7
|
+
sign({m})*log(1-abs({m}))/(log(1-abs({m}))-log(16)) True False False False False False False False False False False False False False False False False False False False False False False False False False False
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#@Comment The anharmonicity m of the ASM - the parameter of the Jacobi function sn(x|m) of the moment's angle - from its fitted P(m).
|
|
2
|
+
#@Comment $m=\mathrm{sign}(P)\,\left(1-16^{-|P|/(1-|P|)}\right)$
|
|
3
|
+
#@Comment {P} - P(m) of the ASM row: p[k], k its number. P = 0 is m = 0 (harmonic cycloid), P = ±1 is m = ±1 (collinear).
|
|
4
|
+
baseline Expression
|
|
5
|
+
red red
|
|
6
|
+
10000 1 False 0 True 0 True 0 True 0 True =[1,1] True =[2,1] True =[3,1] True False False False False False False False False False False False False False False False False False False False
|
|
7
|
+
sign({P})*(1-16**(-abs({P})/(1-abs({P})))) True False False False False False False False False False False False False False False False False False False False False False False False False False False
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#@Comment A smooth spread of the thickness around its mean (a Gamma distribution).
|
|
2
|
+
#@Comment $P(X) \propto X^{1/\mathrm{CV}^2-1}\,e^{-X/(\mathrm{CV}^2 m)}$. {CV} - the relative width (standard deviation over mean); {mean} - the mean thickness $m$ in the unit of X (any value while λ is large). L from 0, R about $m(1 + 5\,\mathrm{CV})$.
|
|
3
|
+
#@Comment For a Distr_T: copy the text into its Probability density function, then delete this row (an Expression holding X stops a fit).
|
|
4
|
+
baseline Expression
|
|
5
|
+
red red
|
|
6
|
+
10000 1 False 0 True 0 True 0 True 0 True =[1,1] True =[2,1] True =[3,1] True False False False False False False False False False False False False False False False False False False False
|
|
7
|
+
X**(1/{CV}**2-1)*exp(-X/({CV}**2*{mean})) True False False False False False False False False False False False False False False False False False False False False False False False False False False
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#@Comment Thickness of a powder pressed under a stiff window clamped at the rim (a bent plate): most of the area near the rim thickness.
|
|
2
|
+
#@Comment $P(X) \propto \frac{1}{\sqrt{X - d_e}}$ on $[d_e, d_c]$. {rim} - the rim thickness $d_e$. It is infinite at the rim, so start L half a step above it: L = $d_e + (d_c - d_e)/(2\,\mathrm{Num})$, R = $d_c$.
|
|
3
|
+
#@Comment For a Distr_T: copy the text into its Probability density function, then delete this row (an Expression holding X stops a fit).
|
|
4
|
+
baseline Expression
|
|
5
|
+
red red
|
|
6
|
+
10000 1 False 0 True 0 True 0 True 0 True =[1,1] True =[2,1] True =[3,1] True False False False False False False False False False False False False False False False False False False False
|
|
7
|
+
1/sqrt(X-{rim}) True False False False False False False False False False False False False False False False False False False False False False False False False False False
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#@Comment Thickness of a powder pressed under a flexible window that bulges like a membrane (paraboloid): uniform between the rim and the centre thickness.
|
|
2
|
+
#@Comment $P(X) = \frac{1}{d_c - d_e}$ on $[d_e, d_c]$: set L = $d_e$ (rim), R = $d_c$ (centre).
|
|
3
|
+
#@Comment For a Distr_T: copy the text into its Probability density function, then delete this row (an Expression holding X stops a fit).
|
|
4
|
+
baseline Expression
|
|
5
|
+
red red
|
|
6
|
+
10000 1 False 0 True 0 True 0 True 0 True =[1,1] True =[2,1] True =[3,1] True False False False False False False False False False False False False False False False False False False False
|
|
7
|
+
1+0*X True False False False False False False False False False False False False False False False False False False False False False False False False False False
|
|
@@ -41,7 +41,7 @@ MODEL_PARAMETER_NAMES = {
|
|
|
41
41
|
'Hamilton_pc': ['T', 'δ, mm/s', 'Q, mm/s', 'H, T', 'L, mm/s', 'G, mm/s', 'η', 'θH, °', 'φH, °'],
|
|
42
42
|
'Relax_MS': ['T', 'δ, mm/s', 'ε, mm/s', 'H, T', 'L, mm/s', 'θk, °', 'φh, °', 'A', 'R', 'alfa', 'S'],
|
|
43
43
|
'Relax_2S': ['T', 'δ1, mm/s', 'ε1, mm/s', 'H1, T', 'δ2, mm/s', 'ε2, mm/s', 'H2, T', 'L, mm/s', 'θk, °', 'φh, °', 'A', 'Am', 'Ω12', 'P1/P2'],
|
|
44
|
-
'ASM': ['T', 'δ, mm/s', 'εm, mm/s', 'εl, mm/s', 'His, T', 'Han, T', 'L, mm/s', 'G, mm/s', 'm', 'θk, °', 'φh, °', 'A', 'Num', 'I13', 'ω, °'],
|
|
44
|
+
'ASM': ['T', 'δ, mm/s', 'εm, mm/s', 'εl, mm/s', 'His, T', 'Han, T', 'L, mm/s', 'G, mm/s', 'P(m)', 'θk, °', 'φh, °', 'A', 'Num', 'I13', 'ω, °'],
|
|
45
45
|
'Spectrum': ['T', 'δ, mm/s', 'G, mm/s', 'Lines'],
|
|
46
46
|
'SCDW': ['T', 'δ, mm/s', 'ε, mm/s', 'H0, T', 'L, mm/s', 'G, mm/s', 'θk, °', 'φh, °', 'A', 'Am', 'KδH', 'KεH', 'Φ, °', 'h1, T', 'h3, T', 'h5, T', 'h7, T', 'h9, T', 'h11, T', 'h13, T', 'h15, T', 'd2, mm/s', 'd4, mm/s', 'd6, mm/s', 'd8, mm/s', 'N/Γ', 'I13'],
|
|
47
47
|
'Be': ['T', 'δ, mm/s', 'ε, mm/s', 'L, mm/s', 'G, mm/s', 'θk, °', 'φh, °', 'A', 'G2/G1'],
|
|
@@ -49,10 +49,10 @@ MODEL_PARAMETER_NAMES = {
|
|
|
49
49
|
'Variables': [f'V{i + 1}' for i in range(numco)],
|
|
50
50
|
'Nbaseline': ['Ns', 'Os', 'c²s', 'lins', 'Nnr', 'Onr', 'c²nr', 'linnr'],
|
|
51
51
|
'Expression': ['Expression'],
|
|
52
|
-
'Average_H': ['T', 'δ, mm/s', 'ε, mm/s', 'Hin, T', 'L, mm/s', 'G, mm/s', 'Hex, T', 'K', 'J', 'θ, °', 'N'],
|
|
53
52
|
'Distr': ['par', 'L', 'R', 'Num', 'Probability density function'],
|
|
54
53
|
'Corr': ['par', 'Dependency function'],
|
|
55
54
|
'Recon': ['par', 'L', 'R', 'Num', 'D_dif', 'D_dif2', 'weights'],
|
|
55
|
+
'Distr_T': ['λ, X', 'L', 'R', 'Num', 'Probability density function'],
|
|
56
56
|
'Layer': [],
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Where the program's own files are: the folder it runs from, and on a frozen
|
|
2
|
+
macOS app the per-user folder that takes its writable ones.
|
|
3
|
+
|
|
4
|
+
Kept light (no numpy, no numba): main.py reads it before anything imports numba
|
|
5
|
+
(jit_cache.configure).
|
|
6
|
+
"""
|
|
7
|
+
import os
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
from PySide6.QtCore import QCoreApplication, QStandardPaths
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def app_dir():
|
|
14
|
+
"""The folder of the program's files (parameters/, Library/, icons/, ...).
|
|
15
|
+
A frozen app keeps its code in _internal/ and its files next to the
|
|
16
|
+
executable; from source or a pip install they are in the package folder."""
|
|
17
|
+
if getattr(sys, 'frozen', False):
|
|
18
|
+
return os.path.dirname(sys.executable)
|
|
19
|
+
return os.path.dirname(os.path.abspath(__file__))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def is_frozen_macos():
|
|
23
|
+
"""True inside the frozen macOS ``.app``: its bundled folders are not
|
|
24
|
+
reliably writable (code-signed, or launched from a read-only mount)."""
|
|
25
|
+
return getattr(sys, 'frozen', False) and sys.platform == 'darwin'
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def macos_app_data_dir():
|
|
29
|
+
"""The per-user writable location of the frozen macOS app
|
|
30
|
+
(``QStandardPaths.AppDataLocation`` -> ``~/Library/Application Support/SYNCmoss``)."""
|
|
31
|
+
QCoreApplication.setApplicationName('SYNCmoss') # deterministic AppData path
|
|
32
|
+
target = QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppDataLocation)
|
|
33
|
+
if not target:
|
|
34
|
+
target = os.path.expanduser('~/Library/Application Support/SYNCmoss')
|
|
35
|
+
return target
|