Fix various bugs in MSR::PrepParamTable
This commit is contained in:
8
src/external/MuSRFitGUI/MSR.pm
vendored
8
src/external/MuSRFitGUI/MSR.pm
vendored
@ -221,7 +221,6 @@ sub CreateMSR {
|
|||||||
# Also for Imaginaryand and Real for RRF fits
|
# Also for Imaginaryand and Real for RRF fits
|
||||||
|
|
||||||
$RUN = $RUNS[ $iRun - 1 ];
|
$RUN = $RUNS[ $iRun - 1 ];
|
||||||
print "RUN=$RUN\n";
|
|
||||||
|
|
||||||
if ($All{"RUNSType"}) {
|
if ($All{"RUNSType"}) {
|
||||||
$RUN_Line = MSR::RUNFileNameMan($RUN);
|
$RUN_Line = MSR::RUNFileNameMan($RUN);
|
||||||
@ -229,7 +228,6 @@ sub CreateMSR {
|
|||||||
$RUN_Line = MSR::RUNFileNameAuto($RUN,$YEAR,$BeamLine);
|
$RUN_Line = MSR::RUNFileNameAuto($RUN,$YEAR,$BeamLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
print "Line=$RUN_Line\n";
|
|
||||||
|
|
||||||
$Type_Line = "fittype 2";
|
$Type_Line = "fittype 2";
|
||||||
$PLT = 2;
|
$PLT = 2;
|
||||||
@ -1144,6 +1142,7 @@ sub PrepParamTable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$Shared = $All{"Sh_$Param"};
|
$Shared = $All{"Sh_$Param"};
|
||||||
|
if ( $Shared!=1 || $iRun == 1 ) {
|
||||||
# It there are multiple runs index the parameters accordingly
|
# It there are multiple runs index the parameters accordingly
|
||||||
$Param=$Param."_".$iRun;
|
$Param=$Param."_".$iRun;
|
||||||
# Check if this parameter has been initialized befor. If not take from defaults
|
# Check if this parameter has been initialized befor. If not take from defaults
|
||||||
@ -1163,8 +1162,6 @@ sub PrepParamTable {
|
|||||||
}
|
}
|
||||||
$values=join(",",$Param,$value,$error,$minvalue,$maxvalue);
|
$values=join(",",$Param,$value,$error,$minvalue,$maxvalue);
|
||||||
$ParTable{$PCount}=$values;
|
$ParTable{$PCount}=$values;
|
||||||
|
|
||||||
if ( $Shared!=1 || $iRun == 1 ) {
|
|
||||||
$PCount++;
|
$PCount++;
|
||||||
}
|
}
|
||||||
$NP++;
|
$NP++;
|
||||||
@ -1195,6 +1192,7 @@ sub PrepParamTable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$Shared = $All{"Sh_$Param"};
|
$Shared = $All{"Sh_$Param"};
|
||||||
|
if ( $Shared!=1 || $iRun == 1 ) {
|
||||||
# It there are multiple runs index the parameters accordingly
|
# It there are multiple runs index the parameters accordingly
|
||||||
$Param=$Param."_".$iRun;
|
$Param=$Param."_".$iRun;
|
||||||
# Check if this parameter has been initialized befor. If not take from defaults
|
# Check if this parameter has been initialized befor. If not take from defaults
|
||||||
@ -1207,6 +1205,7 @@ sub PrepParamTable {
|
|||||||
# I need this although it is already in the MSR.pm module, just for this table
|
# I need this although it is already in the MSR.pm module, just for this table
|
||||||
# We can remove it from the MSR module later...
|
# We can remove it from the MSR module later...
|
||||||
# Or keep in the MSR as function ??
|
# Or keep in the MSR as function ??
|
||||||
|
print "I got into here\n";
|
||||||
$value = $Defaults{$Param_ORG};
|
$value = $Defaults{$Param_ORG};
|
||||||
$error = $Defaults{ join( "", $erradd, $Param_ORG ) };
|
$error = $Defaults{ join( "", $erradd, $Param_ORG ) };
|
||||||
$minvalue = $Defaults{ join("", $Param_ORG, $minadd ) };
|
$minvalue = $Defaults{ join("", $Param_ORG, $minadd ) };
|
||||||
@ -1214,7 +1213,6 @@ sub PrepParamTable {
|
|||||||
}
|
}
|
||||||
$values=join(",",$Param,$value,$error,$minvalue,$maxvalue);
|
$values=join(",",$Param,$value,$error,$minvalue,$maxvalue);
|
||||||
$ParTable{$PCount}=$values;
|
$ParTable{$PCount}=$values;
|
||||||
if ( $Shared!=1 || $iRun == 1 ) {
|
|
||||||
$PCount++;
|
$PCount++;
|
||||||
}
|
}
|
||||||
$NP++;
|
$NP++;
|
||||||
|
2
src/external/MuSRFitGUI/MuSRFit.pl
vendored
2
src/external/MuSRFitGUI/MuSRFit.pl
vendored
@ -1,6 +1,6 @@
|
|||||||
# Form implementation generated from reading ui file 'MuSRFit.ui'
|
# Form implementation generated from reading ui file 'MuSRFit.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Sep 4 16:24:16 2009
|
# Created: Fri Sep 4 17:35:36 2009
|
||||||
# by: The PerlQt User Interface Compiler (puic)
|
# by: The PerlQt User Interface Compiler (puic)
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
Reference in New Issue
Block a user