-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/mantidproject/mantid
- Loading branch information
Showing
26 changed files
with
765 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#ifndef LOADRKHTEST_H_ | ||
#define LOADRKHTEST_H_ | ||
|
||
//----------------- | ||
// Includes | ||
//----------------- | ||
#include "MantidDataHandling/LoadQKK.h" | ||
#include "MantidDataObjects/Workspace2D.h" | ||
#include "MantidKernel/ConfigService.h" | ||
#include <cxxtest/TestSuite.h> | ||
#include <Poco/Path.h> | ||
|
||
using Mantid::Kernel::ConfigServiceImpl; | ||
using namespace Mantid::API; | ||
using namespace Mantid::DataObjects; | ||
|
||
class LoadQKKTest : public CxxTest::TestSuite | ||
{ | ||
public: | ||
|
||
static LoadQKKTest *createSuite() { return new LoadQKKTest(); } | ||
static void destroySuite(LoadQKKTest *suite) { delete suite; } | ||
|
||
// A sample file is in the repository | ||
LoadQKKTest() | ||
{ | ||
} | ||
|
||
void testInit() | ||
{ | ||
Mantid::DataHandling::LoadQKK load; | ||
TS_ASSERT_THROWS_NOTHING( load.initialize()); | ||
TS_ASSERT( load.isInitialized() ); | ||
} | ||
|
||
void testLoad() | ||
{ | ||
std::string wsName = "QKK0029775"; | ||
Mantid::DataHandling::LoadQKK load; | ||
TS_ASSERT_THROWS_NOTHING( load.initialize()); | ||
load.setPropertyValue("Filename","QKK0029775.nx.hdf"); | ||
load.setPropertyValue("OutputWorkspace",wsName); | ||
load.execute(); | ||
TS_ASSERT( load.isExecuted() ); | ||
|
||
Workspace_sptr ws; | ||
TS_ASSERT_THROWS_NOTHING( ws = AnalysisDataService::Instance().retrieve(wsName) ); | ||
Workspace2D_sptr data = boost::dynamic_pointer_cast<Workspace2D>(ws); | ||
TS_ASSERT(data); | ||
TS_ASSERT_EQUALS( data->getNumberHistograms(), 192 * 192 ); | ||
Mantid::Geometry::IDetector_const_sptr det; | ||
for(size_t i = 0; i < data->getNumberHistograms(); ++i) | ||
{ | ||
TS_ASSERT_THROWS_NOTHING( det = data->getDetector(i) ); | ||
} | ||
} | ||
}; | ||
|
||
|
||
#endif //LOADRKHTEST_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ipch | ||
*.sdf | ||
*.opensdf | ||
*.suo | ||
Mantid.properties | ||
mantid_version.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin | ||
obj |
20 changes: 20 additions & 0 deletions
20
Code/Mantid/Installers/WinInstaller/MantidMSI/MantidMSI.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MantidMSI", "MantidMSI\MantidMSI.vcxproj", "{5092A8BC-F5E5-4FAA-88B4-DC16DB5C7DE8}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Win32 = Debug|Win32 | ||
Release|Win32 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{5092A8BC-F5E5-4FAA-88B4-DC16DB5C7DE8}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{5092A8BC-F5E5-4FAA-88B4-DC16DB5C7DE8}.Debug|Win32.Build.0 = Debug|Win32 | ||
{5092A8BC-F5E5-4FAA-88B4-DC16DB5C7DE8}.Release|Win32.ActiveCfg = Release|Win32 | ||
{5092A8BC-F5E5-4FAA-88B4-DC16DB5C7DE8}.Release|Win32.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
47 changes: 47 additions & 0 deletions
47
Code/Mantid/Installers/WinInstaller/MantidMSI/MantidMSI/CustomAction.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
This custom action searches for previous installed products and returns all that match | ||
regardless off their install context, i.e. per-machine and per-user. | ||
Copyright © 2011 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://svn.mantidproject.org/mantid/trunk/Code/Mantid>. | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
#include "stdafx.h" | ||
|
||
// DllMain - Initialize and cleanup WiX custom action utils. | ||
extern "C" BOOL WINAPI DllMain( | ||
__in HINSTANCE hInst, | ||
__in ULONG ulReason, | ||
__in LPVOID | ||
) | ||
{ | ||
switch(ulReason) | ||
{ | ||
case DLL_PROCESS_ATTACH: | ||
WcaGlobalInitialize(hInst); | ||
break; | ||
|
||
case DLL_PROCESS_DETACH: | ||
WcaGlobalFinalize(); | ||
break; | ||
} | ||
|
||
return TRUE; | ||
} |
5 changes: 5 additions & 0 deletions
5
Code/Mantid/Installers/WinInstaller/MantidMSI/MantidMSI/CustomAction.def
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LIBRARY "MantidMSI" | ||
|
||
EXPORTS | ||
|
||
FindOldMachineContextInstall |
Oops, something went wrong.