802 Commits

Author SHA1 Message Date
Bastian M. Wojek
8fbadeb506 Removed some IF clauses from the chisq loops in order to enhance the fitting performance 2011-05-22 07:54:03 +00:00
Bastian M. Wojek
708cb0115b Remove some includes left over from previous testing sessions 2011-05-21 14:52:25 +00:00
Bastian M. Wojek
1b5c1df691 Fixed a bug in the LF calculations and parallelized the chi^2 calculations in single-histogram and asymmetry fits 2011-05-21 14:11:00 +00:00
nemu
8884600bec fix filtering of field units for PSI-BIN/PSI-MDU 2011-05-09 09:13:09 +00:00
nemu
4063fed5ea fixed casting problem between uint32 and time_t present for some compilers (MUSR-185) 2011-05-07 14:18:58 +00:00
Bastian M. Wojek
3a56d329ce Increase the number of figures shown in the time-resolution debugging output in order to accommodate the needs of the high-field project. 2011-05-06 15:54:22 +00:00
nemu
89ea4cb63f cosmetic in the musrview legend concerning the units 2011-05-05 12:34:32 +00:00
nemu
a25af63b8e FIXED bug reported in MUSR-183: missing background for 2nd histo in asymmetry fits when using musrt0. 2011-05-04 05:41:23 +00:00
nemu
043d185a60 clean up NeXus interface 2011-04-14 08:05:47 +00:00
nemu
2f8e393dfa any2many: force the user to define the exact NeXus ouput formate (HDF4,HDF5,XML) 2011-04-14 08:01:44 +00:00
Bastian M. Wojek
0191375a96 The previous approach did not work...
Needed to split off the userFcn part from libPMusr to be able to provide a shared library of it (under Cygwin).
2011-04-13 09:59:33 +00:00
Bastian M. Wojek
1024f5a28f Removed the user-function dependency on libPMusr
It should now be possible to build a static version of musrfit and shared libraries for the user functions.
This is needed on systems which do not support linking static libraries to shared ones (like Cygwin).
These changes still need to be tested on Cygwin, especially with user functions implementing the "global interface".
2011-04-13 08:18:14 +00:00
Bastian M. Wojek
2c514a881c Tried to fix the ASCII export from musrview in the case of a Fourier-power-difference (some more tests needed); additionally minor changes to the BMWlibs 2011-04-10 16:27:36 +00:00
ae83e1a296 added missing NEXUS_CLFAGS 2011-04-08 14:40:18 +00:00
nemu
abeaf81812 bug in asymmetry fit with fixed background 2011-04-08 13:08:37 +00:00
nemu
49619fcffb added NeXus support. Still a lot of testing will be needed, documentation updated, etc. 2011-04-08 09:24:32 +00:00
Bastian M. Wojek
aaa0638729 Restructured the interdependencies within the BMWlibs (maybe other commits will follow) 2011-03-20 18:03:49 +00:00
Bastian M. Wojek
dc86404f88 Fixed formatting issue in the FUNCTIONS block (MUSR-171) 2011-03-19 14:01:05 +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
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
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
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
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
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
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