942 Commits

Author SHA1 Message Date
nemu
d634a9286c added a magnetic proximity user function to the ASlibs 2011-03-10 11:45:02 +00:00
Bastian M. Wojek
34e462e05f Put in line the time-resolution output of single-histogram and asymmetry data.
Now both have a line break at the end--before this has only been true for the asymmetry data.
(If the line break is not needed it should be consistently removed and replaced by a cout.flush()
followed by a line break when musrview is terminated.)
2011-03-03 13:49:22 +00:00
nemu
103283400a improved parameter representation in musrview (MUSR-167) 2011-02-24 07:44:27 +00:00
nemu
626a7dd9f8 fixes plotting issues described in MUSR-174 2011-02-24 06:14:57 +00:00
Bastian M. Wojek
9624e5171f Slight improvement when an empty MUSRFITPATH environment variable is set 2011-02-22 19:26:31 +00:00
Bastian M. Wojek
c048dc4553 Fixed accidental casting of a NULL pointer in msr2data---originally this was expected to lead to an exception (but obviously things are different) 2011-02-21 20:44:06 +00:00
nemu
076753e018 added an additional layer for process killing to musrgui/musredit which hopefully should help to reduce the number of musrfit/musrview corpses with high CPU load. 2011-02-21 10:20:47 +00:00
nemu
7fc76c7cb1 crash of musrfit if a run-data-files is not found (MUSR-176) 2011-02-14 20:18:45 +00:00
nemu
fe38ded491 removed an unnessary debug info 2011-02-14 19:54:08 +00:00
nemu
ccd9d6ccfd added the command SCALE_N0_BKG TRUE | FALSE to the command-block. This can be used to force a single histogram fit to use either 1/ns scaling for N0 and background or 1/bins one. 2011-02-14 19:52:00 +00:00
Bastian M. Wojek
8369690dc3 AA35 will not do anything anyway, therefore:
changed the type of the PSI-BIN bin_width member from float to double.
2011-02-09 17:53:15 +00:00
nemu
507c36b4d8 corrected time resolution for WKM from (ns) -> (us) 2011-02-07 16:59:42 +00:00
nemu
9e4f92173a the formating of fixed parameters (step=0) where wrongly formatted (connected to MUSR-167). This should be done correctly now. 2011-02-07 13:30:47 +00:00
nemu
90ed9df1b6 some more work, including the PSI-BIN write routines which are officially not released yet. 2011-02-07 06:02:56 +00:00
nemu
20665da9eb fix of fix concerning cyclotron background correction for asymmetry fits (MUSR-175). For single histogram fits, the chisq/maxLH is now estimated correctly (see ChangeLog for more details) 2011-02-06 14:30:07 +00:00
Bastian M. Wojek
5c6331f51f Added some documentation to the numerical integration classes and applied small cosmetic changes to msr2data. 2011-02-06 12:44:45 +00:00
Bastian M. Wojek
4a3ccab3e9 Fix of the auto-header generation in msr2data for DOS-formatted output files 2011-02-05 18:32:12 +00:00
Bastian M. Wojek
bd9c562eb9 Remove also 'white lines' at the end of the output file when using the automatic header inclusion in msr2data 2011-02-05 15:42:06 +00:00
nemu
0a422229b1 correct the end of the background intervall such that the background is as close as possible to a multiple of the proton cylce 2011-02-04 06:52:04 +00:00
nemu
aca61d4731 improved parameter formating 2011-02-03 10:31:57 +00:00
nemu
fbd0cae432 tries to deal with precision request MUSR-167 2011-02-02 21:56:57 +00:00
Bastian M. Wojek
2cb6219fd0 Added an option "new" for output-file recreation to msr2data.
This is present already in musrgui/musredit.
Maybe the command-line users who do not know the "rm" shell command find it useful.
2011-01-30 20:53:59 +00:00
Bastian M. Wojek
91b9fef9a2 Changed the default behavior of msr2data for writing output-file headers.
The default (if no option is given) is now that only for newly generated or empty files the respective header will be written.
If data is appended to an existing file, it is assumed that the header also is present already!
In this case only the new data blocks are appended directly after to existing ones.
[Most probably this behavior is broken if used in a native Windows environment, however, this is not the only problem there...]

The previous option "noheader" is preserved.
It suppresses the output of the header in any case.
If new data are appended to an existing output file this is done at the end of the file---just as before!

A new option "header" has been introduced.
If this is given, the output of the header is forced---no matter if a file (probably with header) existed before or not.
Also in this case all new data (and the header) are appended at the end of the output file if it existed already.

In case both options are given, the default behavior is activated.
2011-01-30 14:23:14 +00:00
Bastian M. Wojek
decd363404 msr2data becomes more tolerant
Non-existing msr-files in the specified list of runs are now ignored as far as possible!
Still a warning for each non-existing file will be issued!
Before, encountering such a file led to the termination of the program.

