c9fc373862
improved dat-file reading for mupp.
2024-07-02 09:26:44 +02:00
64d3b6192b
added the option to write the content of the MINUIT2.OUTPUT ascii file as yaml. This extends the previous commit from Ryan M.L. McFadden.
2024-06-18 11:16:15 +02:00
Ryan M. L. McFadden
caccfb175a
Merged in yaml (pull request #16 )
...
write the fit results to an easy-to-read/parse yaml file
Approved-by: Andreas Suter
2024-06-18 06:18:31 +00:00
Ryan M. L. McFadden
833171c712
write the fit results to an easy-to-read/parse yaml file
...
This patch adds routines for writing a comprehensive set of fit results (i.e., parameter values, parabolic errors, asymmetric errors, covariances, correlation coefficients, etc.) for an individual `.msr` file to an easy-to-read/parse `.yaml` file.
The main motivation for the code addition is to provide users with easy access to the fit's covariance matrix without the need for "extra" manual effort (e.g., parsing the contents of `MINUIT2.OUTPUT` or `MINUIT2.root`). The other fit quantities are also included for completeness.
Reading/accessing the output is trivial using, for example, the PyYAML Python library (https://github.com/yaml/pyyaml ):
```python
import yaml
with open("2125_tf_histo.yaml", "r") as fh:
results = yaml.load(fh, Loader=yaml.SafeLoader)
cov = results["covariance"]["Field_1"]["Sigma_1"]
```
Note: the naming conventions chosen for the blocks in the `.yaml` output closely follow those used by the iminuit Python library (https://github.com/scikit-hep/iminuit ).
2024-06-17 12:51:04 -03:00
Ryan M. L. McFadden
61749b91c4
fix segfault
...
This patch provides a memory-safe alternative to the changes introduced in commit 418adfde670b8d911a6a313e11a2ee4fc98feeee, which causes a segfault when the "batch mode" flag is required (i.e., for ascii/graphic export).
Note: the program name (i.e., argv[0]) has been added the list arguments passed to ROOT's TApplication. This ensures that the TApplication name matches that of the program (see 542b98b2cc/core/base/src/TApplication.cxx (L179-L180)
).
2024-06-17 10:52:14 -03:00
ccaba41868
modernize the way how to check/deal with OpenMP. This helps also on the macOS side.
2024-06-07 12:44:59 +02:00
418adfde67
propagate only necessary root flags to TApplication.
2024-06-06 10:06:50 +02:00
66df43c663
moved mupp examples form the mupp source destination to doc/examples.
2024-04-26 15:54:44 +02:00
92b1aac7a6
got rid off some double brackets.
2024-04-20 18:13:09 +02:00
26e25ce10b
fixed a fruther bracket bug.
2024-04-20 17:39:18 +02:00
cedaabeb98
improved bracket handling in function string generation.
2024-04-20 09:40:04 +02:00
7198521f60
make sure that brackets are not lost in the function reconstruct, e.g. 1/(2*parX) is not going over into 1/2*parX.
2024-04-19 12:39:01 +02:00
834884f3a4
improved variable description.
2024-04-19 12:36:24 +02:00
80591f6f13
fixed an error in DumpHeader when dumping a TDoubleVector.
2024-03-16 15:59:17 +01:00
44456c49e9
fixed a typo: Atoi() instead of Atof().
2024-03-16 15:34:00 +01:00
495f02c3c6
for macos: add /usr/local/lib to DYLD_LIBRARY_PATH for qt5. This is needed to find the nexus lib.
2024-03-07 12:31:32 +01:00
ad2e84581f
revert back to boost ellint_1, since on many compilers the c++17 std::comp_ellint_1 is not yet implemented.
2024-03-05 18:29:34 +01:00
59dbae4a1e
use the QProcess startDetached method and not the static one.
2024-02-14 09:30:17 +01:00
4d176c395c
use the QProcess startDetached method and not the static one.
2024-02-14 09:26:27 +01:00
74978025fb
start musrview as detached process: simplifies things.
2024-02-13 10:12:50 +01:00
deeee783f5
add /usr/local/lib to default DYLD_LIBRARY_PATH for macOS.
2024-02-08 14:00:06 +01:00
cadd28b9fe
Merge branch 'root6' of https://git.psi.ch/nemu/musrfit into root6
2024-02-03 20:01:01 +01:00
79c8be54bf
update of the copyright info.
2024-02-03 19:58:11 +01:00
3cf89c6571
added some missing qutation marks musrfit_startup.xml.
2023-11-29 12:47:24 +01:00
673a742631
added some more default search path to default musrfit_startup.xml.
2023-11-29 12:44:58 +01:00
23ac67a443
add an option to musrfit which allows to replace to musrfit_startup.xml by the default one.
2023-11-11 18:26:25 +01:00
d6a3767040
adopted default path/file-name scheme to the current state.
2023-11-10 15:05:38 +01:00
ecd9e4a953
improved the nonlocal field dump, by allowing a custom range.
2023-11-08 12:57:16 +01:00
3c2b0322c0
mupp: got rid of some left over raw pointers by replacing them through smartpointers.
2023-11-03 07:54:52 +01:00
4747fbc77d
make sure that singleRunMsrFile is a legal pointer before proceeding.
2023-11-01 14:38:21 +01:00
b1b808ad7b
switched TGapIntegrals from raw -> smart pointers.
2023-11-01 08:54:24 +01:00
2d1875ebfe
remove unused code.
2023-11-01 08:27:48 +01:00
d221ef1ed0
more work in switching raw -> smart pointer.
2023-11-01 08:27:04 +01:00
f7c45f46ff
switched TLondon1D from raw -> smart pointers.
2023-11-01 08:00:47 +01:00
5b093208eb
fixed stupid copy/paste error when switching to smart pointers in PMusrWiz.
2023-10-31 18:08:31 +01:00
7a1f60d00f
adopted MusrRootDefinition doc to smart pointer use. Updated MusrRootDefinition.pdf
2023-10-31 08:18:01 +01:00
de2d8394d3
adopted MusrRootDefinition doc to smart pointer use.
2023-10-31 08:00:22 +01:00
af13e78c52
more work on Raw -> Smart Pointers for external libs.
2023-10-27 23:23:19 +02:00
7691ef2815
Raw -> Smart Pointers in TMusrRunHeader.
2023-10-25 17:59:05 +02:00
8f4a7c6b68
Raw -> Smart Pointers in PNeXus.
2023-10-25 17:52:24 +02:00
1cb0cfd3e7
Nonlocal: Raw -> Smart Pointers. Improved config of standalone dump_nonlocal_field.
2023-10-25 17:40:56 +02:00
344a5c8ba0
print for debug: the ostream need explicit string not char[].
2023-10-25 13:47:00 +02:00
6f521668c0
increased main version to 1.9.2, libPMusr to 1.4.0, and mupp to 1.1.0.
2023-10-25 08:46:02 +02:00
02a1cb7a0c
added check for mupp script in case the data collection is not readable.
2023-10-25 08:32:13 +02:00
fdeed5dec4
(i) fix of missing status init. (ii) changed vector copy evaluation.
2023-10-24 21:09:35 +02:00
e676d3c045
Raw -> Smart Pointers for mupp_plotter, qt5/qt6.
2023-10-24 16:07:56 +02:00
9911d88889
Raw -> Smart Pointers for PVarDialog, mupp, qt5/qt6.
2023-10-24 13:08:30 +02:00
51520868f1
Raw -> Smart Pointers for mupp, qt5/qt6.
2023-10-24 12:55:26 +02:00
3d149dc6ab
Raw -> Smart Pointers for musrWiz, qt5.
2023-10-24 12:15:20 +02:00
e79322b348
Raw -> Smart Pointers for musrStep, qt5.
2023-10-24 10:17:16 +02:00