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
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
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
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
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
4747fbc77d
make sure that singleRunMsrFile is a legal pointer before proceeding.
2023-11-01 14:38:21 +01: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
be29e55834
switched PRunSingleHistoRRF where possible to smart pointers.
2023-10-21 19:19:04 +02:00
8e7fda92e1
switched PRunDataHandler where possible to smart pointers.
2023-10-21 19:11:01 +02:00
890d48a95c
switched PRunBase where possible to smart pointers.
2023-10-21 18:46:24 +02:00
823ef087c9
switched PRgeHandler where possible to smart pointers.
2023-10-21 18:40:35 +02:00
05c06a071e
switched PMusrT0 where possible to smart pointers.
2023-10-21 18:34:55 +02:00
dbfadc4e42
switched PMusrCanvas where possible to smart pointers.
2023-10-21 17:47:32 +02:00
93754a9fc2
replaced some raw pointer by smart pointer in PFitter.
2023-10-21 17:45:49 +02:00
0bff931af9
switch to smart pointers in PMsr2Data where possible.
2023-10-21 13:32:44 +02:00
1a72d67be9
switched PFitter to smart pointers.
2023-10-21 11:39:16 +02:00
7e17af0256
switched PMsrHandler where possible to smart pointers.
2023-10-21 11:21:27 +02:00
5d731611cf
remove one check for Fourier only.
2023-10-18 14:22:06 +02:00
4b561b1f15
get rid of raw pointers for PFourierCanvas where it makes sense.
2023-10-18 14:21:15 +02:00
c6ebaf3675
more potential musr-data-file paths added.
2023-08-31 10:30:04 +02:00
4d1c7c10c8
make sure that exported MusrRoot files have proper stats in the histo objects.
2023-08-31 08:22:37 +02:00
22178f7869
improved search run, allowing to look for a specific file format in case the run is saved in multiple different file formats.
2023-08-30 15:05:56 +02:00
5d9eb0dcec
allow more flexible dealing with LEM run numbers > 9999.
2023-05-16 08:27:52 +02:00
05a732c9ec
add 5-digit run name template for lem, needed for addRun and dump_header.
2023-05-14 16:57:08 +02:00
f7620445dc
fixed c++ streaming output flag error.
2023-03-07 12:28:01 +01:00
3457ff9d25
make sure that dictionary generation works.
2023-02-19 11:29:55 +01:00
9e88ddb989
Merge remote-tracking branch 'origin/depthProf' into root6
2023-02-17 07:39:17 +01:00
26d4fbda11
fix of an old copy/paste error!
2023-01-10 15:33:44 +01:00
fe32046c21
updated the copyright info.
2023-01-05 10:24:31 +01:00
47bee12d3e
improvement on: allow to draw theory only at the data points for PRunNonMusr.
2023-01-05 08:12:11 +01:00
8a6e4dca6f
allow to draw theory only at the data points for PRunNonMusr.
2023-01-05 07:59:15 +01:00
7e63d22cb5
fixed formatting issue.
2022-12-21 10:17:42 +01:00
41c90ef936
define tag energy_vec with attributes start, stop, step to define rge energy vector in a compact way in startup.xml files.
2022-12-21 07:49:57 +01:00
2f712cc2c7
added some more technical docu to PMsr2Data.
2022-11-30 13:00:28 +01:00
b9d81668a7
add energy_vect tag which allows a more compact startup xml-file if the rge-files are equally spaced in energy.
2022-11-09 13:09:31 +01:00
f3414f687c
replaced sprintf -> snprintf throughout.
2022-11-05 20:16:44 +01:00
8fed497adc
implementation of depth step fits
2022-08-19 17:50:25 +02:00
43b4566870
fixed bug in msr2data global+ according to issue #33 reported on bitbucket.
2022-08-08 18:16:48 +02:00
ae7f1a2168
more work towards a modern cmake. As a first example reworked FFTW3 binding.
2022-07-01 16:18:24 +02:00
06d20d4086
adopted to new PSI-BIN lib. Added facility for finding runs via musrfit_startup.xml templates.
2022-05-28 14:10:15 +02:00
eefc49bd25
add search facility for runs via musrfit_startup.xml template entries.
2022-05-28 14:05:55 +02:00
57596ca441
fixed several copy/paste errors which prevented sometimes averaging and instead crashed.
2022-04-25 15:32:15 +02:00