Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Fox/src/Fox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ int main (int argc, char *argv[])
} else {
wxMessageDialog d(NULL,_T("Failed loading file:\n")+name,_T("Error"),wxOK|wxICON_ERROR);
d.ShowModal();
}
}
};
}
else
Expand Down Expand Up @@ -1047,7 +1047,7 @@ int main (int argc, char *argv[])
} else {
wxMessageDialog d(NULL,_T("Failed loading file:\n")+name,_T("Error"),wxOK|wxICON_ERROR);
d.ShowModal();
}
}
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion Fox/src/foxgrid/FoxGridSlave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void FoxGridSlave::CheckJobsAndStartCalculation()
WriteLogMessage("ERROR: Can't write a file " + proc->dir + _T("\\input.xml"));
return;
}

wxString cmd_content;
wxString appname = wxApp::GetInstance()->argv[0];
if(rand) {
Expand Down
15 changes: 15 additions & 0 deletions ObjCryst/ObjCryst/PowderPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3862,6 +3862,21 @@ supplied vector of observed intensities does not have the expected number of poi
(*fpObjCrystInformUser)((string)buf);
}
}

void PowderPattern::SetPowderPatternObsSigma(const CrystVector_REAL& sigma)
{
VFN_DEBUG_MESSAGE("PowderPattern::SetPowderPatternObsSigma()",5)
if((unsigned long)sigma.numElements() != mNbPoint)
{
throw(ObjCrystException("PowderPattern::SetPowderPatternObsSigma(vect): The \
supplied vector of sigma does not have the expected number of points!"));
}

mPowderPatternObsSigma = sigma;
mPowderPatternWeight.resize(mNbPoint);
this->SetWeightToInvSigmaSq();
mClockIntegratedFactorsPrep.Reset();
}
void PowderPattern::SavePowderPattern(const string &filename) const
{
VFN_DEBUG_MESSAGE("PowderPattern::SavePowderPattern",5)
Expand Down
2 changes: 2 additions & 0 deletions ObjCryst/ObjCryst/PowderPattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,8 @@ class PowderPattern : public RefinableObj
* for example by calling DiffractionDataPowder::InitPowderPatternPar().
*/
void SetPowderPatternObs(const CrystVector_REAL& obs);
/// Set sigma for each point of the observed powder pattern.
void SetPowderPatternObsSigma(const CrystVector_REAL& sigma);

///Save powder pattern to one file, text format, 3 columns theta Iobs Icalc.
///If Iobs is missing, the column is omitted.
Expand Down