diff --git a/Framework/Crystal/src/LoadHKL.cpp b/Framework/Crystal/src/LoadHKL.cpp index dae696eaf2b2ea5121264d4f76884f85320e94c7..7b0077113a0ccd88d11e913d226fe501b2ba7081 100644 --- a/Framework/Crystal/src/LoadHKL.cpp +++ b/Framework/Crystal/src/LoadHKL.cpp @@ -62,7 +62,7 @@ void LoadHKL::exec() { // HKL is flipped by -1 due to different q convention in ISAW vs mantid. // Default for kf-ki has -q double qSign = -1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = 1.0; Instrument_sptr inst(new Geometry::Instrument); Detector *detector = new Detector("det1", -1, 0); diff --git a/Framework/Crystal/src/LoadIsawPeaks.cpp b/Framework/Crystal/src/LoadIsawPeaks.cpp index f844eda828604216b60c3e47396fce411431e1de..dbd226f442158bc709bbbd70420619f7191dc5c5 100644 --- a/Framework/Crystal/src/LoadIsawPeaks.cpp +++ b/Framework/Crystal/src/LoadIsawPeaks.cpp @@ -508,7 +508,7 @@ void LoadIsawPeaks::appendFile(PeaksWorkspace_sptr outWS, // HKL's are flipped by -1 because of the internal Q convention // unless Crystallography convention double qSign = -1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = 1.0; // Open the file std::ifstream in(filename.c_str()); diff --git a/Framework/Crystal/src/SaveHKL.cpp b/Framework/Crystal/src/SaveHKL.cpp index 31198850b53b6c0cfc0e57eb92cf30b9cb35758f..65623e55a0d5233904993812db682adc1b41086d 100644 --- a/Framework/Crystal/src/SaveHKL.cpp +++ b/Framework/Crystal/src/SaveHKL.cpp @@ -131,7 +131,7 @@ void SaveHKL::exec() { // HKL is flipped by -1 due to different q convention in ISAW vs mantid. // Default for kf-ki has -q double qSign = -1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = 1.0; std::fstream out; diff --git a/Framework/Crystal/src/SaveIsawPeaks.cpp b/Framework/Crystal/src/SaveIsawPeaks.cpp index 9d19b56bd04c6a404100f178f8e39469e11981b7..e63575bfd0866f3f37fa04003c757bc4f79c1796 100644 --- a/Framework/Crystal/src/SaveIsawPeaks.cpp +++ b/Framework/Crystal/src/SaveIsawPeaks.cpp @@ -249,7 +249,7 @@ void SaveIsawPeaks::exec() { // HKL's are flipped by -1 because of the internal Q convention // unless Crystallography convention double qSign = -1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = 1.0; // ============================== Save all Peaks // ========================================= diff --git a/Framework/Crystal/src/SaveLauenorm.cpp b/Framework/Crystal/src/SaveLauenorm.cpp index 2f74efad9113a0a1193401b6959446e94e609d6d..cc89a578f677daa02cf97d8ed8bd7a0362276311 100644 --- a/Framework/Crystal/src/SaveLauenorm.cpp +++ b/Framework/Crystal/src/SaveLauenorm.cpp @@ -114,7 +114,7 @@ void SaveLauenorm::exec() { // HKL is flipped by -1 due to different q convention in ISAW vs mantid. // Default for kf-ki has -q double qSign = -1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = 1.0; // Go through each peak at this run / bank diff --git a/Framework/DataObjects/inc/MantidDataObjects/MDEventWorkspace.tcc b/Framework/DataObjects/inc/MantidDataObjects/MDEventWorkspace.tcc index 78e56e42f1d1c56af4a8a00572c185ba91d8b8b7..6befe01e64e8d44ea408243c48d0e41432086c4a 100644 --- a/Framework/DataObjects/inc/MantidDataObjects/MDEventWorkspace.tcc +++ b/Framework/DataObjects/inc/MantidDataObjects/MDEventWorkspace.tcc @@ -379,7 +379,7 @@ TMDE(std::vector<Mantid::Geometry::MDDimensionExtents<coord_t>> TMDE(std::vector<std::string> MDEventWorkspace)::getBoxControllerStats() const { std::vector<std::string> out; std::ostringstream mess; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") mess << "Crystallography: ki-kf"; else mess << "Inelastic: kf-ki"; out.push_back(mess.str()); diff --git a/Framework/DataObjects/src/Peak.cpp b/Framework/DataObjects/src/Peak.cpp index 61928c9b8667212f1033a6a43ee94f884642f1bb..2a403a14bb84a1ac330fd25c39e3b947c2de106c 100644 --- a/Framework/DataObjects/src/Peak.cpp +++ b/Framework/DataObjects/src/Peak.cpp @@ -455,7 +455,7 @@ Mantid::Kernel::V3D Peak::getQLabFrame() const { // And Q in the lab frame // Default for ki-kf is positive double qSign = 1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = -1.0; return (beamDir * wvi - detDir * wvf) * qSign; } @@ -555,7 +555,7 @@ void Peak::setQLabFrame(Mantid::Kernel::V3D QLabFrame, // Default for ki-kf has -q double qSign = -1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = 1.0; V3D detectorDir = q * qSign; diff --git a/Framework/DataObjects/src/PeaksWorkspace.cpp b/Framework/DataObjects/src/PeaksWorkspace.cpp index 52f502840fda4c7f3c73232a599414a8856128c9..f241633a8b12988e6860b4885e7db1bb91d691d5 100644 --- a/Framework/DataObjects/src/PeaksWorkspace.cpp +++ b/Framework/DataObjects/src/PeaksWorkspace.cpp @@ -608,7 +608,7 @@ void PeaksWorkspace::saveNexus(::NeXus::File *file) const { // HKL is flipped by -1 due to different q convention in Crystallography. // Always write out in ki-kf so consistent with old files double qSign = 1.0; - std::string convention = ConfigService::Instance().getString("default.convention"); + std::string convention = ConfigService::Instance().getString("Q.convention"); if (convention == "Crystallography") qSign = -1.0; // Populate column vectors from Peak Workspace diff --git a/Framework/Kernel/src/ConfigService.cpp b/Framework/Kernel/src/ConfigService.cpp index 02eab16b9566f3fd154a5572dce05ce1bef0e607..a67a5e94a1b12444db02380045ace56686af4d73 100644 --- a/Framework/Kernel/src/ConfigService.cpp +++ b/Framework/Kernel/src/ConfigService.cpp @@ -673,9 +673,9 @@ void ConfigServiceImpl::createUserPropertiesFile() const { filestr << "## e.g. IRIS, HET, NIMROD" << std::endl; filestr << "default.instrument=" << std::endl; filestr << std::endl; - filestr << "## Sets the default convention" << std::endl; + filestr << "## Sets the Q.convention" << std::endl; filestr << "## Uncomment next line for kf-ki instead of ki-kf" << std::endl; - filestr << "#default.convention=Crystallography" << std::endl; + filestr << "#Q.convention=Crystallography" << std::endl; filestr << std::endl; filestr << "##" << std::endl; filestr << "## DIRECTORIES" << std::endl; diff --git a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/CalculateCoverageDGS.h b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/CalculateCoverageDGS.h index c27d40674a83b6b84dd546cdebcba17b6abd7647..59b8446bd6c74de6f24e50e4a4508d4875e9f3ee 100644 --- a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/CalculateCoverageDGS.h +++ b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/CalculateCoverageDGS.h @@ -46,6 +46,8 @@ private: void init(); void exec(); + // ki-kf for Inelastic convention; kf-ki for Crystallography convention + std::string convention = Kernel::ConfigService::Instance().getString("Q.convention"); /// limits for h,k,l,dE dimensions coord_t m_hmin, m_hmax, m_kmin, m_kmax, m_lmin, m_lmax, m_dEmin, m_dEmax; /// cached values for incident energy and momentum, final momentum min/max diff --git a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/ConvertToMD.h b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/ConvertToMD.h index cf2acc64796f7a880084e13dc23fdee13e61019b..3112f5406d7182fd0bfa8dad374636663a950f0b 100644 --- a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/ConvertToMD.h +++ b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/ConvertToMD.h @@ -116,7 +116,6 @@ protected: // for testing, otherwise private: /// Sets up the top level splitting, i.e. of level 0, for the box controller void setupTopLevelSplitting(Mantid::API::BoxController_sptr bc); - API::IMDEventWorkspace_sptr changeConvention(API::IMDEventWorkspace_sptr spws); }; } // namespace Mantid diff --git a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormDirectSC.h b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormDirectSC.h index 375dea557814745e6daab6a00e8116651f5ee0ad..55e3e613a52aea9333ac8af8d6af20277cca4b6f 100644 --- a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormDirectSC.h +++ b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormDirectSC.h @@ -88,6 +88,8 @@ private: Kernel::V3D m_samplePos; /// Beam direction Kernel::V3D m_beamDir; + /// ki-kf for Inelastic convention; kf-ki for Crystallography convention + std::string convention = Kernel::ConfigService::Instance().getString("Q.convention"); }; } // namespace MDAlgorithms diff --git a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormSCD.h b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormSCD.h index a0c1a0ed9d66e176118196357774d42e7e2f6ff9..0bd27d0029e18211603e7350bf27282c5cca3b57 100644 --- a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormSCD.h +++ b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDNormSCD.h @@ -91,6 +91,8 @@ private: Kernel::V3D m_samplePos; /// Beam direction Kernel::V3D m_beamDir; + /// ki-kf for Inelastic convention; kf-ki for Crystallography convention + std::string convention = Kernel::ConfigService::Instance().getString("Q.convention"); }; } // namespace MDAlgorithms diff --git a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDTransfQ3D.h b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDTransfQ3D.h index 1db019647c7af7bddf7d27bef8b6cb847c481c8d..cb2747980a27e1632d4a61652cadd79af70df2df 100644 --- a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDTransfQ3D.h +++ b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/MDTransfQ3D.h @@ -4,6 +4,7 @@ #include "MantidMDAlgorithms/MDTransfInterface.h" #include "MantidMDAlgorithms/MDTransfFactory.h" #include "MantidMDAlgorithms/MDTransfModQ.h" +#include "MantidKernel/ConfigService.h" // namespace Mantid { namespace MDAlgorithms { @@ -98,6 +99,8 @@ protected: // current value of Sin(Theta)^2 corresponding to the current detector value // and used to calculate Lorentz corrections double m_SinThetaSq; + // ki-kf for Inelastic convention; kf-ki for Crystallography convention + std::string convention = Kernel::ConfigService::Instance().getString("Q.convention"); // all other variables are the same as in ModQ private: /// how to transform workspace data in elastic case diff --git a/Framework/MDAlgorithms/src/CalculateCoverageDGS.cpp b/Framework/MDAlgorithms/src/CalculateCoverageDGS.cpp index 314e164716b3e9d5fe7bb3da0486358ab3b8567f..6e1e4de7b0efb17b7c5b7241a8923bb16d6446ba 100644 --- a/Framework/MDAlgorithms/src/CalculateCoverageDGS.cpp +++ b/Framework/MDAlgorithms/src/CalculateCoverageDGS.cpp @@ -456,8 +456,13 @@ CalculateCoverageDGS::calculateIntersections(const double theta, const double phi) { V3D qout(sin(theta) * cos(phi), sin(theta) * sin(phi), cos(theta)), qin(0., 0., m_ki); + qout = m_rubw * qout; qin = m_rubw * qin; + if (convention != "Crystallography") { + qout *= -1; + qin *= -1; + } double hStart = qin.X() - qout.X() * m_kfmin, hEnd = qin.X() - qout.X() * m_kfmax; double kStart = qin.Y() - qout.Y() * m_kfmin, diff --git a/Framework/MDAlgorithms/src/ConvertToMD.cpp b/Framework/MDAlgorithms/src/ConvertToMD.cpp index a8dcbaf9130c77e32a5e9753c3644be40f7785d5..375e4467d683893bf65dd0f2a736b58f3bb5cf2c 100644 --- a/Framework/MDAlgorithms/src/ConvertToMD.cpp +++ b/Framework/MDAlgorithms/src/ConvertToMD.cpp @@ -19,7 +19,6 @@ #include "MantidMDAlgorithms/ConvToMDSelector.h" #include "MantidMDAlgorithms/MDWSTransform.h" -#include "MantidKernel/ConfigService.h" using namespace Mantid::API; using namespace Mantid::Kernel; @@ -215,8 +214,6 @@ void ConvertToMD::exec() { // Set the normalization of the event workspace m_Convertor->setDisplayNormalization(spws, m_InWS2D); - spws = changeConvention(spws) ; - // JOB COMPLETED: setProperty("OutputWorkspace", boost::dynamic_pointer_cast<IMDEventWorkspace>(spws)); @@ -665,31 +662,5 @@ void ConvertToMD::findMinMax( } } - /**change convention if specified in properties - * @param spws: md workspace - *@returns md workspace - */ -IMDEventWorkspace_sptr ConvertToMD::changeConvention(IMDEventWorkspace_sptr spws) { - // kf-ki for crystallograpy convention - std::string convention = ConfigService::Instance().getString("default.convention"); - if (convention == "Crystallography") - { - auto trans = createChildAlgorithm("TransformMD"); - trans->initialize(); - trans->setProperty("InputWorkspace", spws); - trans->setPropertyValue("Scaling", "-1"); - trans->setProperty("OutputWorkspace", spws); - trans->execute(); - - g_log.information() << "Workspace has " << spws->getNPoints(); - std::vector<std::string> stats = spws->getBoxControllerStats(); - for (size_t i = 0; i < stats.size(); ++i) - g_log.information() << stats[i] << "\n"; - g_log.information() << std::endl; - - } - return spws; -} - } // namespace Mantid } // namespace MDAlgorithms diff --git a/Framework/MDAlgorithms/src/MDNormDirectSC.cpp b/Framework/MDAlgorithms/src/MDNormDirectSC.cpp index efc710413ea131fd80af16c803aac3de848021df..551d0f5bdfac5aeddf6f5b678b145928d835b476 100644 --- a/Framework/MDAlgorithms/src/MDNormDirectSC.cpp +++ b/Framework/MDAlgorithms/src/MDNormDirectSC.cpp @@ -8,6 +8,7 @@ #include "MantidKernel/CompositeValidator.h" #include "MantidKernel/TimeSeriesProperty.h" #include "MantidKernel/VectorHelper.h" +#include "MantidKernel/ConfigService.h" namespace Mantid { namespace MDAlgorithms { @@ -606,8 +607,13 @@ std::vector<Kernel::VMD> MDNormDirectSC::calculateIntersections(const double theta, const double phi) { V3D qout(sin(theta) * cos(phi), sin(theta) * sin(phi), cos(theta)), qin(0., 0., m_ki); + qout = m_rubw * qout; qin = m_rubw * qin; + if (convention != "Crystallography") { + qout *= -1; + qin *= -1; + } double hStart = qin.X() - qout.X() * m_kfmin, hEnd = qin.X() - qout.X() * m_kfmax; double kStart = qin.Y() - qout.Y() * m_kfmin, diff --git a/Framework/MDAlgorithms/src/MDNormSCD.cpp b/Framework/MDAlgorithms/src/MDNormSCD.cpp index 665807725fa4ce720c79046990b032f45b559e0e..60f66f91755027f74d80af51e14ff8ce2f20f822 100644 --- a/Framework/MDAlgorithms/src/MDNormSCD.cpp +++ b/Framework/MDAlgorithms/src/MDNormSCD.cpp @@ -642,6 +642,10 @@ std::vector<Kernel::VMD> MDNormSCD::calculateIntersections(const double theta, const double phi) { V3D q(-sin(theta) * cos(phi), -sin(theta) * sin(phi), 1. - cos(theta)); q = m_rubw * q; + if (convention != "Crystallography") { + q *= -1; + } + double hStart = q.X() * m_kiMin, hEnd = q.X() * m_kiMax; double kStart = q.Y() * m_kiMin, kEnd = q.Y() * m_kiMax; double lStart = q.Z() * m_kiMin, lEnd = q.Z() * m_kiMax; diff --git a/Framework/MDAlgorithms/src/MDTransfQ3D.cpp b/Framework/MDAlgorithms/src/MDTransfQ3D.cpp index 6ea22f885e9c51584aa55d1df4e02f8895902477..526e269d1234661d2d0a2b9f6cbb52b19f150f53 100644 --- a/Framework/MDAlgorithms/src/MDTransfQ3D.cpp +++ b/Framework/MDAlgorithms/src/MDTransfQ3D.cpp @@ -80,6 +80,12 @@ bool MDTransfQ3D::calcMatrixCoord3DInelastic( double qy = -m_ey * k_tr; double qz = m_Ki - m_ez * k_tr; + if (convention == "Crystallography") { + qx = -qx; + qy = -qy; + qz = -qz; + } + Coord[0] = (coord_t)(m_RotMat[0] * qx + m_RotMat[1] * qy + m_RotMat[2] * qz); if (Coord[0] < m_DimMin[0] || Coord[0] >= m_DimMax[0]) return false; @@ -116,6 +122,11 @@ bool MDTransfQ3D::calcMatrixCoord3DElastic(const double &k0, double qx = -m_ex * k0; double qy = -m_ey * k0; double qz = (1 - m_ez) * k0; + if (convention == "Crystallography") { + qx = -qx; + qy = -qy; + qz = -qz; + } Coord[0] = (coord_t)(m_RotMat[0] * qx + m_RotMat[1] * qy + m_RotMat[2] * qz); if (Coord[0] < m_DimMin[0] || Coord[0] >= m_DimMax[0]) diff --git a/Framework/Properties/Mantid.properties.template b/Framework/Properties/Mantid.properties.template index a42b16387bbf6f44fca4b1618c58d97877dfc59d..5ec631d5008b300ca3550642a690e6ee167f9631 100644 --- a/Framework/Properties/Mantid.properties.template +++ b/Framework/Properties/Mantid.properties.template @@ -17,7 +17,7 @@ default.instrument = # This flag controls the convention for converting to Q. Default is ki-kf # Change to Crystallography for kf-ki -default.convention = Inelastic +Q.convention = Inelastic # Set of PyQt interfaces to add to the Interfaces menu, separated by a space. Interfaces are seperated from their respective categories by a "/". mantidqt.python_interfaces = Direct/DGS_Reduction.py Direct/DGSPlanner.py SANS/ORNL_SANS.py Reflectometry/REFL_Reduction.py Reflectometry/REFL_SF_Calculator.py Reflectometry/REFM_Reduction.py Utility/TofConverter.py Reflectometry/ISIS_Reflectometry.py Diffraction/Powder_Diffraction_Reduction.py Utility/FilterEvents.py Diffraction/HFIR_Powder_Diffraction_Reduction.py Diffraction/HFIR_4Circle_Reduction.py diff --git a/MantidPlot/src/ConfigDialog.cpp b/MantidPlot/src/ConfigDialog.cpp index 87e74e4ea83cab6eb72537345019aeadb92dc4f3..cca26e9a243e73e34a28a82ce8e4308de8c42098 100644 --- a/MantidPlot/src/ConfigDialog.cpp +++ b/MantidPlot/src/ConfigDialog.cpp @@ -690,6 +690,14 @@ void ConfigDialog::initMantidPage() ckIgnoreParaView->setChecked(ignoreParaView); grid->addWidget(ckIgnoreParaView, 3, 0); + //Change to Crystallography Convention + ckQconvention = new QCheckBox("Crystallography Convention"); + ckQconvention->setToolTip("Change from default ki-kf to kf-ki."); + const std::string QconventionProperty = "Q.convention"; + bool Qconvention = cfgSvc.hasProperty(QconventionProperty) && bool(atoi(cfgSvc.getString(QconventionProperty).c_str())); + ckQconvention->setChecked(Qconvention); + grid->addWidget(ckQconvention, 4, 0); + // Populate boxes auto faclist = cfgSvc.getFacilityNames(); for ( auto it = faclist.begin(); it != faclist.end(); ++it ) @@ -2464,6 +2472,10 @@ void ConfigDialog::apply() cfgSvc.setString("default.facility", facility->currentText().toStdString()); cfgSvc.setString("default.instrument", defInstr->currentText().toStdString()); cfgSvc.setString("paraview.ignore", QString::number(ckIgnoreParaView->isChecked()).toStdString()); + if (ckQconvention->isChecked()) + cfgSvc.setString("Q.convention", "Crystallography"); + else + cfgSvc.setString("Q.convention", "Inelastic"); updateDirSearchSettings(); diff --git a/MantidPlot/src/ConfigDialog.h b/MantidPlot/src/ConfigDialog.h index 64f80367c2e9aa5119081d709160ca78fdd0591a..d8122326fc17d458599aac7eb33e9a718270f0d7 100644 --- a/MantidPlot/src/ConfigDialog.h +++ b/MantidPlot/src/ConfigDialog.h @@ -188,6 +188,7 @@ private: QComboBox *facility; MantidQt::MantidWidgets::InstrumentSelector *defInstr; QCheckBox* ckIgnoreParaView; + QCheckBox* ckQconvention; /// Mantid tab for setting directories QWidget *directoriesPage; diff --git a/docs/source/concepts/PropertiesFile.rst b/docs/source/concepts/PropertiesFile.rst index 328779f2b8dca63015214eed6983337179394a57..8961e803ae109b2aa3506adb16210620eae0d7f4 100644 --- a/docs/source/concepts/PropertiesFile.rst +++ b/docs/source/concepts/PropertiesFile.rst @@ -43,23 +43,23 @@ General properties Facility and instrument properties ********************************** -+------------------------------+---------------------------------------------------+-------------+ -|Property |Description |Example value| -+==============================+===================================================+=============+ -|default.facility |The name of the default facility. The facility must| ISIS | -| |be defined within the facilites.xml file to be | | -| |considered valid. The file is described here. | | -| |:ref:`here <Facilities file>`. | | -+------------------------------+---------------------------------------------------+-------------+ -|default.instrument |The name of the default instrument. The instrument | WISH | -| |must be defined within the facilities.xml file to | | -| |be valid. The file is described | | -| |:ref:`here <Facilities file>`. | | -+------------------------------+---------------------------------------------------+-------------+ -|default.convention |The convention for converting to Q. For inelastic | Crystal- | -| |the convention is ki-kf. For Crystallogaphy the | ography | -| |convention is kf-ki. | | -+------------------------------+---------------------------------------------------+-------------+ ++------------------------------+---------------------------------------------------+-----------------+ +|Property |Description |Example value | ++==============================+===================================================+=================+ +|default.facility |The name of the default facility. The facility must| ISIS | +| |be defined within the facilites.xml file to be | | +| |considered valid. The file is described here. | | +| |:ref:`here <Facilities file>`. | | ++------------------------------+---------------------------------------------------+-----------------+ +|default.instrument |The name of the default instrument. The instrument | WISH | +| |must be defined within the facilities.xml file to | | +| |be valid. The file is described | | +| |:ref:`here <Facilities file>`. | | ++------------------------------+---------------------------------------------------+-----------------+ +|Q.convention |The convention for converting to Q. For inelastic | Crystallography | +| |the convention is ki-kf. For Crystallography the | | +| |convention is kf-ki. | | ++------------------------------+---------------------------------------------------+-----------------+ Directory Properties ******************** diff --git a/tools/DefaultConfigFiles/Mantid.user.properties b/tools/DefaultConfigFiles/Mantid.user.properties index 65a81aceaf703a60196ca643e2d708d2dfce0fbe..3bebfafb771c9a58963dac9b46c4503aa5313ade 100644 --- a/tools/DefaultConfigFiles/Mantid.user.properties +++ b/tools/DefaultConfigFiles/Mantid.user.properties @@ -33,7 +33,7 @@ default.instrument= # This flag controls the convention for converting to Q. Default is ki-kf # Change to Crystallography for kf-ki -default.convention = Inelastic +Q.convention = Inelastic ## ## DIRECTORIES