Commit Graph

2353 Commits

Author SHA1 Message Date
suter_a c9fc373862 improved dat-file reading for mupp. 2024-07-02 09:26:44 +02:00
suter_a ebefcf7af9 updated the docu. 2024-06-24 09:44:07 +02:00
suter_a 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. v1.9.5 2024-06-18 11:16:15 +02:00
suter_a 6bcb26f9d5 Merge branch 'root6' of https://bitbucket.org/muonspin/musrfit into root6 2024-06-18 08:19:01 +02:00
ext-mcfadd_r 6b865efd3b Merged in ignore (pull request #17)
ignore all files generated from an in-repo build

Approved-by: Andreas Suter
2024-06-18 06:18:56 +00:00
ext-mcfadd_r 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
ext-mcfadd_r 1845b5c176 Merged in segfault (pull request #15)
fix segfault

Approved-by: Andreas Suter
2024-06-18 06:18:14 +00:00
ext-mcfadd_r 8821112927 ignore all files generated from an in-repo build 2024-06-17 13:07:06 -03:00
ext-mcfadd_r 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
ext-mcfadd_r 61749b91c4 fix segfault
This patch provides a memory-safe alternative to the changes introduced in commit 418adfde67, 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 https://github.com/root-project/root/blob/542b98b2ccca760fd83117b750b89d81b8e9b926/core/base/src/TApplication.cxx#L179-L180).
2024-06-17 10:52:14 -03:00
suter_a 3d92e2eefb add CPU info to the configure process. 2024-06-09 17:45:02 +02:00
suter_a b71dce9291 remove more accidently added file. 2024-06-08 16:39:57 +02:00
suter_a 1aa4ce0a99 remove accidentely added file. 2024-06-08 16:36:54 +02:00
suter_a 425ed02e22 update of the docu. 2024-06-08 09:23:36 +02:00
suter_a a36abfc461 updated version info, due to the macOS OpenMP support. 2024-06-08 09:17:05 +02:00
suter_a ccaba41868 modernize the way how to check/deal with OpenMP. This helps also on the macOS side. v1.9.4 2024-06-07 12:44:59 +02:00
suter_a 418adfde67 propagate only necessary root flags to TApplication. 2024-06-06 10:06:50 +02:00
suter_a 66df43c663 moved mupp examples form the mupp source destination to doc/examples. 2024-04-26 15:54:44 +02:00
suter_a 4a6885f55b update of the documentation. 2024-04-23 10:50:11 +02:00
suter_a 92b1aac7a6 got rid off some double brackets. 2024-04-20 18:13:09 +02:00
suter_a 26e25ce10b fixed a fruther bracket bug. 2024-04-20 17:39:18 +02:00
suter_a cedaabeb98 improved bracket handling in function string generation. 2024-04-20 09:40:04 +02:00
suter_a 032510fbcb update of the ChangeLog. 2024-04-19 12:44:43 +02:00
suter_a 8cfd0bcc4a increased musrfit patch number. v1.9.3 2024-04-19 12:40:50 +02:00
suter_a 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
suter_a 834884f3a4 improved variable description. 2024-04-19 12:36:24 +02:00
suter_a 80591f6f13 fixed an error in DumpHeader when dumping a TDoubleVector. 2024-03-16 15:59:17 +01:00
suter_a 44456c49e9 fixed a typo: Atoi() instead of Atof(). 2024-03-16 15:34:00 +01:00
suter_a 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
suter_a 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
suter_a 59dbae4a1e use the QProcess startDetached method and not the static one. 2024-02-14 09:30:17 +01:00
suter_a 4d176c395c use the QProcess startDetached method and not the static one. 2024-02-14 09:26:27 +01:00
suter_a 74978025fb start musrview as detached process: simplifies things. 2024-02-13 10:12:50 +01:00
suter_a deeee783f5 add /usr/local/lib to default DYLD_LIBRARY_PATH for macOS. 2024-02-08 14:00:06 +01:00
suter_a cadd28b9fe Merge branch 'root6' of https://git.psi.ch/nemu/musrfit into root6 2024-02-03 20:01:01 +01:00
suter_a 79c8be54bf update of the copyright info. 2024-02-03 19:58:11 +01:00
suter_a 3cf89c6571 added some missing qutation marks musrfit_startup.xml. 2023-11-29 12:47:24 +01:00
suter_a 673a742631 added some more default search path to default musrfit_startup.xml. 2023-11-29 12:44:58 +01:00
suter_a f68775dd64 Merge branch 'root6' of https://gitlab.psi.ch/nemu/musrfit into root6 2023-11-15 16:07:37 +01:00
suter_a 23bf2ec2fc added proper rpath handling. 2023-11-15 16:04:21 +01:00
suter_a 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
suter_a d6a3767040 adopted default path/file-name scheme to the current state. 2023-11-10 15:05:38 +01:00
suter_a 75d0c9e01a adopted the technical doxygen files to the current state. 2023-11-10 08:26:52 +01:00
suter_a ecd9e4a953 improved the nonlocal field dump, by allowing a custom range. 2023-11-08 12:57:16 +01:00
suter_a 3c2b0322c0 mupp: got rid of some left over raw pointers by replacing them through smartpointers. 2023-11-03 07:54:52 +01:00
suter_a 4747fbc77d make sure that singleRunMsrFile is a legal pointer before proceeding. 2023-11-01 14:38:21 +01:00
suter_a b1b808ad7b switched TGapIntegrals from raw -> smart pointers. 2023-11-01 08:54:24 +01:00
suter_a 2d1875ebfe remove unused code. 2023-11-01 08:27:48 +01:00
suter_a d221ef1ed0 more work in switching raw -> smart pointer. 2023-11-01 08:27:04 +01:00
suter_a f7c45f46ff switched TLondon1D from raw -> smart pointers. 2023-11-01 08:00:47 +01:00