Also the writing of the empty lines at the end of the data-output-file should be fixed now in this case.
It is needed to get a "correct db-file".
Before, when the program has been aborted before the last run was processed, these empty lines had not been appended to the file.
2011-01-29 13:16:04 +00:00
Bastian M. Wojek
8f5882897a Another try to build libCuba while working around gcc-bugs 2011-01-27 21:47:13 +00:00
Bastian M. Wojek
55071fb754 Updated the built-in version of the cuba library to version 2.1 within the BMWlibs.
Also the cuba-compiler-check for gcc-versions containing a certain bug (4.2, 4.4.3) has been adopted.
This still needs to be tested on systems having such a gcc.

If this new version of the built-in library should be installed,
first make sure that the old version is completely deinstalled (including headers, pkg-config-files, etc.).
2011-01-27 13:46:51 +00:00
Bastian M. Wojek
a89c70ae84 Fixed the linking of the BMWlibs under Cygwin by adding explicitly "-lgomp" to the linker-flags
which seems to be necessary for Cygwin and does not hurt under GNU/Linux.
2011-01-26 19:22:27 +00:00
Bastian M. Wojek
20f61a8c2c Fix of a problem in msr2data introduced earlier today 2011-01-22 16:00:51 +00:00
Bastian M. Wojek
c17f67bdb0 MUSR-170 2011-01-22 13:26:13 +00:00
Bastian M. Wojek
230586a2d4 Fixed a few more problems in msr2data.
That these did not surface earlier can only be due to the musrgui/musredit interface which has additional safeguards.
Obviously no one uses this program from the command line (my guess).
2011-01-22 12:39:34 +00:00
Bastian M. Wojek
ebcd192509 Added a minor extension to the global mode of msr2data which allows the generation of a global msr-file including the results of single-run fits for
run-specific parameters. This might help to get overall better starting parameters for a global fit.
For a few more details and an example, see the documentation.
Any testing is very welcome.
2011-01-22 01:17:22 +00:00
nemu
826ad1efa9 a more fexible handling of filename list and run list in any2many (see MUSR-166). Still far from production 2011-01-13 12:10:30 +00:00
nemu
f9a310f2fa Changed two annoying little problems in musrview (PMusrCanvas):
(i) It was not always possible to zoom the x-range down below some threshold. The reason was that on overlay histogram frame is needed which is invoked by DrawFrame from the DataTheory Pad. This by default has only 1000 'bins'. If the plotted histogram had more bins (e.g. 16000 bins) zooming was only possible down to the relative ratio (16 for the example). This is fixed now by increasing the 'bins' of the overlay histogram frame.
(ii) When toggling between data view and difference view, the x-range was subtly shrinking.
2011-01-11 20:50:38 +00:00
nemu
ade1f49d96 formatting issue for high field muSR (MUSR-164) 2011-01-11 07:13:31 +00:00
nemu
a406219826 some more work on any2may. Still not meant for production 2011-01-11 06:24:02 +00:00
nemu
452018bedf added any2many, an attempt to write the universial musr-data-file converter. Still some work needed. Added the possibility to show the t0 saved in the data file. 2010-12-23 13:16:57 +00:00
Bastian M. Wojek
2735116ab7 Resulting from a previous bug in musrfit there exist many msr-files which have a huge number of empty lines at the end.
Files that are newly generated through msr2data from now on will only write two successive empty lines (at any occurence).
Any further empty lines will be deleted.
2010-12-14 16:33:05 +00:00
f6a3e31eee Added view packing option 2010-12-14 15:16:00 +00:00
Bastian M. Wojek
6aa2d61c35 Introduced another safeguard in msr2data against the first one who tries to call her/his beamline PIE1083, the institute TRIUMF10000 or the data format NEXUS2011 2010-12-11 16:08:41 +00:00
21b1421cfe Start implementing use of msr2dat for global fit 2010-11-24 14:22:15 +00:00
6442d6a9e6 Trying to catch up with changes id bulk directories.. hopeless 2010-11-24 14:01:17 +00:00
9595ce5871 Trying to catch up with changes id bulk directories.. hopeless 2010-11-24 13:57:33 +00:00
nemu
7cb19dada8 fixed musrt0 crash for histogram number out of range (MUSR-157) 2010-11-19 06:54:15 +00:00
Bastian M. Wojek
41f10b77c0 Comment the FUNCTIONS block in the written msr-file if there is none in the present msr-data-structure 2010-11-17 19:47:07 +00:00
nemu
04e9d4e04f less strict handling of empty function blocks, than before 2010-11-17 14:18:11 +00:00
nemu
62d33112ba y-axis cosmetics the 2nd, or 3rd, or ... never mind 2010-11-15 06:48:37 +00:00
Bastian M. Wojek
ec164c535d Added a few more functions to libFitPofB 2010-11-14 17:19:46 +00:00
Bastian M. Wojek
31335c4bd1 Attempt to fix An. London model in BMWlibs - theory has to be checked again. 2010-11-13 20:55:54 +00:00
nemu
cb1e5ca292 when comparing current/previous parameters, ignore the phase 2010-11-13 08:50:55 +00:00
nemu
7d928c93c4 changed URL to PSI web site docu, so that is accessible from outside of PSI 2010-11-12 16:20:49 +00:00