import mantid
from mantid.simpleapi import Load
import sys
import time
precount = ("-npc" not in sys.argv)
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
List tree for SHA: curl -i -H application/vnd.github.v3+json https://api.github.com/repos/martyngigg/workflow/git/trees/HEAD | |
List tree recursively for SHA: curl -i -H application/vnd.github.v3+json https://api.github.com/repos/martyngigg/workflow/git/trees/HEAD?recursive=1 | |
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
//--------------------------------------------------------------------------- | |
// Includes | |
//--------------------------------------------------------------------------- | |
#include <cmath> | |
#include <iostream> | |
#include <unistd.h> | |
#include <vector> | |
#include <nexus/NeXusFile.hpp> |
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
* A single common way of describing the instrument | |
* Need to be able to define arbitrary flight path | |
* Include all components e.g. components and what they do to the beam | |
* Moving components (some during a run so that flight path can change) | |
* Can we build the control system from the instrument definition | |
* Interchangeable components | |
* More first-class shapes: simple tubes, tube arrays, detectors with inherent energy resolution, detectors able to record depth ... | |
* What file format: HDF? | |
* Instrument that we need to make sure we've covered most things: | |
** POLREF |
Good set of slides: http://python.net/~goodger/projects/pycon/2007/idiomatic/presentation.html
python -c "import this"
The Zen of Python, by Tim Peters
Assumes the header file has version() in it:
git diff --name-only --diff-filter=A v3.3.0 HEAD | grep -v 'Test.h'| grep -E ".h$" | xargs grep -l -E "^.*version\(\).*" | sed -r -e 's@.*/(.*).h@\1@g' | sort | sed -r -e 's@(.*)@* [http://docs.mantidproject.org/algorithms/\1 \1]@g'`
Change --diff-filter=A
to --diff-filter=M
for changed algorithms
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
Exception type is std::bad_alloc. | |
[size] 633402058 int | |
insert trying to add 7240 chars | |
> msvcr110d.dll!_CxxThrowException(void * pExceptionObject, const _s__ThrowInfo * pThrowInfo) Line 152 C++ | |
msvcr110d.dll!operator new(unsigned int size) Line 63 C++ | |
cmake.exe!std::_Allocate<char>(unsigned int _Count, char * __formal) Line 28 C++ | |
cmake.exe!std::allocator<char>::allocate(unsigned int _Count) Line 591 C++ | |
cmake.exe!std::_Wrap_alloc<std::allocator<char> >::allocate(unsigned int _Count) Line 877 C++ |
OlderNewer