46 Commits

Author SHA1 Message Date
476e2b49d6 make sure that enough relevant digits of the parameters are exported to the db/dat-file. 2018-10-26 14:26:04 +02:00
5909d59f32 allow multiple Fourier phase parameters for phase shifted real Fourier. Autophasing still missing. 2018-10-15 16:09:17 +02:00
cb14afbe07 msr2data gets a new option paramList which allows to select the number of parameters to be exported. 2016-04-28 11:11:06 +02:00
8e399fa04e first steps towards asymmetry RRF fit. 2016-01-15 17:16:07 +01:00
e55ac4ecee after cross-check with BMW cleaned up, removed one copy/paste error (break;) and re-enabled the other twos which are indeed needed. 2015-09-18 16:21:15 +02:00
cb73f8bfa0 in PMsr2Data::PrepareGlobalInputFile() there seem to be 'unmotivated' break; commands in some loops. They prevent a proper map handling. For now they are commented out, which results in a proper functioning. 2015-09-17 14:51:51 +02:00
bccc97ff22 changed setf/unsetf bug 2015-06-30 12:17:25 +02:00
bbb8550f96 since we moved to git, I cleaned up the svn prop's from the sources and added a GIT_REVISION through git-revision.h 2014-02-12 12:43:32 +01:00
03cf723199 fixed bug in msr2data for global runlist, where the pos-error instead of the value has been written to the DB file. 2013-11-29 09:04:49 +00:00
22c7702cfe docu updated 2013-01-15 12:25:48 +00:00
e5dd674b44 changed to out formating of the fitting parameters such that enough relevant digits are written 2012-11-06 06:52:33 +00:00
e1585a807e fixed missing read call in PMsr2Data 2012-10-29 13:46:55 +00:00
e6e4bc19da fixed crash when using msr2data (wrong pointer) 2012-05-30 13:33:39 +00:00
53b305ccdf added spin rotation angle to db-output-file if present 2012-05-22 14:06:32 +00:00
138e7ba369 first implementation of MusrRoot. Cleaner handling of Red/Green mode data. General cleanup 2012-03-22 07:00:34 +00:00
Bastian M. Wojek
61fd5fa948 Adjusted msr2data that it works together with the NeXus reading routine which explicitly writes the ring-anode vector 2011-07-31 07:39:52 +00:00
Bastian M. Wojek
bff5b6c043 Fixed some severe problems in the run-number-digit determination of msr2data introduced in late 2010 2011-07-30 22:05:57 +00:00
Bastian M. Wojek
1e115c7bd3 Slightly changed the behavior of msr2data (see ChangeLog for details) 2011-07-13 13:37:28 +00:00
Bastian M. Wojek
caa3fdfc12 * Define a function for the XML-reading workaround in order to clean up a bit.
For the moment we keep to copies of it -- one for the use within the various
  musrfit programs, one that can be used in user functions.

* musrt0 is now again activated in musrgui/musredit by default.
2011-06-23 11:00:09 +00:00
Bastian M. Wojek
dc48ea9712 * Suggestion how to "solve" the XML-reading problems in certain environments:
A workaround has been implemented where it is not tried any more to "directly
  parse the file" but rather the file is read into a memory buffer which then
  is parsed.
  For further information, see MUSR-122.

* Fixed a linking problem when only shared libraries are built on Cygwin
  (introduced with the split-off of libPUserFcnBase).
2011-06-16 22:00:33 +00:00
Bastian M. Wojek
8dc31cad54 Fixed crash of musrview in case the XML startup file is present but cannot be parsed correctly 2011-06-14 17:53:33 +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
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
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
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
Bastian M. Wojek
f496416062 Fixed ChangeLog 2010-11-11 08:16:25 +00:00
Bastian M. Wojek
2e49d42cfb see MUSR-155 2010-11-10 23:02:10 +00:00
Bastian M. Wojek
b99a75d156 Allow case insensitive 'run' as first entry in a runlist-file as input to msr2data 2010-06-28 08:11:01 +00:00
Bastian M. Wojek
20bb0e05a6 Added a tiny bit of documentation for the msr2data code 2010-06-27 11:23:40 +00:00
Bastian M. Wojek
10993ff2ee Tried to fix two bugs in the msr2data global-option:
* Functions in the RUN blocks are now correctly ignored
* Function lines which contain parameters with adjacent characters (+-*/()\t) should now be handled correctly [-> more tests are needed here]
2010-06-22 21:29:01 +00:00
Bastian M. Wojek
f1a0dc72fc Added another intensive check at the beginning of the db-data-output routine in order to prevent misuse of the program by using faulty global msr-files. This actually renders some of the later checks obsolete, however, I leave them for now. 2010-06-11 20:23:58 +00:00
Bastian M. Wojek
3dd64e0a3c Added a further convenience check to the file generation procedure - still needs to be tested 2010-06-11 11:24:22 +00:00
Bastian M. Wojek
fb8523d8bf Minor changes to the global input file generation 2010-06-10 12:01:40 +00:00
Bastian M. Wojek
ce6819b741 To AS
---

Added a "global" option to msr2data

First, I hope, this major "surgery" does not cause any regressions in the standard features.
If so, please revert to an older version and file a bug report.

This new option is not yet documented and should be considered as experimental.

Also the newly added code still needs some cleanup - many things have simply been written as a proof of concept.
This will be done during further testing and fine-tuning stages.
2010-06-09 19:08:30 +00:00
nemu
90807030f1 started with the next step of encapsulation, will take a while 2009-11-02 08:40:47 +00:00
nemu
2a03bb7f61 changed variables to comply with the ROOT standards. Error messages now sent to stderr rather than stdout 2009-10-30 08:29:27 +00:00
nemu
33222b675c started with the encapsulation of the data structure which should reduce the number of crashes and help to reduce memory leaks 2009-10-07 12:26:41 +00:00
Bastian M. Wojek
575856ba8f Added a few uncommon options to musrfit - further testing is required 2009-09-08 16:01:23 +00:00
nemu
060192488c merge in Bastian M. Wojek's cpp-version of msr2data. This should help to step towards a real platform independent musrfit package. 2009-08-31 11:25:18 +00:00