From c1ad9daeb968bd18332170c418177b7a9722f1cb Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Wed, 11 Sep 2024 09:21:11 +0100 Subject: [PATCH 01/11] Switch to plain setuptools/Cython, prepare for regenerate --- .gitignore | 1 - pyproject.toml | 101 ++++++++++++++++++++++++++++++------------- regenerate_pycbf.py | 2 +- build.py => setup.py | 7 ++- swig/make_pycbf.py | 2 +- 5 files changed, 77 insertions(+), 36 deletions(-) rename build.py => setup.py (97%) diff --git a/.gitignore b/.gitignore index d421868..a849925 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -setup.py .vscode/ # Byte-compiled / optimized / DLL files diff --git a/pyproject.toml b/pyproject.toml index 158f906..566c509 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,17 +1,18 @@ -[tool.poetry] +[build-system] +requires = ["setuptools", "Cython~=0.29.23"] +build-backend = "setuptools.build_meta" + +[project] name = "pycbf" version = "0.9.6.6.dev" description = "An API for CBF/imgCIF Crystallographic Binary Files" -homepage = "http://www.bernstein-plus-sons.com/software/CBF/" authors = [ - "Herbert J. Bernstein ", - "Paul J. Ellis", + { name = "Herbert J. Bernstein", email = "yaya@bernstein-plus-sons.com" }, + { name = "Paul J. Ellis" }, ] -maintainers = ["Nicholas Devenish "] -license = "LGPL-2.1-or-later" +maintainers = [{ name = "Nicholas Devenish", email = "ndevenish@gmail.com" }] +license = { text = "LGPL-2.1-or-later" } readme = "README.md" -build = "build.py" -repository = "https://github.com/dials/pycbf" classifiers = [ "Development Status :: 4 - Beta", "Environment :: Console", @@ -21,32 +22,70 @@ classifiers = [ "Programming Language :: Python", "Topic :: Scientific/Engineering", ] -include = [ - { path = "pycbf_wrap.c", format = "sdist" }, - { path = "LICENCE.txt", format = "sdist" }, - { path = "cbflib/src/*.c", format = "sdist" }, - { path = "cbflib/include/*.h", format = "sdist" }, - { path = "tests/*.py", format = "sdist" }, - { path = "src/pycbf/py.typed" }, - -] +# include = [ +# { path = "pycbf_wrap.c", format = "sdist" }, +# { path = "LICENCE.txt", format = "sdist" }, +# { path = "cbflib/src/*.c", format = "sdist" }, +# { path = "cbflib/include/*.h", format = "sdist" }, +# { path = "tests/*.py", format = "sdist" }, +# { path = "src/pycbf/py.typed" }, +# ] +requires-python = ">=3.6" +dependencies = ["numpy>=1.17"] +[project.urls] +Homepate = "http://www.bernstein-plus-sons.com/software/CBF/" +Repository = "https://github.com/dials/pycbf" -[tool.poetry.dependencies] -python = ">=3.6.0" -numpy = ">=1.17" - -[tool.poetry.dev-dependencies] -setuptools = "^56.1.0" -Cython = "^0.29.23" -toml = "^0.10.2" -pytest = "^6.2.4" -dials-data = ">=2.1.58" -bump2version = "^1.0.1" +[project.optional-dependencies] +dev = [ + "Cython~=0.29.23", + "toml~=0.10.2", + "pytest~=6.2.4", + "dials-data", + "bump2version~=1.0.1", +] -[build-system] -requires = ["poetry-core>=1.0.0", "setuptools", "Cython~=0.29.23"] -build-backend = "poetry.core.masonry.api" +# [[tool.setuptools.ext-modules]] +# name = "pycbf._pycbf" +# sources = [ +# "pycbf_wrap.c", +# "cbflib/src/cbf.c", +# "cbflib/src/cbf_airy_disk.c", +# "cbflib/src/cbf_alloc.c", +# "cbflib/src/cbf_ascii.c", +# "cbflib/src/cbf_binary.c", +# "cbflib/src/cbf_byte_offset.c", +# "cbflib/src/cbf_canonical.c", +# "cbflib/src/cbf_codes.c", +# "cbflib/src/cbf_compress.c", +# "cbflib/src/cbf_context.c", +# "cbflib/src/cbf_copy.c", +# "cbflib/src/cbf_file.c", +# "cbflib/src/cbf_getopt.c", +# "cbflib/src/cbf_lex.c", +# "cbflib/src/cbf_minicbf_header.c", +# "cbflib/src/cbf_nibble_offset.c", +# "cbflib/src/cbf_packed.c", +# "cbflib/src/cbf_predictor.c", +# "cbflib/src/cbf_read_binary.c", +# "cbflib/src/cbf_read_mime.c", +# "cbflib/src/cbf_simple.c", +# "cbflib/src/cbf_string.c", +# "cbflib/src/cbf_stx.c", +# "cbflib/src/cbf_tree.c", +# "cbflib/src/cbf_ulp.c", +# "cbflib/src/cbf_uncompressed.c", +# "cbflib/src/cbf_write.c", +# "cbflib/src/cbf_write_binary.c", +# "cbflib/src/cbf_ws.c", +# "cbflib/src/cbff.c", +# "cbflib/src/fgetln.c", +# "cbflib/src/img.c", +# "cbflib/src/md5c.c", +# ] +# include-dirs = ["cbflib/include"] +# define-macros = [["CBF_NO_REGEX"], ["SWIG_PYTHON_STRICT_BYTE_CHAR"]] [tool.ruff.format] exclude = ["cbflib/", "src/pycbf/__init__.py"] diff --git a/regenerate_pycbf.py b/regenerate_pycbf.py index 39d18cf..92cfbb0 100755 --- a/regenerate_pycbf.py +++ b/regenerate_pycbf.py @@ -212,7 +212,7 @@ def check_tool( # Get the version out of our pyproject.toml ppt = toml.loads((ROOT_DIR / "pyproject.toml").read_text()) - new_version = '__version__ = "{}"'.format(ppt["tool"]["poetry"]["version"]).encode() + new_version = '__version__ = "{}"'.format(ppt["project"]["version"]).encode() OLD_VER = b'__version__ = "CBFlib 0.9"' assert OLD_VER in pycbf_data, "Source pycbf.py doesn't appear to be version 0.9" diff --git a/build.py b/setup.py similarity index 97% rename from build.py rename to setup.py index 95b326e..56c7da4 100644 --- a/build.py +++ b/setup.py @@ -1,6 +1,6 @@ import re import subprocess -from distutils.core import Extension +from setuptools import Extension, setup from hashlib import sha256 from pathlib import Path from typing import Any, Dict, Iterable @@ -120,6 +120,7 @@ def generate_combined_checksum(root): extra_data = [ x for x in pyproject.read_text().splitlines() if re_toml_hashlines.search(x) ] + extra_data = [] return hash_files(*gen_files, extra_data=extra_data) @@ -158,4 +159,6 @@ def build(setup_kwargs: Dict[str, Any]) -> None: if __name__ == "__main__": - build() + setup_kwargs = {} + build(setup_kwargs) + setup(**setup_kwargs) diff --git a/swig/make_pycbf.py b/swig/make_pycbf.py index 2f995c2..8712407 100755 --- a/swig/make_pycbf.py +++ b/swig/make_pycbf.py @@ -53,7 +53,7 @@ print(f"Generating SWIG wrappers from {args.cbflib_txt}") # Get the ascii text as a list of strings -lines = args.cbflib_txt.read_text().splitlines() +lines = args.cbflib_txt.read_text(errors="ignore").splitlines() # Variables to hold the useful things we find in the file docstring = "\n" From f5bf19ab4bb589799f88decce62f149b4e72b1c4 Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Wed, 11 Sep 2024 09:22:36 +0100 Subject: [PATCH 02/11] Regenerate SWIG bindings --- pycbf_wrap.c | 5165 ++++++++++++++++++---------------- pyproject.toml | 3 + src/pycbf/_wrapper.py | 3060 +++++++++----------- swig/cbfdetectorwrappers.i | 264 +- swig/cbfgenericwrappers.i | 91 +- swig/cbfgoniometerwrappers.i | 76 +- swig/cbfhandlewrappers.i | 2673 ++++++++---------- 7 files changed, 5439 insertions(+), 5893 deletions(-) diff --git a/pycbf_wrap.c b/pycbf_wrap.c index f389840..b719a2f 100644 --- a/pycbf_wrap.c +++ b/pycbf_wrap.c @@ -6,27 +6,23 @@ // - cbfpositionerwrappers.i // - make_pycbf.py // - pycbf.i +// + requires = ["setuptools", "Cython~=0.29.23"] // + version = "0.9.6.6.dev" -// + Cython = "^0.29.23" // + "Cython~=0.29.23", // -// Combined Checksum: 5712c2911ef3f410dd88b1feb68b40dea81b599b1ebcbac133557d3998771114 +// Combined Checksum: 2166bcdb6fca9b70ddcf30d02e1196e9047efd40f27efbbe5f9c572949ab044a /* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.2.1 * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -#ifndef SWIGPYTHON +#define SWIG_VERSION 0x040201 #define SWIGPYTHON -#endif - #define SWIG_PYTHON_DIRECTOR_NO_VTABLE /* ----------------------------------------------------------------------------- @@ -153,14 +149,62 @@ # pragma warning disable 592 #endif +#if defined(__cplusplus) && __cplusplus >=201103L +# define SWIG_NULLPTR nullptr +#else +# define SWIG_NULLPTR NULL +#endif + +/* ----------------------------------------------------------------------------- + * swigcompat.swg + * + * Macros to provide support compatibility with older C and C++ standards. + * ----------------------------------------------------------------------------- */ + +/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF + * if you're missing it. + */ +#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \ + (defined __cplusplus && __cplusplus >= 201103L) || \ + defined SWIG_HAVE_SNPRINTF) && \ + !defined SWIG_NO_SNPRINTF +# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A) +# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B) +#else +/* Fallback versions ignore the buffer size, but most of our uses either have a + * fixed maximum possible size or dynamically allocate a buffer that's large + * enough. + */ +# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A) +# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B) +#endif + #if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND) /* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */ # include #endif +#if !defined(PY_SSIZE_T_CLEAN) && !defined(SWIG_NO_PY_SSIZE_T_CLEAN) +#define PY_SSIZE_T_CLEAN +#endif + +#if __GNUC__ >= 7 +#pragma GCC diagnostic push +#if defined(__cplusplus) && __cplusplus >=201703L +#pragma GCC diagnostic ignored "-Wregister" /* For python-2.7 headers that use register */ +#endif +#endif + #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) /* Use debug wrappers with the Python release dll */ + +#if defined(_MSC_VER) && _MSC_VER >= 1929 +/* Workaround compilation errors when redefining _DEBUG in MSVC 2019 version 16.10 and later + * See https://github.com/swig/swig/issues/2090 */ +# include +#endif + # undef _DEBUG # include # define _DEBUG 1 @@ -168,6 +212,12 @@ # include #endif +#if __GNUC__ >= 7 +#pragma GCC diagnostic pop +#endif + +#include + /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -214,6 +264,8 @@ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 #define SWIG_POINTER_NO_NULL 0x4 +#define SWIG_POINTER_CLEAR 0x8 +#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN) /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -285,7 +337,7 @@ SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code - allows to return the 'cast rank', for example, if you have this + allows returning the 'cast rank', for example, if you have this int food(double) int fooi(int); @@ -299,7 +351,13 @@ */ #define SWIG_OK (0) +/* Runtime errors are < 0 */ #define SWIG_ERROR (-1) +/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */ +/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */ +/* Errors < -200 are generic runtime specific errors */ +#define SWIG_ERROR_RELEASE_NOT_OWNED (-200) + #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) @@ -307,14 +365,14 @@ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) -/* The TmpMask is for in/out typemaps that use temporal objects */ +/* The TmpMask is for in/out typemaps that use temporary objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) -/* Check, add and del mask methods */ +/* Check, add and del object mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) @@ -460,7 +518,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) { Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * -SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { +SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { @@ -520,9 +578,9 @@ SWIG_TypeName(const swig_type_info *ty) { SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the - type, separated by vertical-bar characters. We choose - to print the last name, as it is often (?) the most - specific. */ + type, separated by vertical-bar characters. Choose the last + name. It should be the most specific; a fully resolved name + but not necessarily with default template parameters expanded. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; @@ -742,7 +800,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { } #endif -/* Errors in SWIG */ +/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 @@ -758,7 +816,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #define SWIG_NullReferenceError -13 - /* Compatibility macros for Python 3 */ #if PY_VERSION_HEX >= 0x03000000 @@ -774,7 +831,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #define PyString_Size(str) PyBytes_Size(str) #define PyString_InternFromString(key) PyUnicode_InternFromString(key) #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE -#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) #endif @@ -792,40 +848,29 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #endif -/* Warning: This function will allocate a new string in Python 3, - * so please call SWIG_Python_str_DelForPy3(x) to free the space. - */ -SWIGINTERN char* -SWIG_Python_str_AsChar(PyObject *str) +/* Wrapper around PyUnicode_AsUTF8AndSize - call Py_XDECREF on the returned pbytes when finished with the returned string */ +SWIGINTERN const char * +SWIG_PyUnicode_AsUTF8AndSize(PyObject *str, Py_ssize_t *psize, PyObject **pbytes) { #if PY_VERSION_HEX >= 0x03030000 - return (char *)PyUnicode_AsUTF8(str); -#elif PY_VERSION_HEX >= 0x03000000 - char *newstr = 0; - str = PyUnicode_AsUTF8String(str); - if (str) { - char *cstr; - Py_ssize_t len; - if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) { - newstr = (char *) malloc(len+1); - if (newstr) - memcpy(newstr, cstr, len+1); - } - Py_XDECREF(str); - } - return newstr; +# if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000 + *pbytes = NULL; + return PyUnicode_AsUTF8AndSize(str, psize); +# else + *pbytes = PyUnicode_AsUTF8String(str); + const char *chars = *pbytes ? PyBytes_AsString(*pbytes) : NULL; + if (chars && psize) + *psize = PyBytes_Size(*pbytes); + return chars; +# endif #else - return PyString_AsString(str); + char *chars = NULL; + *pbytes = NULL; + PyString_AsStringAndSize(str, &chars, psize); + return chars; #endif } -#if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000 -# define SWIG_Python_str_DelForPy3(x) -#else -# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) -#endif - - SWIGINTERN PyObject* SWIG_Python_str_FromChar(const char *c) { @@ -840,10 +885,14 @@ SWIG_Python_str_FromChar(const char *c) # define PyObject_DEL PyObject_Del #endif -// SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user -// interface files check for it. +/* SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user interface files check for it. */ # define SWIGPY_USE_CAPSULE -# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) +#ifdef SWIGPYTHON_BUILTIN +# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule_builtin" SWIG_TYPE_TABLE_NAME +#else +# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule" SWIG_TYPE_TABLE_NAME +#endif +# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION "." SWIGPY_CAPSULE_ATTR_NAME) #if PY_VERSION_HEX < 0x03020000 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) @@ -851,6 +900,20 @@ SWIG_Python_str_FromChar(const char *c) #define Py_hash_t long #endif +#ifdef Py_LIMITED_API +# define PyTuple_GET_ITEM PyTuple_GetItem +/* Note that PyTuple_SetItem() has different semantics from PyTuple_SET_ITEM as it decref's the original tuple item, so in general they cannot be used + interchangeably. However in SWIG-generated code PyTuple_SET_ITEM is only used with newly initialized tuples without any items and for them this does work. */ +# define PyTuple_SET_ITEM PyTuple_SetItem +# define PyTuple_GET_SIZE PyTuple_Size +# define PyCFunction_GET_FLAGS PyCFunction_GetFlags +# define PyCFunction_GET_FUNCTION PyCFunction_GetFunction +# define PyCFunction_GET_SELF PyCFunction_GetSelf +# define PyList_GET_ITEM PyList_GetItem +# define PyList_SET_ITEM PyList_SetItem +# define PySliceObject PyObject +#endif + /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ @@ -910,14 +973,15 @@ SWIG_Python_AddErrorMsg(const char* mesg) PyErr_Fetch(&type, &value, &traceback); if (value) { PyObject *old_str = PyObject_Str(value); - const char *tmp = SWIG_Python_str_AsChar(old_str); + PyObject *bytes = NULL; + const char *tmp = SWIG_PyUnicode_AsUTF8AndSize(old_str, NULL, &bytes); PyErr_Clear(); Py_XINCREF(type); if (tmp) PyErr_Format(type, "%s %s", tmp, mesg); else PyErr_Format(type, "%s", mesg); - SWIG_Python_str_DelForPy3(tmp); + Py_XDECREF(bytes); Py_DECREF(old_str); Py_DECREF(value); } else { @@ -948,8 +1012,12 @@ SWIG_Python_RaiseOrModifyTypeError(const char *message) #else newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message); #endif - Py_XDECREF(value); - PyErr_Restore(type, newvalue, traceback); + if (newvalue) { + Py_XDECREF(value); + PyErr_Restore(type, newvalue, traceback); + } else { + PyErr_Restore(type, value, traceback); + } } else { /* Raise TypeError using given message */ PyErr_SetString(PyExc_TypeError, message); @@ -966,8 +1034,12 @@ SWIG_Python_RaiseOrModifyTypeError(const char *message) # define SWIG_PYTHON_USE_GIL # endif # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ -# ifndef SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() +# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) +# if PY_VERSION_HEX < 0x03070000 +# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() +# else +# define SWIG_PYTHON_INITIALIZE_THREADS +# endif # endif # ifdef __cplusplus /* C++ code */ class SWIG_Python_Thread_Block { @@ -982,7 +1054,7 @@ SWIG_Python_RaiseOrModifyTypeError(const char *message) bool status; PyThreadState *save; public: - void end() { if (status) { PyEval_RestoreThread(save); status = false; }} + void end() { if (status) { status = false; PyEval_RestoreThread(save); }} SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} ~SWIG_Python_Thread_Allow() { end(); } }; @@ -1065,8 +1137,8 @@ typedef struct swig_const_info { # error "This version of SWIG only supports Python >= 2.7" #endif -#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000 -# error "This version of SWIG only supports Python 3 >= 3.2" +#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03030000 +# error "This version of SWIG only supports Python 3 >= 3.3" #endif /* Common SWIG API */ @@ -1181,7 +1253,12 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { if (!PyList_Check(result)) { PyObject *o2 = result; result = PyList_New(1); - PyList_SetItem(result, 0, o2); + if (result) { + PyList_SET_ITEM(result, 0, o2); + } else { + Py_DECREF(obj); + return o2; + } } PyList_Append(result,obj); Py_DECREF(obj); @@ -1263,6 +1340,261 @@ SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) { #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var #endif +#ifdef __cplusplus +extern "C" { +#endif + +/* Python-specific SWIG API */ +#define SWIG_newvarlink() SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) + +/* ----------------------------------------------------------------------------- + * global variable support code. + * ----------------------------------------------------------------------------- */ + +typedef struct swig_globalvar { + char *name; /* Name of global variable */ + PyObject *(*get_attr)(void); /* Return the current value */ + int (*set_attr)(PyObject *); /* Set the value */ + struct swig_globalvar *next; +} swig_globalvar; + +typedef struct swig_varlinkobject { + PyObject_HEAD + swig_globalvar *vars; +} swig_varlinkobject; + +SWIGINTERN PyObject * +swig_varlink_repr(PyObject *SWIGUNUSEDPARM(v)) { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_InternFromString(""); +#else + return PyString_FromString(""); +#endif +} + +SWIGINTERN PyObject * +swig_varlink_str(PyObject *o) { + swig_varlinkobject *v = (swig_varlinkobject *) o; +#if PY_VERSION_HEX >= 0x03000000 + PyObject *str = PyUnicode_InternFromString("("); + PyObject *tail; + PyObject *joined; + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + tail = PyUnicode_FromString(var->name); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + if (var->next) { + tail = PyUnicode_InternFromString(", "); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + } + } + tail = PyUnicode_InternFromString(")"); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; +#else + PyObject *str = PyString_FromString("("); + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + PyString_ConcatAndDel(&str,PyString_FromString(var->name)); + if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); + } + PyString_ConcatAndDel(&str,PyString_FromString(")")); +#endif + return str; +} + +SWIGINTERN void +swig_varlink_dealloc(PyObject *o) { + swig_varlinkobject *v = (swig_varlinkobject *) o; + swig_globalvar *var = v->vars; + while (var) { + swig_globalvar *n = var->next; + free(var->name); + free(var); + var = n; + } +} + +SWIGINTERN PyObject * +swig_varlink_getattr(PyObject *o, char *n) { + swig_varlinkobject *v = (swig_varlinkobject *) o; + PyObject *res = NULL; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->get_attr)(); + break; + } + var = var->next; + } + if (res == NULL && !PyErr_Occurred()) { + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); + } + return res; +} + +SWIGINTERN int +swig_varlink_setattr(PyObject *o, char *n, PyObject *p) { + swig_varlinkobject *v = (swig_varlinkobject *) o; + int res = 1; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->set_attr)(p); + break; + } + var = var->next; + } + if (res == 1 && !PyErr_Occurred()) { + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); + } + return res; +} + +SWIGINTERN PyTypeObject* +swig_varlink_type(void) { + static char varlink__doc__[] = "Swig var link object"; +#ifndef Py_LIMITED_API + static PyTypeObject varlink_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + "swigvarlink", /* tp_name */ + sizeof(swig_varlinkobject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor) swig_varlink_dealloc, /* tp_dealloc */ +#if PY_VERSION_HEX < 0x030800b4 + (printfunc)0, /*tp_print*/ +#else + (Py_ssize_t)0, /*tp_vectorcall_offset*/ +#endif + (getattrfunc) swig_varlink_getattr, /* tp_getattr */ + (setattrfunc) swig_varlink_setattr, /* tp_setattr */ + 0, /* tp_compare */ + (reprfunc) swig_varlink_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + (reprfunc) swig_varlink_str, /* tp_str */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + 0, /* tp_flags */ + varlink__doc__, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ + 0, /* tp_del */ + 0, /* tp_version_tag */ +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif +#if PY_VERSION_HEX >= 0x03080000 + 0, /* tp_vectorcall */ +#endif +#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) + 0, /* tp_print */ +#endif +#if PY_VERSION_HEX >= 0x030C0000 + 0, /* tp_watched */ +#endif +#ifdef COUNT_ALLOCS + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ + 0, /* tp_prev */ + 0 /* tp_next */ +#endif + }; + varlink_type = tmp; + type_init = 1; + if (PyType_Ready(&varlink_type) < 0) + return NULL; + } + return &varlink_type; +#else + PyType_Slot slots[] = { + { Py_tp_dealloc, (void *)swig_varlink_dealloc }, + { Py_tp_repr, (void *)swig_varlink_repr }, + { Py_tp_getattr, (void *)swig_varlink_getattr }, + { Py_tp_setattr, (void *)swig_varlink_setattr }, + { Py_tp_str, (void *)swig_varlink_str }, + { Py_tp_doc, (void *)varlink__doc__ }, + { 0, NULL } + }; + PyType_Spec spec = { + "swigvarlink", + sizeof(swig_varlinkobject), + 0, + Py_TPFLAGS_DEFAULT, + slots + }; + return (PyTypeObject *)PyType_FromSpec(&spec); +#endif +} + +/* Create a variable linking object for use later */ +SWIGINTERN PyObject * +SWIG_Python_newvarlink(void) { + swig_varlinkobject *result = PyObject_New(swig_varlinkobject, swig_varlink_type()); + if (result) { + result->vars = 0; + } + return ((PyObject*) result); +} + +SWIGINTERN void +SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { + swig_varlinkobject *v = (swig_varlinkobject *) p; + swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); + if (gv) { + size_t size = strlen(name)+1; + gv->name = (char *)malloc(size); + if (gv->name) { + memcpy(gv->name, name, size); + gv->get_attr = get_attr; + gv->set_attr = set_attr; + gv->next = v->vars; + } + } + v->vars = gv; +} + + +static PyObject *Swig_Globals_global = NULL; + +SWIGINTERN PyObject * +SWIG_globals(void) { + if (Swig_Globals_global == NULL) { + Swig_Globals_global = SWIG_newvarlink(); + } + return Swig_Globals_global; +} + +#ifdef __cplusplus +} +#endif + /* ----------------------------------------------------------------------------- * Pointer declarations * ----------------------------------------------------------------------------- */ @@ -1333,18 +1665,25 @@ SwigPyClientData_New(PyObject* obj) /* the newraw method and newargs arguments used to create a new raw instance */ if (PyClass_Check(obj)) { data->newraw = 0; - data->newargs = obj; Py_INCREF(obj); + data->newargs = obj; } else { data->newraw = PyObject_GetAttrString(data->klass, "__new__"); if (data->newraw) { - Py_INCREF(data->newraw); - data->newargs = PyTuple_New(1); - PyTuple_SetItem(data->newargs, 0, obj); + data->newargs = PyTuple_New(1); + if (data->newargs) { + Py_INCREF(obj); + PyTuple_SET_ITEM(data->newargs, 0, obj); + } else { + Py_DECREF(data->newraw); + Py_DECREF(data->klass); + free(data); + return 0; + } } else { - data->newargs = obj; + Py_INCREF(obj); + data->newargs = obj; } - Py_INCREF(data->newargs); } /* the destroy method, aka as the C++ delete method */ data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__"); @@ -1353,10 +1692,7 @@ SwigPyClientData_New(PyObject* obj) data->destroy = 0; } if (data->destroy) { - int flags; - Py_INCREF(data->destroy); - flags = PyCFunction_GET_FLAGS(data->destroy); - data->delargs = !(flags & (METH_O)); + data->delargs = !(PyCFunction_GET_FLAGS(data->destroy) & METH_O); } else { data->delargs = 0; } @@ -1367,10 +1703,13 @@ SwigPyClientData_New(PyObject* obj) } SWIGRUNTIME void -SwigPyClientData_Del(SwigPyClientData *data) { +SwigPyClientData_Del(SwigPyClientData *data) +{ + Py_XDECREF(data->klass); Py_XDECREF(data->newraw); Py_XDECREF(data->newargs); Py_XDECREF(data->destroy); + free(data); } /* =============== SwigPyObject =====================*/ @@ -1397,7 +1736,7 @@ SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) if (!sobj->dict) sobj->dict = PyDict_New(); - Py_INCREF(sobj->dict); + Py_XINCREF(sobj->dict); return sobj->dict; } @@ -1415,18 +1754,21 @@ SwigPyObject_format(const char* fmt, SwigPyObject *v) PyObject *res = NULL; PyObject *args = PyTuple_New(1); if (args) { - if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { - PyObject *ofmt = SWIG_Python_str_FromChar(fmt); + PyObject *val = SwigPyObject_long(v); + if (val) { + PyObject *ofmt; + PyTuple_SET_ITEM(args, 0, val); + ofmt = SWIG_Python_str_FromChar(fmt); if (ofmt) { #if PY_VERSION_HEX >= 0x03000000 - res = PyUnicode_Format(ofmt,args); + res = PyUnicode_Format(ofmt,args); #else - res = PyString_Format(ofmt,args); + res = PyString_Format(ofmt,args); #endif - Py_DECREF(ofmt); + Py_DECREF(ofmt); } - Py_DECREF(args); } + Py_DECREF(args); } return res; } @@ -1448,18 +1790,23 @@ SwigPyObject_repr(SwigPyObject *v) { const char *name = SWIG_TypePrettyName(v->ty); PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); - if (v->next) { + if (repr && v->next) { PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); + if (nrep) { # if PY_VERSION_HEX >= 0x03000000 - PyObject *joined = PyUnicode_Concat(repr, nrep); - Py_DecRef(repr); - Py_DecRef(nrep); - repr = joined; + PyObject *joined = PyUnicode_Concat(repr, nrep); + Py_DecRef(repr); + Py_DecRef(nrep); + repr = joined; # else - PyString_ConcatAndDel(&repr,nrep); + PyString_ConcatAndDel(&repr,nrep); # endif + } else { + Py_DecRef(repr); + repr = NULL; + } } - return repr; + return repr; } /* We need a version taking two PyObject* parameters so it's a valid @@ -1482,12 +1829,14 @@ SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) SWIGRUNTIME PyObject* SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) { - PyObject* res; - if( op != Py_EQ && op != Py_NE ) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; + PyObject* res = NULL; + if (!PyErr_Occurred()) { + if (op != Py_EQ && op != Py_NE) { + Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; + } + res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); } - res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); return res; } @@ -1515,20 +1864,34 @@ SwigPyObject_type(void) { SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op) { -#ifdef SWIGPYTHON_BUILTIN PyTypeObject *target_tp = SwigPyObject_type(); - if (PyType_IsSubtype(op->ob_type, target_tp)) + PyTypeObject *op_type = Py_TYPE(op); +#ifdef SWIGPYTHON_BUILTIN + if (PyType_IsSubtype(op_type, target_tp)) return 1; - return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); + return (strcmp(op_type->tp_name, "SwigPyObject") == 0); #else - return (Py_TYPE(op) == SwigPyObject_type()) - || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); + if (op_type == target_tp) + return 1; +# ifdef Py_LIMITED_API + int cmp; + PyObject *tp_name = PyObject_GetAttrString((PyObject *)op_type, "__name__"); + if (!tp_name) + return 0; + cmp = PyUnicode_CompareWithASCIIString(tp_name, "SwigPyObject"); + Py_DECREF(tp_name); + return cmp == 0; +# else + return (strcmp(op_type->tp_name, "SwigPyObject") == 0); +# endif #endif } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own); +static PyObject* Swig_Capsule_global = NULL; + SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v) { @@ -1555,8 +1918,12 @@ SwigPyObject_dealloc(PyObject *v) if (data->delargs) { /* we need to create a temporary object to carry the destroy operation */ PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); + if (tmp) { + res = SWIG_Python_CallFunctor(destroy, tmp); + } else { + res = 0; + } + Py_XDECREF(tmp); } else { PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); PyObject *mself = PyCFunction_GET_SELF(destroy); @@ -1575,8 +1942,12 @@ SwigPyObject_dealloc(PyObject *v) printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); } #endif - } + Py_XDECREF(Swig_Capsule_global); + } Py_XDECREF(next); +#ifdef SWIGPYTHON_BUILTIN + Py_XDECREF(sobj->dict); +#endif PyObject_DEL(v); } @@ -1588,6 +1959,7 @@ SwigPyObject_append(PyObject* v, PyObject* next) PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); return NULL; } + ((SwigPyObject *)next)->next = sobj->next; sobj->next = next; Py_INCREF(next); return SWIG_Py_Void(); @@ -1632,9 +2004,9 @@ SwigPyObject_own(PyObject *v, PyObject *args) PyObject *obj = PyBool_FromLong(sobj->own); if (val) { if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v,args); + Py_DECREF(SwigPyObject_acquire(v,args)); } else { - SwigPyObject_disown(v,args); + Py_DECREF(SwigPyObject_disown(v,args)); } } return obj; @@ -1655,7 +2027,7 @@ swigobject_methods[] = { SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void) { static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; - +#ifndef Py_LIMITED_API static PyNumberMethods SwigPyObject_as_number = { (binaryfunc)0, /*nb_add*/ (binaryfunc)0, /*nb_subtract*/ @@ -1714,7 +2086,11 @@ SwigPyObject_TypeOnce(void) { sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - 0, /* tp_print */ +#if PY_VERSION_HEX < 0x030800b4 + (printfunc)0, /*tp_print*/ +#else + (Py_ssize_t)0, /*tp_vectorcall_offset*/ +#endif (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX >= 0x03000000 @@ -1769,6 +2145,9 @@ SwigPyObject_TypeOnce(void) { #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) 0, /* tp_print */ #endif +#if PY_VERSION_HEX >= 0x030C0000 + 0, /* tp_watched */ +#endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ @@ -1779,21 +2158,50 @@ SwigPyObject_TypeOnce(void) { }; swigpyobject_type = tmp; type_init = 1; - if (PyType_Ready(&swigpyobject_type) < 0) + if (PyType_Ready(&swigpyobject_type) != 0) return NULL; } return &swigpyobject_type; +#else + PyType_Slot slots[] = { + { Py_tp_dealloc, (void *)SwigPyObject_dealloc }, + { Py_tp_repr, (void *)SwigPyObject_repr }, + { Py_tp_getattro, (void *)PyObject_GenericGetAttr }, + { Py_tp_doc, (void *)swigobject_doc }, + { Py_tp_richcompare, (void *)SwigPyObject_richcompare }, + { Py_tp_methods, (void *)swigobject_methods }, + { Py_nb_int, (void *)SwigPyObject_long }, + { 0, NULL } + }; + PyType_Spec spec = { + "SwigPyObject", + sizeof(SwigPyObject), + 0, + Py_TPFLAGS_DEFAULT, + slots + }; + return (PyTypeObject *)PyType_FromSpec(&spec); +#endif } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own) { - SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); + SwigPyObject *sobj = PyObject_New(SwigPyObject, SwigPyObject_type()); if (sobj) { sobj->ptr = ptr; sobj->ty = ty; sobj->own = own; sobj->next = 0; +#ifdef SWIGPYTHON_BUILTIN + sobj->dict = 0; +#endif + if (own == SWIG_POINTER_OWN) { + /* Obtain a reference to the Python capsule wrapping the module information, so that the + * module information is correctly destroyed after all SWIG python objects have been freed + * by the GC (and corresponding destructors invoked) */ + Py_XINCREF(Swig_Capsule_global); + } } return (PyObject *)sobj; } @@ -1850,8 +2258,20 @@ SwigPyPacked_type(void) { SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op) { - return ((op)->ob_type == SwigPyPacked_TypeOnce()) - || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); + PyTypeObject* op_type = Py_TYPE(op); + if (op_type == SwigPyPacked_TypeOnce()) + return 1; +#ifdef Py_LIMITED_API + int cmp; + PyObject *tp_name = PyObject_GetAttrString((PyObject *)op_type, "__name__"); + if (!tp_name) + return 0; + cmp = PyUnicode_CompareWithASCIIString(tp_name, "SwigPyPacked"); + Py_DECREF(tp_name); + return cmp == 0; +#else + return (strcmp(op_type->tp_name, "SwigPyPacked") == 0); +#endif } SWIGRUNTIME void @@ -1867,6 +2287,7 @@ SwigPyPacked_dealloc(PyObject *v) SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void) { static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; +#ifndef Py_LIMITED_API static PyTypeObject swigpypacked_type; static int type_init = 0; if (!type_init) { @@ -1881,7 +2302,11 @@ SwigPyPacked_TypeOnce(void) { sizeof(SwigPyPacked), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - 0, /* tp_print */ +#if PY_VERSION_HEX < 0x030800b4 + (printfunc)0, /*tp_print*/ +#else + (Py_ssize_t)0, /*tp_vectorcall_offset*/ +#endif (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX>=0x03000000 @@ -1936,6 +2361,9 @@ SwigPyPacked_TypeOnce(void) { #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) 0, /* tp_print */ #endif +#if PY_VERSION_HEX >= 0x030C0000 + 0, /* tp_watched */ +#endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ @@ -1946,16 +2374,34 @@ SwigPyPacked_TypeOnce(void) { }; swigpypacked_type = tmp; type_init = 1; - if (PyType_Ready(&swigpypacked_type) < 0) + if (PyType_Ready(&swigpypacked_type) != 0) return NULL; } return &swigpypacked_type; +#else + PyType_Slot slots[] = { + { Py_tp_dealloc, (void *)SwigPyPacked_dealloc }, + { Py_tp_repr, (void *)SwigPyPacked_repr }, + { Py_tp_str, (void *)SwigPyPacked_str }, + { Py_tp_getattro, (void *)PyObject_GenericGetAttr }, + { Py_tp_doc, (void *)swigpacked_doc }, + { 0, NULL } + }; + PyType_Spec spec = { + "SwigPyPacked", + sizeof(SwigPyPacked), + 0, + Py_TPFLAGS_DEFAULT, + slots + }; + return (PyTypeObject *)PyType_FromSpec(&spec); +#endif } SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) { - SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); + SwigPyPacked *sobj = PyObject_New(SwigPyPacked, SwigPyPacked_type()); if (sobj) { void *pack = malloc(size); if (pack) { @@ -2136,12 +2582,19 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } } if (sobj) { - if (own) - *own = *own | sobj->own; - if (flags & SWIG_POINTER_DISOWN) { - sobj->own = 0; + if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE) && !sobj->own) { + res = SWIG_ERROR_RELEASE_NOT_OWNED; + } else { + if (own) + *own = *own | sobj->own; + if (flags & SWIG_POINTER_DISOWN) { + sobj->own = 0; + } + if (flags & SWIG_POINTER_CLEAR) { + sobj->ptr = 0; + } + res = SWIG_OK; } - res = SWIG_OK; } else { if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; @@ -2200,10 +2653,20 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { swig_cast_info *tc; /* here we get the method pointer for callbacks */ +#ifndef Py_LIMITED_API const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); +#else + PyObject* pystr_doc = PyObject_GetAttrString(obj, "__doc__"); + PyObject *bytes = NULL; + const char *doc = pystr_doc ? SWIG_PyUnicode_AsUTF8AndSize(pystr_doc, NULL, &bytes) : 0; +#endif const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; if (desc) desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; +#ifdef Py_LIMITED_API + Py_XDECREF(bytes); + Py_XDECREF(pystr_doc); +#endif if (!desc) return SWIG_ERROR; tc = SWIG_TypeCheck(desc,ty); @@ -2254,12 +2717,17 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { - PyObject *dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - PyDict_SetItem(dict, SWIG_This(), swig_this); - } + PyObject *dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + } + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + } else{ + Py_DECREF(inst); + inst = 0; + } } #else if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) { @@ -2274,14 +2742,19 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) if (empty_args) { PyObject *empty_kwargs = PyDict_New(); if (empty_kwargs) { - inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs); +#ifndef Py_LIMITED_API + newfunc newfn = ((PyTypeObject *)data->newargs)->tp_new; +#else + newfunc newfn = (newfunc)PyType_GetSlot((PyTypeObject *)data->newargs, Py_tp_new); +#endif + inst = newfn((PyTypeObject *)data->newargs, empty_args, empty_kwargs); Py_DECREF(empty_kwargs); if (inst) { if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) { Py_DECREF(inst); inst = 0; } else { - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + PyType_Modified(Py_TYPE(inst)); } } } @@ -2310,7 +2783,11 @@ SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) dict = PyDict_New(); *dictptr = dict; } - return PyDict_SetItem(dict, SWIG_This(), swig_this); + if (dict) { + return PyDict_SetItem(dict, SWIG_This(), swig_this); + } else{ + return -1; + } } #endif return PyObject_SetAttr(inst, SWIG_This(), swig_this); @@ -2325,7 +2802,7 @@ SWIG_Python_InitShadowInstance(PyObject *args) { } else { SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); if (sthis) { - SwigPyObject_append((PyObject*) sthis, obj[1]); + Py_DECREF(SwigPyObject_append((PyObject*) sthis, obj[1])); } else { if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0) return NULL; @@ -2352,7 +2829,12 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f if (flags & SWIG_BUILTIN_TP_INIT) { newobj = (SwigPyObject*) self; if (newobj->ptr) { - PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); +#ifndef Py_LIMITED_API + allocfunc alloc = clientdata->pytype->tp_alloc; +#else + allocfunc alloc = (allocfunc)PyType_GetSlot(clientdata->pytype, Py_tp_alloc); +#endif + PyObject *next_self = alloc(clientdata->pytype, 0); while (newobj->next) newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; @@ -2364,7 +2846,9 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); #ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; + if (newobj) { + newobj->dict = 0; + } #endif } if (newobj) { @@ -2403,39 +2887,61 @@ SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { void *SWIG_ReturnGlobalTypeList(void *); #endif +static PyObject *Swig_TypeCache_global = NULL; + +/* The python cached type query */ +SWIGRUNTIME PyObject * +SWIG_Python_TypeCache(void) { + if (Swig_TypeCache_global == NULL) { + Swig_TypeCache_global = PyDict_New(); + } + return Swig_TypeCache_global; +} + SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { +#ifdef SWIG_LINK_RUNTIME static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { -#ifdef SWIG_LINK_RUNTIME type_pointer = SWIG_ReturnGlobalTypeList((void *)0); + } #else - type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); - if (PyErr_Occurred()) { - PyErr_Clear(); - type_pointer = (void *)0; - } -#endif + void *type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); + if (PyErr_Occurred()) { + PyErr_Clear(); + type_pointer = (void *)0; } +#endif return (swig_module_info *) type_pointer; } + +static int interpreter_counter = 0; /* how many (sub-)interpreters are using swig_module's types */ + SWIGRUNTIME void SWIG_Python_DestroyModule(PyObject *obj) { swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); swig_type_info **types = swig_module->types; size_t i; + if (--interpreter_counter != 0) /* another sub-interpreter may still be using the swig_module's types */ + return; for (i =0; i < swig_module->size; ++i) { swig_type_info *ty = types[i]; if (ty->owndata) { SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; + ty->clientdata = 0; if (data) SwigPyClientData_Del(data); } } Py_DECREF(SWIG_This()); Swig_This_global = NULL; + Py_DECREF(SWIG_globals()); + Swig_Globals_global = NULL; + Py_DECREF(SWIG_Python_TypeCache()); + Swig_TypeCache_global = NULL; + Swig_Capsule_global = NULL; } SWIGRUNTIME void @@ -2449,19 +2955,17 @@ SWIG_Python_SetModule(swig_module_info *swig_module) { #endif PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); if (pointer && module) { - PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); + if (PyModule_AddObject(module, SWIGPY_CAPSULE_ATTR_NAME, pointer) == 0) { + ++interpreter_counter; + Swig_Capsule_global = pointer; + } else { + Py_DECREF(pointer); + } } else { Py_XDECREF(pointer); } } -/* The python cached type query */ -SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { - static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); - return cache; -} - SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type) { @@ -2476,8 +2980,10 @@ SWIG_Python_TypeQuery(const char *type) descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { obj = PyCapsule_New((void*) descriptor, NULL, NULL); - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); + if (obj) { + PyDict_SetItem(cache, key, obj); + Py_DECREF(obj); + } } } Py_DECREF(key); @@ -2501,7 +3007,8 @@ SWIG_Python_AddErrMesg(const char* mesg, int infront) PyErr_Fetch(&type, &value, &traceback); if (value) { PyObject *old_str = PyObject_Str(value); - const char *tmp = SWIG_Python_str_AsChar(old_str); + PyObject *bytes = NULL; + const char *tmp = SWIG_PyUnicode_AsUTF8AndSize(old_str, NULL, &bytes); const char *errmesg = tmp ? tmp : "Invalid error message"; Py_XINCREF(type); PyErr_Clear(); @@ -2510,7 +3017,7 @@ SWIG_Python_AddErrMesg(const char* mesg, int infront) } else { PyErr_Format(type, "%s %s", errmesg, mesg); } - SWIG_Python_str_DelForPy3(tmp); + Py_XDECREF(bytes); Py_DECREF(old_str); } return 1; @@ -2555,21 +3062,25 @@ SWIG_Python_TypeError(const char *type, PyObject *obj) } else #endif { +#ifndef Py_LIMITED_API + /* tp_name is not accessible */ const char *otype = (obj ? obj->ob_type->tp_name : 0); if (otype) { PyObject *str = PyObject_Str(obj); - const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; + PyObject *bytes = NULL; + const char *cstr = str ? SWIG_PyUnicode_AsUTF8AndSize(str, NULL, &bytes) : 0; if (cstr) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", type, otype, cstr); - SWIG_Python_str_DelForPy3(cstr); } else { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", type, otype); } + Py_XDECREF(bytes); Py_XDECREF(str); return; } +#endif } PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); } else { @@ -2584,12 +3095,6 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(arg void *result; if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { PyErr_Clear(); -#if SWIG_POINTER_EXCEPTION - if (flags) { - SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); - SWIG_Python_ArgFail(argnum); - } -#endif } return result; } @@ -2620,7 +3125,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { } if (!tp->tp_dict) { - if (PyType_Ready(tp) < 0) + if (PyType_Ready(tp) != 0) goto done; } @@ -2635,7 +3140,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { } else { encoded_name = PyUnicode_AsUTF8String(name); if (!encoded_name) - return -1; + goto done; } PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); Py_DECREF(encoded_name); @@ -2658,26 +3163,11 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - +#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0) -#ifdef __cplusplus -extern "C" { -#endif -/* Method creation and docstring support functions */ -SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name); -SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func); -SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func); - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ +/* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_CBF_NODETYPE swig_types[0] #define SWIGTYPE_p_a_4__double swig_types[1] @@ -2723,10 +3213,6 @@ static swig_module_info swig_module = {swig_types, 20, 0, 0, 0, 0}; #endif #define SWIG_name "_pycbf" -#define SWIGVERSION 0x040002 -#define SWIG_VERSION SWIGVERSION - - #define SWIG_as_voidptr(a) (void *)((const void *)(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) @@ -2790,9 +3276,11 @@ SWIGINTERNINLINE int SWIG_CanCastAsInteger(double *d, double min, double max) { double x = *d; if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + double fx, cx, rd; + errno = 0; + fx = floor(x); + cx = ceil(x); + rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ if ((errno == EDOM) || (errno == ERANGE)) { errno = 0; } else { @@ -2853,7 +3341,11 @@ SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + // Largest double not larger than ULONG_MAX (not portably calculated easily) + // Note that double(ULONG_MAX) is stored in a double rounded up by one (for 64-bit unsigned long) + // 0xfffffffffffff800ULL == (uint64_t)std::nextafter(double(__uint128_t(ULONG_MAX)+1), double(0)) + const double ulong_max = sizeof(unsigned long) == 8 ? 0xfffffffffffff800ULL : ULONG_MAX; + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ulong_max)) { if (val) *val = (unsigned long)(d); return res; } @@ -3013,7 +3505,12 @@ SWIG_AsVal_long (PyObject *obj, long* val) if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { + // Largest double not larger than LONG_MAX (not portably calculated easily) + // Note that double(LONG_MAX) is stored in a double rounded up by one (for 64-bit long) + // 0x7ffffffffffffc00LL == (int64_t)std::nextafter(double(__uint128_t(LONG_MAX)+1), double(0)) + const double long_max = sizeof(long) == 8 ? 0x7ffffffffffffc00LL : LONG_MAX; + // No equivalent needed for 64-bit double(LONG_MIN) is exactly LONG_MIN + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, long_max)) { if (val) *val = (long)(d); return res; } @@ -3708,8 +4205,10 @@ int PYCBF_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, } +/* Return string from Python obj. NOTE: obj must remain in scope in order + to use the returned cptr (but only when alloc is set to SWIG_OLDOBJ) */ SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +SWIG_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, int *alloc) { #if PY_VERSION_HEX>=0x03000000 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) @@ -3722,55 +4221,31 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) #endif { char *cstr; Py_ssize_t len; + PyObject *bytes = NULL; int ret = SWIG_OK; -#if PY_VERSION_HEX>=0x03000000 -#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - if (!alloc && cptr) { - /* We can't allow converting without allocation, since the internal - representation of string in Python 3 is UCS-2/UCS-4 but we require - a UTF-8 representation. - TODO(bhy) More detailed explanation */ - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - if (!obj) - return SWIG_TypeError; if (alloc) - *alloc = SWIG_NEWOBJ; -#endif + *alloc = SWIG_OLDOBJ; +#if PY_VERSION_HEX>=0x03000000 && defined(SWIG_PYTHON_STRICT_BYTE_CHAR) if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1) return SWIG_TypeError; #else - if (PyString_AsStringAndSize(obj, &cstr, &len) == -1) + cstr = (char *)SWIG_PyUnicode_AsUTF8AndSize(obj, &len, &bytes); + if (!cstr) return SWIG_TypeError; -#endif - if (cptr) { + /* The returned string is only duplicated if the char * returned is not owned and memory managed by obj */ + if (bytes && cptr) { if (alloc) { - if (*alloc == SWIG_NEWOBJ) { - *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); - *alloc = SWIG_NEWOBJ; - } else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } + cstr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); + *alloc = SWIG_NEWOBJ; } else { -#if PY_VERSION_HEX>=0x03000000 -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - *cptr = PyBytes_AsString(obj); -#else - assert(0); /* Should never reach here with Unicode strings in Python 3 */ -#endif -#else - *cptr = SWIG_Python_str_AsChar(obj); - if (!*cptr) - ret = SWIG_TypeError; -#endif + /* alloc must be set in order to clean up allocated memory */ + return SWIG_RuntimeError; } } - if (psize) *psize = len + 1; -#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - Py_XDECREF(obj); #endif + if (cptr) *cptr = cstr; + if (psize) *psize = len + 1; + Py_XDECREF(bytes); return ret; } else { #if defined(SWIG_PYTHON_2_UNICODE) @@ -5291,7 +5766,7 @@ SWIGINTERNINLINE PyObject* #ifdef __cplusplus extern "C" { #endif -SWIGINTERN PyObject *_wrap_new_doubleArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_doubleArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; size_t arg1 ; size_t val1 ; @@ -5299,6 +5774,7 @@ SWIGINTERN PyObject *_wrap_new_doubleArray(PyObject *SWIGUNUSEDPARM(self), PyObj PyObject *swig_obj[1] ; doubleArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); @@ -5314,13 +5790,14 @@ SWIGINTERN PyObject *_wrap_new_doubleArray(PyObject *SWIGUNUSEDPARM(self), PyObj } -SWIGINTERN PyObject *_wrap_delete_doubleArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_doubleArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; doubleArray *arg1 = (doubleArray *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_doubleArray, SWIG_POINTER_DISOWN | 0 ); @@ -5336,7 +5813,7 @@ SWIGINTERN PyObject *_wrap_delete_doubleArray(PyObject *SWIGUNUSEDPARM(self), Py } -SWIGINTERN PyObject *_wrap_doubleArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_doubleArray___getitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; doubleArray *arg1 = (doubleArray *) 0 ; size_t arg2 ; @@ -5347,6 +5824,7 @@ SWIGINTERN PyObject *_wrap_doubleArray___getitem__(PyObject *SWIGUNUSEDPARM(self PyObject *swig_obj[2] ; double result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "doubleArray___getitem__", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_doubleArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5366,7 +5844,7 @@ SWIGINTERN PyObject *_wrap_doubleArray___getitem__(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_doubleArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_doubleArray___setitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; doubleArray *arg1 = (doubleArray *) 0 ; size_t arg2 ; @@ -5379,6 +5857,7 @@ SWIGINTERN PyObject *_wrap_doubleArray___setitem__(PyObject *SWIGUNUSEDPARM(self int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "doubleArray___setitem__", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_doubleArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5403,7 +5882,7 @@ SWIGINTERN PyObject *_wrap_doubleArray___setitem__(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_doubleArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_doubleArray_cast(PyObject *self, PyObject *args) { PyObject *resultobj = 0; doubleArray *arg1 = (doubleArray *) 0 ; void *argp1 = 0 ; @@ -5411,6 +5890,7 @@ SWIGINTERN PyObject *_wrap_doubleArray_cast(PyObject *SWIGUNUSEDPARM(self), PyOb PyObject *swig_obj[1] ; double *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_doubleArray, 0 | 0 ); @@ -5426,7 +5906,7 @@ SWIGINTERN PyObject *_wrap_doubleArray_cast(PyObject *SWIGUNUSEDPARM(self), PyOb } -SWIGINTERN PyObject *_wrap_doubleArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_doubleArray_frompointer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; double *arg1 = (double *) 0 ; void *argp1 = 0 ; @@ -5434,6 +5914,7 @@ SWIGINTERN PyObject *_wrap_doubleArray_frompointer(PyObject *SWIGUNUSEDPARM(self PyObject *swig_obj[1] ; doubleArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 | 0 ); @@ -5460,7 +5941,7 @@ SWIGINTERN PyObject *doubleArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObje return SWIG_Python_InitShadowInstance(args); } -SWIGINTERN PyObject *_wrap_new_intArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_intArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; size_t arg1 ; size_t val1 ; @@ -5468,6 +5949,7 @@ SWIGINTERN PyObject *_wrap_new_intArray(PyObject *SWIGUNUSEDPARM(self), PyObject PyObject *swig_obj[1] ; intArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); @@ -5483,13 +5965,14 @@ SWIGINTERN PyObject *_wrap_new_intArray(PyObject *SWIGUNUSEDPARM(self), PyObject } -SWIGINTERN PyObject *_wrap_delete_intArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_intArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; intArray *arg1 = (intArray *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_intArray, SWIG_POINTER_DISOWN | 0 ); @@ -5505,7 +5988,7 @@ SWIGINTERN PyObject *_wrap_delete_intArray(PyObject *SWIGUNUSEDPARM(self), PyObj } -SWIGINTERN PyObject *_wrap_intArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_intArray___getitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; intArray *arg1 = (intArray *) 0 ; size_t arg2 ; @@ -5516,6 +5999,7 @@ SWIGINTERN PyObject *_wrap_intArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *swig_obj[2] ; int result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "intArray___getitem__", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_intArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5535,7 +6019,7 @@ SWIGINTERN PyObject *_wrap_intArray___getitem__(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_intArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_intArray___setitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; intArray *arg1 = (intArray *) 0 ; size_t arg2 ; @@ -5548,6 +6032,7 @@ SWIGINTERN PyObject *_wrap_intArray___setitem__(PyObject *SWIGUNUSEDPARM(self), int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "intArray___setitem__", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_intArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5572,7 +6057,7 @@ SWIGINTERN PyObject *_wrap_intArray___setitem__(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_intArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_intArray_cast(PyObject *self, PyObject *args) { PyObject *resultobj = 0; intArray *arg1 = (intArray *) 0 ; void *argp1 = 0 ; @@ -5580,6 +6065,7 @@ SWIGINTERN PyObject *_wrap_intArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObjec PyObject *swig_obj[1] ; int *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_intArray, 0 | 0 ); @@ -5595,7 +6081,7 @@ SWIGINTERN PyObject *_wrap_intArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObjec } -SWIGINTERN PyObject *_wrap_intArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_intArray_frompointer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; int *arg1 = (int *) 0 ; void *argp1 = 0 ; @@ -5603,6 +6089,7 @@ SWIGINTERN PyObject *_wrap_intArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *swig_obj[1] ; intArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_int, 0 | 0 ); @@ -5629,7 +6116,7 @@ SWIGINTERN PyObject *intArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject return SWIG_Python_InitShadowInstance(args); } -SWIGINTERN PyObject *_wrap_new_shortArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_shortArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; size_t arg1 ; size_t val1 ; @@ -5637,6 +6124,7 @@ SWIGINTERN PyObject *_wrap_new_shortArray(PyObject *SWIGUNUSEDPARM(self), PyObje PyObject *swig_obj[1] ; shortArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); @@ -5652,13 +6140,14 @@ SWIGINTERN PyObject *_wrap_new_shortArray(PyObject *SWIGUNUSEDPARM(self), PyObje } -SWIGINTERN PyObject *_wrap_delete_shortArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_shortArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; shortArray *arg1 = (shortArray *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_shortArray, SWIG_POINTER_DISOWN | 0 ); @@ -5674,7 +6163,7 @@ SWIGINTERN PyObject *_wrap_delete_shortArray(PyObject *SWIGUNUSEDPARM(self), PyO } -SWIGINTERN PyObject *_wrap_shortArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_shortArray___getitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; shortArray *arg1 = (shortArray *) 0 ; size_t arg2 ; @@ -5685,6 +6174,7 @@ SWIGINTERN PyObject *_wrap_shortArray___getitem__(PyObject *SWIGUNUSEDPARM(self) PyObject *swig_obj[2] ; short result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "shortArray___getitem__", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_shortArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5704,7 +6194,7 @@ SWIGINTERN PyObject *_wrap_shortArray___getitem__(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_shortArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_shortArray___setitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; shortArray *arg1 = (shortArray *) 0 ; size_t arg2 ; @@ -5717,6 +6207,7 @@ SWIGINTERN PyObject *_wrap_shortArray___setitem__(PyObject *SWIGUNUSEDPARM(self) int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "shortArray___setitem__", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_shortArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5741,7 +6232,7 @@ SWIGINTERN PyObject *_wrap_shortArray___setitem__(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_shortArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_shortArray_cast(PyObject *self, PyObject *args) { PyObject *resultobj = 0; shortArray *arg1 = (shortArray *) 0 ; void *argp1 = 0 ; @@ -5749,6 +6240,7 @@ SWIGINTERN PyObject *_wrap_shortArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObj PyObject *swig_obj[1] ; short *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_shortArray, 0 | 0 ); @@ -5764,7 +6256,7 @@ SWIGINTERN PyObject *_wrap_shortArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObj } -SWIGINTERN PyObject *_wrap_shortArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_shortArray_frompointer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; short *arg1 = (short *) 0 ; void *argp1 = 0 ; @@ -5772,6 +6264,7 @@ SWIGINTERN PyObject *_wrap_shortArray_frompointer(PyObject *SWIGUNUSEDPARM(self) PyObject *swig_obj[1] ; shortArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_short, 0 | 0 ); @@ -5798,7 +6291,7 @@ SWIGINTERN PyObject *shortArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObjec return SWIG_Python_InitShadowInstance(args); } -SWIGINTERN PyObject *_wrap_new_longArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_longArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; size_t arg1 ; size_t val1 ; @@ -5806,6 +6299,7 @@ SWIGINTERN PyObject *_wrap_new_longArray(PyObject *SWIGUNUSEDPARM(self), PyObjec PyObject *swig_obj[1] ; longArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); @@ -5821,13 +6315,14 @@ SWIGINTERN PyObject *_wrap_new_longArray(PyObject *SWIGUNUSEDPARM(self), PyObjec } -SWIGINTERN PyObject *_wrap_delete_longArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_longArray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; longArray *arg1 = (longArray *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_longArray, SWIG_POINTER_DISOWN | 0 ); @@ -5843,7 +6338,7 @@ SWIGINTERN PyObject *_wrap_delete_longArray(PyObject *SWIGUNUSEDPARM(self), PyOb } -SWIGINTERN PyObject *_wrap_longArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_longArray___getitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; longArray *arg1 = (longArray *) 0 ; size_t arg2 ; @@ -5854,6 +6349,7 @@ SWIGINTERN PyObject *_wrap_longArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *swig_obj[2] ; long result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "longArray___getitem__", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_longArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5873,7 +6369,7 @@ SWIGINTERN PyObject *_wrap_longArray___getitem__(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_longArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_longArray___setitem__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; longArray *arg1 = (longArray *) 0 ; size_t arg2 ; @@ -5886,6 +6382,7 @@ SWIGINTERN PyObject *_wrap_longArray___setitem__(PyObject *SWIGUNUSEDPARM(self), int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "longArray___setitem__", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_longArray, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -5910,7 +6407,7 @@ SWIGINTERN PyObject *_wrap_longArray___setitem__(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_longArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_longArray_cast(PyObject *self, PyObject *args) { PyObject *resultobj = 0; longArray *arg1 = (longArray *) 0 ; void *argp1 = 0 ; @@ -5918,6 +6415,7 @@ SWIGINTERN PyObject *_wrap_longArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObje PyObject *swig_obj[1] ; long *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_longArray, 0 | 0 ); @@ -5933,7 +6431,7 @@ SWIGINTERN PyObject *_wrap_longArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObje } -SWIGINTERN PyObject *_wrap_longArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_longArray_frompointer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; long *arg1 = (long *) 0 ; void *argp1 = 0 ; @@ -5941,6 +6439,7 @@ SWIGINTERN PyObject *_wrap_longArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *swig_obj[1] ; longArray *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_long, 0 | 0 ); @@ -5967,7 +6466,7 @@ SWIGINTERN PyObject *longArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject return SWIG_Python_InitShadowInstance(args); } -SWIGINTERN PyObject *_wrap_airy_disk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_airy_disk(PyObject *self, PyObject *args) { PyObject *resultobj = 0; double arg1 ; double arg2 ; @@ -5993,6 +6492,7 @@ SWIGINTERN PyObject *_wrap_airy_disk(PyObject *SWIGUNUSEDPARM(self), PyObject *a PyObject *swig_obj[6] ; arg7 = &temp7; + (void)self; if (!SWIG_Python_UnpackTuple(args, "airy_disk", 6, 6, swig_obj)) SWIG_fail; ecode1 = SWIG_AsVal_double(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { @@ -6046,7 +6546,7 @@ SWIGINTERN PyObject *_wrap_airy_disk(PyObject *SWIGUNUSEDPARM(self), PyObject *a } -SWIGINTERN PyObject *_wrap_airy_disk_volume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_airy_disk_volume(PyObject *self, PyObject *args) { PyObject *resultobj = 0; double arg1 ; double arg2 ; @@ -6078,6 +6578,7 @@ SWIGINTERN PyObject *_wrap_airy_disk_volume(PyObject *SWIGUNUSEDPARM(self), PyOb PyObject *swig_obj[8] ; arg9 = &temp9; + (void)self; if (!SWIG_Python_UnpackTuple(args, "airy_disk_volume", 8, 8, swig_obj)) SWIG_fail; ecode1 = SWIG_AsVal_double(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { @@ -6141,9 +6642,9 @@ SWIGINTERN PyObject *_wrap_airy_disk_volume(PyObject *SWIGUNUSEDPARM(self), PyOb } -SWIGINTERN PyObject *_wrap_compute_cell_volume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_compute_cell_volume(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - double *arg1 ; + double *arg1 = (double *) (double *)0 ; double *arg2 = (double *) 0 ; double temp1[6] ; double temp2 ; @@ -6151,6 +6652,7 @@ SWIGINTERN PyObject *_wrap_compute_cell_volume(PyObject *SWIGUNUSEDPARM(self), P PyObject *swig_obj[1] ; arg2 = &temp2; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; { @@ -6183,9 +6685,9 @@ SWIGINTERN PyObject *_wrap_compute_cell_volume(PyObject *SWIGUNUSEDPARM(self), P } -SWIGINTERN PyObject *_wrap_compute_reciprocal_cell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_compute_reciprocal_cell(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - double *arg1 ; + double *arg1 = (double *) (double *)0 ; double *arg2 = (double *) 0 ; double *arg3 = (double *) 0 ; double *arg4 = (double *) 0 ; @@ -6213,6 +6715,7 @@ SWIGINTERN PyObject *_wrap_compute_reciprocal_cell(PyObject *SWIGUNUSEDPARM(self arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; { @@ -6275,7 +6778,7 @@ SWIGINTERN PyObject *_wrap_compute_reciprocal_cell(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_get_local_integer_byte_order(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_get_local_integer_byte_order(PyObject *self, PyObject *args) { PyObject *resultobj = 0; char **arg1 = (char **) 0 ; int *arg2 = (int *) 0 ; @@ -6283,6 +6786,7 @@ SWIGINTERN PyObject *_wrap_get_local_integer_byte_order(PyObject *SWIGUNUSEDPARM int tempn1 ; arg1 = &temp1; arg2 = &tempn1; + (void)self; if (!SWIG_Python_UnpackTuple(args, "get_local_integer_byte_order", 0, 0, 0)) SWIG_fail; { error_status=0; @@ -6304,7 +6808,7 @@ SWIGINTERN PyObject *_wrap_get_local_integer_byte_order(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_get_local_real_byte_order(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_get_local_real_byte_order(PyObject *self, PyObject *args) { PyObject *resultobj = 0; char **arg1 = (char **) 0 ; int *arg2 = (int *) 0 ; @@ -6312,6 +6816,7 @@ SWIGINTERN PyObject *_wrap_get_local_real_byte_order(PyObject *SWIGUNUSEDPARM(se int tempn1 ; arg1 = &temp1; arg2 = &tempn1; + (void)self; if (!SWIG_Python_UnpackTuple(args, "get_local_real_byte_order", 0, 0, 0)) SWIG_fail; { error_status=0; @@ -6333,7 +6838,7 @@ SWIGINTERN PyObject *_wrap_get_local_real_byte_order(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_get_local_real_format(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_get_local_real_format(PyObject *self, PyObject *args) { PyObject *resultobj = 0; char **arg1 = (char **) 0 ; int *arg2 = (int *) 0 ; @@ -6341,6 +6846,7 @@ SWIGINTERN PyObject *_wrap_get_local_real_format(PyObject *SWIGUNUSEDPARM(self), int tempn1 ; arg1 = &temp1; arg2 = &tempn1; + (void)self; if (!SWIG_Python_UnpackTuple(args, "get_local_real_format", 0, 0, 0)) SWIG_fail; { error_status=0; @@ -6362,16 +6868,17 @@ SWIGINTERN PyObject *_wrap_get_local_real_format(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; - double (*arg2)[4] ; + double (*arg2)[4] = (double (*)[4]) (double (*)[4])0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_matrix_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6387,12 +6894,8 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_set(PyObject *SWIGUNUSED if (arg2) { size_t ii = 0; for (; ii < (size_t)3; ++ii) { - if (arg2[ii]) { - size_t jj = 0; - for (; jj < (size_t)4; ++jj) arg1->matrix[ii][jj] = arg2[ii][jj]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""matrix""' of type '""double [3][4]""'"); - } + size_t jj = 0; + for (; jj < (size_t)4; ++jj) arg1->matrix[ii][jj] = arg2[ii][jj]; } } else { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""matrix""' of type '""double [3][4]""'"); @@ -6405,7 +6908,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_set(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; void *argp1 = 0 ; @@ -6413,6 +6916,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_get(PyObject *SWIGUNUSED PyObject *swig_obj[1] ; double (*result)[4] = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -6428,7 +6932,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_get(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; cbf_axis_struct *arg2 = (cbf_axis_struct *) 0 ; @@ -6438,6 +6942,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_set(PyObject *SWIGUNUSEDPA int res2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_axis_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6457,7 +6962,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_set(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; void *argp1 = 0 ; @@ -6465,6 +6970,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_get(PyObject *SWIGUNUSEDPA PyObject *swig_obj[1] ; cbf_axis_struct *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -6480,7 +6986,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_get(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; size_t arg2 ; @@ -6490,6 +6996,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_set(PyObject *SWIGUNUSEDPA int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_axes_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6509,7 +7016,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_set(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; void *argp1 = 0 ; @@ -6517,6 +7024,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_get(PyObject *SWIGUNUSEDPA PyObject *swig_obj[1] ; size_t result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -6532,7 +7040,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axes_get(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; int arg2 ; @@ -6542,6 +7050,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_set(PyObject *S int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_matrix_is_valid_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6561,7 +7070,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_set(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; void *argp1 = 0 ; @@ -6569,6 +7078,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_get(PyObject *S PyObject *swig_obj[1] ; int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -6584,7 +7094,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_is_valid_get(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; double arg2 ; @@ -6594,6 +7104,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_set(PyObject int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_matrix_ratio_used_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6613,7 +7124,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_set(PyObject } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; void *argp1 = 0 ; @@ -6621,6 +7132,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_get(PyObject PyObject *swig_obj[1] ; double result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -6636,7 +7148,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_matrix_ratio_used_get(PyObject } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; size_t arg2 ; @@ -6646,6 +7158,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_set(PyObject * int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_axis_index_limit_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6665,7 +7178,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_set(PyObject * } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; void *argp1 = 0 ; @@ -6673,6 +7186,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_get(PyObject * PyObject *swig_obj[1] ; size_t result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -6688,10 +7202,11 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_axis_index_limit_get(PyObject * } -SWIGINTERN PyObject *_wrap_new_cbf_positioner_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_cbf_positioner_struct(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "new_cbf_positioner_struct", 0, 0, 0)) SWIG_fail; { error_status=0; @@ -6709,13 +7224,14 @@ SWIGINTERN PyObject *_wrap_new_cbf_positioner_struct(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_delete_cbf_positioner_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_cbf_positioner_struct(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, SWIG_POINTER_DISOWN | 0 ); @@ -6739,7 +7255,7 @@ SWIGINTERN PyObject *_wrap_delete_cbf_positioner_struct(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_goniometer_poise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_goniometer_poise(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; double arg2 ; @@ -6777,6 +7293,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_goniometer_poise(PyObject * arg7 = &temp7; arg8 = &temp8; arg9 = &temp9; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_get_goniometer_poise", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6846,7 +7363,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_goniometer_poise(PyObject * } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_reciprocal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_reciprocal(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; double arg2 ; @@ -6880,6 +7397,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_reciprocal(PyObject *SWIGUN arg7 = &temp7; arg8 = &temp8; arg9 = &temp9; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_get_reciprocal", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -6945,7 +7463,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_reciprocal(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_axis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_axis(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -6964,6 +7482,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_axis(PyObject *SWI arg2 = &temp2; arg3 = &temp3; arg4 = &temp4; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -7005,7 +7524,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_axis(PyObject *SWI } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_range(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7020,6 +7539,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_range(PyObject *SW arg2 = &temp2; arg3 = &temp3; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); @@ -7055,7 +7575,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_get_rotation_range(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_positioner_struct_rotate_vector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_positioner_struct_rotate_vector(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_positioner_struct *arg1 = (cbf_positioner_struct *) 0 ; double arg2 ; @@ -7086,6 +7606,7 @@ SWIGINTERN PyObject *_wrap_cbf_positioner_struct_rotate_vector(PyObject *SWIGUNU arg6 = &temp6; arg7 = &temp7; arg8 = &temp8; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_positioner_struct_rotate_vector", 5, 5, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_positioner_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -7157,7 +7678,7 @@ SWIGINTERN PyObject *cbf_positioner_struct_swiginit(PyObject *SWIGUNUSEDPARM(sel return SWIG_Python_InitShadowInstance(args); } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; cbf_positioner arg2 = (cbf_positioner) 0 ; @@ -7167,6 +7688,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_set(PyObject *SWIGUNUS int res2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_positioner_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -7186,7 +7708,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_set(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; void *argp1 = 0 ; @@ -7194,6 +7716,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_get(PyObject *SWIGUNUS PyObject *swig_obj[1] ; cbf_positioner result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7209,15 +7732,16 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_positioner_get(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_displacement_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_displacement_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; - double *arg2 ; + double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; double temp2[2] ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_displacement_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -7247,7 +7771,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_displacement_set(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_displacement_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_displacement_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; void *argp1 = 0 ; @@ -7255,6 +7779,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_displacement_get(PyObject *SWIGUN PyObject *swig_obj[1] ; double *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7270,15 +7795,16 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_displacement_get(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_increment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_increment_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; - double *arg2 ; + double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; double temp2[2] ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_increment_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -7308,7 +7834,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_increment_set(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_increment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_increment_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; void *argp1 = 0 ; @@ -7316,6 +7842,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_increment_get(PyObject *SWIGUNUSE PyObject *swig_obj[1] ; double *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7331,7 +7858,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_increment_get(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; size_t arg2 ; @@ -7341,6 +7868,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_set(PyObject *SWIGUNUSEDPARM int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_axes_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -7360,7 +7888,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_set(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; void *argp1 = 0 ; @@ -7368,6 +7896,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_get(PyObject *SWIGUNUSEDPARM PyObject *swig_obj[1] ; size_t result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7383,16 +7912,17 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_axes_get(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_index_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; - size_t *arg2 ; + size_t *arg2 = (size_t *) (size_t *)0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_index_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -7419,7 +7949,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_index_set(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_index_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; void *argp1 = 0 ; @@ -7427,6 +7957,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_index_get(PyObject *SWIGUNUSEDPAR PyObject *swig_obj[1] ; size_t *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7442,10 +7973,11 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_index_get(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_new_cbf_detector_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_cbf_detector_struct(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "new_cbf_detector_struct", 0, 0, 0)) SWIG_fail; { error_status=0; @@ -7463,13 +7995,14 @@ SWIGINTERN PyObject *_wrap_new_cbf_detector_struct(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_delete_cbf_detector_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_cbf_detector_struct(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, SWIG_POINTER_DISOWN | 0 ); @@ -7493,7 +8026,7 @@ SWIGINTERN PyObject *_wrap_delete_cbf_detector_struct(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7516,6 +8049,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center(PyObject *SWIGUNU arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7563,7 +8097,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7586,6 +8120,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_fs(PyObject *SWIG arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7633,7 +8168,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_fs(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7656,6 +8191,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_sf(PyObject *SWIG arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7703,7 +8239,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_beam_center_sf(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7734,6 +8270,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes(PyObject *SWIGU arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7793,7 +8330,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7824,6 +8361,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_fs(PyObject *SW arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7883,7 +8421,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_fs(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7914,6 +8452,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_sf(PyObject *SW arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -7973,7 +8512,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axes_sf(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_fast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_fast(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -7992,6 +8531,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_fast(PyObject * arg2 = &temp2; arg3 = &temp3; arg4 = &temp4; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -8033,7 +8573,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_fast(PyObject * } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_slow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_slow(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -8052,6 +8592,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_slow(PyObject * arg2 = &temp2; arg3 = &temp3; arg4 = &temp4; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -8093,7 +8634,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_axis_slow(PyObject * } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_distance(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -8104,6 +8645,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_distance(PyObject *S PyObject *swig_obj[1] ; arg2 = &temp2; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -8133,7 +8675,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_distance(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_normal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_normal(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -8152,6 +8694,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_normal(PyObject *SWI arg2 = &temp2; arg3 = &temp3; arg4 = &temp4; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -8193,7 +8736,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_normal(PyObject *SWI } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_surface_axes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_surface_axes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; int arg2 ; @@ -8204,6 +8747,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_surface_axes(PyObjec PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_detector_surface_axes", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8231,7 +8775,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_detector_surface_axes(PyObjec } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; unsigned int arg2 ; @@ -8245,6 +8789,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size(PyObject PyObject *swig_obj[2] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_inferred_pixel_size", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8278,7 +8823,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size(PyObject } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; unsigned int arg2 ; @@ -8292,6 +8837,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_fs(PyObje PyObject *swig_obj[2] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_inferred_pixel_size_fs", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8325,7 +8871,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_fs(PyObje } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; unsigned int arg2 ; @@ -8339,6 +8885,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_sf(PyObje PyObject *swig_obj[2] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_inferred_pixel_size_sf", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8372,7 +8919,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_inferred_pixel_size_sf(PyObje } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8393,6 +8940,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area(PyObject *SWIGUNUS arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_area", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8437,7 +8985,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8458,6 +9006,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_fs(PyObject *SWIGU arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_area_fs", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8502,7 +9051,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_fs(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8523,6 +9072,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_sf(PyObject *SWIGU arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_area_sf", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8567,7 +9117,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_area_sf(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8592,6 +9142,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates(PyObject *S arg4 = &temp4; arg5 = &temp5; arg6 = &temp6; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_coordinates", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8642,7 +9193,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8667,6 +9218,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_fs(PyObject arg4 = &temp4; arg5 = &temp5; arg6 = &temp6; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_coordinates_fs", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8717,7 +9269,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_fs(PyObject } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8742,6 +9294,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_sf(PyObject arg4 = &temp4; arg5 = &temp5; arg6 = &temp6; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_coordinates_sf", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8792,7 +9345,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_coordinates_sf(PyObject } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8817,6 +9370,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal(PyObject *SWIGUN arg4 = &temp4; arg5 = &temp5; arg6 = &temp6; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_normal", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8867,7 +9421,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double arg2 ; @@ -8892,6 +9446,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal_fs(PyObject *SWI arg4 = &temp4; arg5 = &temp5; arg6 = &temp6; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_detector_struct_get_pixel_normal_fs", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -8942,7 +9497,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_get_pixel_normal_fs(PyObject *SWI } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -8965,6 +9520,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center(PyObject *SWIGUNU arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -9012,7 +9568,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -9035,6 +9591,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_fs(PyObject *SWIG arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -9082,7 +9639,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_fs(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -9105,6 +9662,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_sf(PyObject *SWIG arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -9152,7 +9710,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_beam_center_sf(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -9175,6 +9733,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center(PyObjec arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -9222,7 +9781,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center(PyObjec } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -9245,6 +9804,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center_fs(PyOb arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -9292,7 +9852,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center_fs(PyOb } -SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_detector_struct *arg1 = (cbf_detector_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -9315,6 +9875,7 @@ SWIGINTERN PyObject *_wrap_cbf_detector_struct_set_reference_beam_center_sf(PyOb arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_detector_struct, 0 | 0 ); @@ -9373,7 +9934,7 @@ SWIGINTERN PyObject *cbf_detector_struct_swiginit(PyObject *SWIGUNUSEDPARM(self) return SWIG_Python_InitShadowInstance(args); } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; cbf_node *arg2 = (cbf_node *) 0 ; @@ -9383,6 +9944,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_set(PyObject *SWIGUNUSEDPARM(s int res2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_node_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9402,7 +9964,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_set(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9410,6 +9972,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_get(PyObject *SWIGUNUSEDPARM(s PyObject *swig_obj[1] ; cbf_node *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9425,7 +9988,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_node_get(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -9435,6 +9998,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_set(PyObject *SWIGUNUSEDPARM(se int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_row_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9454,7 +10018,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_set(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9462,6 +10026,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_get(PyObject *SWIGUNUSEDPARM(se PyObject *swig_obj[1] ; int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9477,7 +10042,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_get(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -9487,6 +10052,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_set(PyObject *SWIGUNUSED int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_search_row_set", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9506,7 +10072,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_set(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9514,6 +10080,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_get(PyObject *SWIGUNUSED PyObject *swig_obj[1] ; int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9529,10 +10096,11 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_search_row_get(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_new_cbf_handle_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_cbf_handle_struct(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "new_cbf_handle_struct", 0, 0, 0)) SWIG_fail; { error_status=0; @@ -9550,13 +10118,14 @@ SWIGINTERN PyObject *_wrap_new_cbf_handle_struct(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_delete_cbf_handle_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_cbf_handle_struct(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, SWIG_POINTER_DISOWN | 0 ); @@ -9580,7 +10149,7 @@ SWIGINTERN PyObject *_wrap_delete_cbf_handle_struct(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_category_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_category_name(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9588,6 +10157,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_category_name(PyObject *SWIGUNUSEDP PyObject *swig_obj[1] ; char *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9611,7 +10181,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_category_name(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_column_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_column_name(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9619,6 +10189,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_column_name(PyObject *SWIGUNUSEDPAR PyObject *swig_obj[1] ; char *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9642,7 +10213,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_column_name(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_detector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_detector(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -9653,6 +10224,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_detector(PyObject *SWIGUN PyObject *swig_obj[2] ; cbf_detector result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_construct_detector", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9680,7 +10252,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_detector(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_goniometer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_goniometer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9688,6 +10260,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_goniometer(PyObject *SWIG PyObject *swig_obj[1] ; cbf_goniometer result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9711,7 +10284,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_goniometer(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_positioner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_positioner(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -9723,6 +10296,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_positioner(PyObject *SWIG PyObject *swig_obj[2] ; cbf_positioner result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_construct_positioner", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9752,7 +10326,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_positioner(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_detector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_detector(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -9763,6 +10337,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_detector(PyObje PyObject *swig_obj[2] ; cbf_detector result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_construct_reference_detector", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9790,7 +10365,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_detector(PyObje } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_positioner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_positioner(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -9802,6 +10377,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_positioner(PyOb PyObject *swig_obj[2] ; cbf_positioner result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_construct_reference_positioner", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9831,7 +10407,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_construct_reference_positioner(PyOb } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_axis_ancestors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_axis_ancestors(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -9846,6 +10422,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_axis_ancestors(PyObject *SWIG PyObject *swig_obj[2] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_count_axis_ancestors", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -9881,7 +10458,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_axis_ancestors(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_categories(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_categories(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9889,6 +10466,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_categories(PyObject *SWIGUNUS PyObject *swig_obj[1] ; unsigned int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9912,7 +10490,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_categories(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_columns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_columns(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9920,6 +10498,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_columns(PyObject *SWIGUNUSEDP PyObject *swig_obj[1] ; unsigned int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9943,7 +10522,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_columns(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_datablocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_datablocks(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9951,6 +10530,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_datablocks(PyObject *SWIGUNUS PyObject *swig_obj[1] ; unsigned int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -9974,7 +10554,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_datablocks(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_elements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_elements(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -9982,6 +10562,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_elements(PyObject *SWIGUNUSED PyObject *swig_obj[1] ; unsigned int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -10005,7 +10586,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_elements(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_rows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_rows(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -10013,6 +10594,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_rows(PyObject *SWIGUNUSEDPARM PyObject *swig_obj[1] ; unsigned int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -10036,7 +10618,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_count_rows(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_datablock_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_datablock_name(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -10044,6 +10626,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_datablock_name(PyObject *SWIGUNUSED PyObject *swig_obj[1] ; char *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -10067,7 +10650,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_datablock_name(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_delete_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_delete_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -10077,6 +10660,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_delete_row(PyObject *SWIGUNUSEDPARM int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_delete_row", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10104,7 +10688,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_delete_row(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10115,6 +10699,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category(PyObject *SWIGUNUSEDP int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_category", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10144,7 +10729,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category_root(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category_root(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10156,6 +10741,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category_root(PyObject *SWIGUN PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_category_root", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10185,7 +10771,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_category_root(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_column(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10196,6 +10782,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_column(PyObject *SWIGUNUSEDPAR int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_column", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10225,7 +10812,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_column(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10236,6 +10823,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_datablock(PyObject *SWIGUNUSED int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_datablock", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10265,7 +10853,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_datablock(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_nextrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_nextrow(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10276,6 +10864,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_nextrow(PyObject *SWIGUNUSEDPA int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_nextrow", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10305,7 +10894,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_nextrow(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10316,6 +10905,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_row(PyObject *SWIGUNUSEDPARM(s int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_row", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10345,7 +10935,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_row(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10357,6 +10947,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_category(PyObject *SWIGUNU PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_tag_category", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10386,7 +10977,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_category(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_root(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_root(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10398,6 +10989,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_root(PyObject *SWIGUNUSEDP PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_find_tag_root", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10427,7 +11019,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_find_tag_root(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10438,6 +11030,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_category(PyObject *SWIGUN int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_force_new_category", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10467,7 +11060,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_category(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10478,6 +11071,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_datablock(PyObject *SWIGU int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_force_new_datablock", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10507,7 +11101,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_datablock(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_saveframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_saveframe(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -10518,6 +11112,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_saveframe(PyObject *SWIGU int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_force_new_saveframe", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10547,7 +11142,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_force_new_saveframe(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -10577,6 +11172,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_as_string(PyObject *SW PyObject *swig_obj[7] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_3d_image_as_string", 7, 7, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10633,7 +11229,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_as_string(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_fs_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_fs_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -10663,6 +11259,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_fs_as_string(PyObject PyObject *swig_obj[7] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_3d_image_fs_as_string", 7, 7, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10719,7 +11316,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_fs_as_string(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_sf_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_sf_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -10749,6 +11346,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_sf_as_string(PyObject PyObject *swig_obj[7] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_3d_image_sf_as_string", 7, 7, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10805,7 +11403,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_sf_as_string(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -10827,6 +11425,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size(PyObject *SWIGUNU arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_3d_image_size", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10872,7 +11471,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -10894,6 +11493,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_fs(PyObject *SWIG arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_3d_image_size_fs", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -10939,7 +11539,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_fs(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -10961,6 +11561,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_sf(PyObject *SWIG arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_3d_image_size_sf", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11006,7 +11607,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_3d_image_size_sf(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_ancestor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_ancestor(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11021,6 +11622,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_ancestor(PyObject *SWIGUNU PyObject *swig_obj[3] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_ancestor", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11055,7 +11657,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_ancestor(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_depends_on(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_depends_on(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11067,6 +11669,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_depends_on(PyObject *SWIGU PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_depends_on", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11096,7 +11699,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_depends_on(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11108,6 +11711,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment(PyObject *SWIGUN PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_equipment", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11137,7 +11741,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment_component(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment_component(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11149,6 +11753,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment_component(PyObje PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_equipment_component", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11178,7 +11783,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_equipment_component(PyObje } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_offset(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11201,6 +11806,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_offset(PyObject *SWIGUNUSE arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_offset", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11248,7 +11854,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_offset(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_poise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_poise(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double arg2 ; @@ -11294,6 +11900,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_poise(PyObject *SWIGUNUSED arg7 = &temp7; arg8 = &temp8; arg9 = &temp9; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_poise", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11377,7 +11984,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_poise(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_reference_poise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_reference_poise(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -11412,6 +12019,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_reference_poise(PyObject * arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_reference_poise", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11477,7 +12085,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_reference_poise(PyObject * } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11492,6 +12100,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation(PyObject *SWIGUNU PyObject *swig_obj[2] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_rotation", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11527,7 +12136,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation_axis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation_axis(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11539,6 +12148,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation_axis(PyObject *SW PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_rotation_axis", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11568,7 +12178,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_rotation_axis(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_setting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_setting(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11587,6 +12197,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_setting(PyObject *SWIGUNUS arg3 = &temp3; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_setting", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11628,7 +12239,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_setting(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_type(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11640,6 +12251,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_type(PyObject *SWIGUNUSEDP PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_type", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11669,7 +12281,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_type(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_vector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_vector(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -11692,6 +12304,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_vector(PyObject *SWIGUNUSE arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_axis_vector", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11739,7 +12352,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_axis_vector(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_bin_sizes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_bin_sizes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -11757,6 +12370,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_bin_sizes(PyObject *SWIGUNUSEDP arg3 = &temp3; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_bin_sizes", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -11796,7 +12410,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_bin_sizes(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_crystal_id(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_crystal_id(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -11804,6 +12418,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_crystal_id(PyObject *SWIGUNUSED PyObject *swig_obj[1] ; char *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -11827,7 +12442,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_crystal_id(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_datestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_datestamp(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -11862,6 +12477,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_datestamp(PyObject *SWIGUNUSEDP arg6 = &temp6; arg7 = &temp7; arg8 = &temp8; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -11927,7 +12543,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_datestamp(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_dictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_dictionary(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -11935,6 +12551,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_dictionary(PyObject *SWIGUNUSED PyObject *swig_obj[1] ; cbf_handle result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -11958,7 +12575,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_dictionary(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_diffrn_id(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_diffrn_id(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -11966,6 +12583,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_diffrn_id(PyObject *SWIGUNUSEDP PyObject *swig_obj[1] ; char *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -11989,7 +12607,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_diffrn_id(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_divergence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_divergence(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -12008,6 +12626,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_divergence(PyObject *SWIGUNUSED arg2 = &temp2; arg3 = &temp3; arg4 = &temp4; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -12049,7 +12668,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_divergence(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_doublevalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_doublevalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -12057,6 +12676,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_doublevalue(PyObject *SWIGUNUSE PyObject *swig_obj[1] ; double result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -12080,7 +12700,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_doublevalue(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_element_id(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_element_id(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -12091,6 +12711,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_element_id(PyObject *SWIGUNUSED PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_element_id", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12118,13 +12739,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_element_id(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_element_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_element_number(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -12148,7 +12770,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_element_number(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_gain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_gain(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -12166,6 +12788,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_gain(PyObject *SWIGUNUSEDPARM(s arg3 = &temp3; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_gain", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12205,7 +12828,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_gain(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -12232,6 +12855,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_as_string(PyObject *SWIGU PyObject *swig_obj[6] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_image_as_string", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12283,7 +12907,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_as_string(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_fs_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_fs_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -12310,6 +12934,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_fs_as_string(PyObject *SW PyObject *swig_obj[6] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_image_fs_as_string", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12361,7 +12986,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_fs_as_string(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_sf_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_sf_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -12388,6 +13013,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_sf_as_string(PyObject *SW PyObject *swig_obj[6] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_image_sf_as_string", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12439,7 +13065,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_sf_as_string(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -12457,6 +13083,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size(PyObject *SWIGUNUSED arg3 = &temp3; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_image_size", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12496,7 +13123,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -12514,6 +13141,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_fs(PyObject *SWIGUNU arg3 = &temp3; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_image_size_fs", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12553,7 +13181,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_fs(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -12571,6 +13199,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_sf(PyObject *SWIGUNU arg3 = &temp3; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_image_size_sf", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -12610,7 +13239,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_image_size_sf(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarray_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarray_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char **arg2 = (char **) 0 ; @@ -12622,6 +13251,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarray_as_string(PyObject PyObject *swig_obj[1] ; arg2 = &temp2; arg3 = &tempn2; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -12649,7 +13279,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarray_as_string(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -12688,6 +13318,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters(PyObject arg7 = &temp7; arg8 = &temp8; arg9 = &temp9; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -12759,7 +13390,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -12819,6 +13450,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims(Py arg13 = &temp13; arg14 = &temp14; arg15 = &temp15; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -12918,7 +13550,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims(Py } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -12978,6 +13610,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_fs arg13 = &temp13; arg14 = &temp14; arg15 = &temp15; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -13077,7 +13710,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_fs } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -13137,6 +13770,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_sf arg13 = &temp13; arg14 = &temp14; arg15 = &temp15; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -13236,7 +13870,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integerarrayparameters_wdims_sf } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integervalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integervalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -13244,6 +13878,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integervalue(PyObject *SWIGUNUS PyObject *swig_obj[1] ; int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -13267,7 +13902,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integervalue(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integration_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integration_time(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -13278,6 +13913,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integration_time(PyObject *SWIG PyObject *swig_obj[1] ; arg2 = &temp2; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -13307,7 +13943,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_integration_time(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_orientation_matrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_orientation_matrix(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -13350,6 +13986,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_orientation_matrix(PyObject *SW arg8 = &temp8; arg9 = &temp9; arg10 = &temp10; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -13427,7 +14064,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_orientation_matrix(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_overload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_overload(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -13441,6 +14078,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_overload(PyObject *SWIGUNUSEDPA PyObject *swig_obj[2] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_overload", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13474,7 +14112,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_overload(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -13491,6 +14129,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size(PyObject *SWIGUNUSED PyObject *swig_obj[3] ; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_pixel_size", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13529,7 +14168,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -13546,6 +14185,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_fs(PyObject *SWIGUNU PyObject *swig_obj[3] ; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_pixel_size_fs", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13584,7 +14224,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_fs(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -13601,6 +14241,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_sf(PyObject *SWIGUNU PyObject *swig_obj[3] ; arg4 = &temp4; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_pixel_size_sf", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13639,7 +14280,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_pixel_size_sf(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_polarization(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_polarization(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -13654,6 +14295,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_polarization(PyObject *SWIGUNUS arg2 = &temp2; arg3 = &temp3; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -13689,7 +14331,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_polarization(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -13716,6 +14358,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_as_string(PyObjec PyObject *swig_obj[6] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_real_3d_image_as_string", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13767,7 +14410,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_as_string(PyObjec } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_fs_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_fs_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -13794,6 +14437,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_fs_as_string(PyOb PyObject *swig_obj[6] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_real_3d_image_fs_as_string", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13845,7 +14489,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_fs_as_string(PyOb } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_sf_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_sf_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -13872,6 +14516,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_sf_as_string(PyOb PyObject *swig_obj[6] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_real_3d_image_sf_as_string", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13923,7 +14568,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_3d_image_sf_as_string(PyOb } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -13947,6 +14592,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_as_string(PyObject * PyObject *swig_obj[5] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_real_image_as_string", 5, 5, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -13993,7 +14639,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_as_string(PyObject * } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_fs_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_fs_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -14017,6 +14663,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_fs_as_string(PyObjec PyObject *swig_obj[5] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_real_image_fs_as_string", 5, 5, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -14063,7 +14710,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_fs_as_string(PyObjec } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_sf_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_sf_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -14087,6 +14734,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_sf_as_string(PyObjec PyObject *swig_obj[5] ; arg3 = &temp3; arg4 = &tempn3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_get_real_image_sf_as_string", 5, 5, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -14133,7 +14781,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_real_image_sf_as_string(PyObjec } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarray_as_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarray_as_string(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char **arg2 = (char **) 0 ; @@ -14145,6 +14793,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarray_as_string(PyObject *S PyObject *swig_obj[1] ; arg2 = &temp2; arg3 = &tempn2; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14172,7 +14821,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarray_as_string(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -14195,6 +14844,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters(PyObject *S arg3 = &temp3; arg4 = &temp4; arg5 = &temp5; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14242,7 +14892,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -14286,6 +14936,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims(PyObj arg9 = &temp9; arg10 = &temp10; arg11 = &temp11; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14361,7 +15012,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims(PyObj } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -14405,6 +15056,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_fs(Py arg9 = &temp9; arg10 = &temp10; arg11 = &temp11; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14480,7 +15132,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_fs(Py } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -14524,6 +15176,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_sf(Py arg9 = &temp9; arg10 = &temp10; arg11 = &temp11; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14599,7 +15252,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_realarrayparameters_wdims_sf(Py } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -14630,6 +15283,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell(PyObject *SWIGU arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14689,7 +15343,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell_esd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell_esd(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -14720,6 +15374,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell_esd(PyObject *S arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14779,7 +15434,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_reciprocal_cell_esd(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_timestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_timestamp(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -14794,6 +15449,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_timestamp(PyObject *SWIGUNUSEDP arg2 = &temp2; arg3 = &temp3; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14829,7 +15485,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_timestamp(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_typeofvalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_typeofvalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -14837,6 +15493,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_typeofvalue(PyObject *SWIGUNUSE PyObject *swig_obj[1] ; char *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14860,7 +15517,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_typeofvalue(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -14891,6 +15548,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell(PyObject *SWIGUNUSEDP arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -14950,7 +15608,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell_esd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell_esd(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -14981,6 +15639,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell_esd(PyObject *SWIGUNU arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15040,7 +15699,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_unit_cell_esd(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_value(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -15048,6 +15707,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_value(PyObject *SWIGUNUSEDPARM( PyObject *swig_obj[1] ; char *result = 0 ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15071,7 +15731,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_value(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_wavelength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_wavelength(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -15079,6 +15739,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_wavelength(PyObject *SWIGUNUSED PyObject *swig_obj[1] ; double result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15102,7 +15763,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_get_wavelength(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_insert_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_insert_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -15112,6 +15773,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_insert_row(PyObject *SWIGUNUSEDPARM int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_insert_row", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15139,7 +15801,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_insert_row(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15150,6 +15812,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_category(PyObject *SWIGUNUSEDPA int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_new_category", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15179,7 +15842,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_category(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_column(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15190,6 +15853,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_column(PyObject *SWIGUNUSEDPARM int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_new_column", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15219,7 +15883,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_column(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15230,6 +15894,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_datablock(PyObject *SWIGUNUSEDP int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_new_datablock", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15259,13 +15924,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_datablock(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15289,7 +15955,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_row(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_saveframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_saveframe(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15300,6 +15966,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_saveframe(PyObject *SWIGUNUSEDP int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_new_saveframe", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15329,13 +15996,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_new_saveframe(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15359,13 +16027,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_category(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_column(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15389,13 +16058,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_column(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15419,13 +16089,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_datablock(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15449,7 +16120,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_next_row(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_buffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_buffer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; PyObject *arg2 = (PyObject *) 0 ; @@ -15460,6 +16131,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_buffer(PyObject *SWIGUNUSEDPAR int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_read_buffer", 2, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15487,7 +16159,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_buffer(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_file(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15501,6 +16173,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_file(PyObject *SWIGUNUSEDPARM( int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_read_file", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15535,7 +16208,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_file(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_template(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_template(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15546,6 +16219,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_template(PyObject *SWIGUNUSEDP int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_read_template", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15575,7 +16249,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_template(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_widefile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_widefile(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15589,6 +16263,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_widefile(PyObject *SWIGUNUSEDP int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_read_widefile", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15623,13 +16298,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_read_widefile(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15653,13 +16329,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_category(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_column(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15683,13 +16360,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_column(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15713,13 +16391,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_datablock(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15743,13 +16422,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_row(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_saveframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_saveframe(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -15773,7 +16453,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_remove_saveframe(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15784,6 +16464,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category(PyObject *SWIGUNUS int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_category", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15813,7 +16494,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category_root(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category_root(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15825,6 +16506,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category_root(PyObject *SWI PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_category_root", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15854,7 +16536,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_category_root(PyObject *SWI } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15865,6 +16547,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column(PyObject *SWIGUNUSED int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_column", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15894,7 +16577,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_doublevalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_doublevalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15912,6 +16595,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_doublevalue(PyObject PyObject *swig_obj[3] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_column_doublevalue", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -15952,7 +16636,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_doublevalue(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_integervalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_integervalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -15970,6 +16654,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_integervalue(PyObjec PyObject *swig_obj[3] ; arg3 = &temp3; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_column_integervalue", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16010,7 +16695,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_integervalue(PyObjec } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_value(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -16026,6 +16711,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_value(PyObject *SWIG PyObject *swig_obj[3] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_column_value", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16062,7 +16748,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_column_value(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -16073,6 +16759,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_datablock(PyObject *SWIGUNU int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_datablock", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16102,7 +16789,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_datablock(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_doublevalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_doublevalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double *arg2 = (double *) 0 ; @@ -16116,6 +16803,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_doublevalue(PyObject *SWIGU PyObject *swig_obj[2] ; arg2 = &temp2; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_doublevalue", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16149,7 +16837,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_doublevalue(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_integervalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_integervalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int *arg2 = (int *) 0 ; @@ -16163,6 +16851,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_integervalue(PyObject *SWIG PyObject *swig_obj[2] ; arg2 = &temp2; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_integervalue", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16196,7 +16885,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_integervalue(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_reference_detector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_reference_detector(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -16207,6 +16896,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_reference_detector(PyObject PyObject *swig_obj[2] ; cbf_detector result; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_reference_detector", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16234,7 +16924,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_reference_detector(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_tag_root(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_tag_root(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -16246,6 +16936,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_tag_root(PyObject *SWIGUNUS PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_tag_root", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16275,7 +16966,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_tag_root(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_value(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -16287,6 +16978,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_value(PyObject *SWIGUNUSEDP PyObject *swig_obj[2] ; char *result = 0 ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_require_value", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16316,13 +17008,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_require_value(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16346,13 +17039,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_category(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16376,13 +17070,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_datablock(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_datablocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_datablocks(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16406,13 +17101,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_datablocks(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_saveframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_saveframe(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16436,7 +17132,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_reset_saveframe(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_blockitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_blockitem(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -16444,6 +17140,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_blockitem(PyObject *SWIGUNUS PyObject *swig_obj[1] ; CBF_NODETYPE result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16467,13 +17164,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_blockitem(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16497,13 +17195,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_category(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_column(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16527,13 +17226,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_column(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16557,13 +17257,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_datablock(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16587,13 +17288,14 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_row(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_saveframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_saveframe(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16617,7 +17319,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_rewind_saveframe(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_number(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; void *argp1 = 0 ; @@ -16625,6 +17327,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_number(PyObject *SWIGUNUSEDPARM PyObject *swig_obj[1] ; unsigned int result; + (void)self; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); @@ -16648,7 +17351,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_row_number(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -16658,6 +17361,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_category(PyObject *SWIGUNUSE int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_select_category", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16685,7 +17389,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_category(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_column(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -16695,6 +17399,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_column(PyObject *SWIGUNUSEDP int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_select_column", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16722,7 +17427,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_column(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_datablock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_datablock(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -16732,6 +17437,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_datablock(PyObject *SWIGUNUS int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_select_datablock", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16759,7 +17465,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_datablock(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_row(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -16769,6 +17475,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_row(PyObject *SWIGUNUSEDPARM int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_select_row", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16796,7 +17503,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_select_row(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -16830,6 +17537,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image(PyObject *SWIGUNUSEDPA int ecode10 = 0 ; PyObject *swig_obj[9] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_3d_image", 9, 9, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16895,7 +17603,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -16929,6 +17637,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_fs(PyObject *SWIGUNUSE int ecode10 = 0 ; PyObject *swig_obj[9] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_3d_image_fs", 9, 9, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -16994,7 +17703,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_fs(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -17028,6 +17737,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_sf(PyObject *SWIGUNUSE int ecode10 = 0 ; PyObject *swig_obj[9] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_3d_image_sf", 9, 9, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17093,7 +17803,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_3d_image_sf(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_axis_setting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_axis_setting(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -17110,6 +17820,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_axis_setting(PyObject *SWIGUNUS int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_axis_setting", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17149,7 +17860,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_axis_setting(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_bin_sizes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_bin_sizes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -17165,6 +17876,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_bin_sizes(PyObject *SWIGUNUSEDP int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_bin_sizes", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17202,7 +17914,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_bin_sizes(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_category_root(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_category_root(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -17217,6 +17929,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_category_root(PyObject *SWIGUNU int alloc3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_category_root", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17253,7 +17966,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_category_root(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_crystal_id(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_crystal_id(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -17264,6 +17977,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_crystal_id(PyObject *SWIGUNUSED int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_crystal_id", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17293,7 +18007,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_crystal_id(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_current_timestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_current_timestamp(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -17303,6 +18017,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_current_timestamp(PyObject *SWI int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_current_timestamp", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17330,7 +18045,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_current_timestamp(PyObject *SWI } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datablockname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datablockname(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -17341,6 +18056,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datablockname(PyObject *SWIGUNU int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_datablockname", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17370,7 +18086,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datablockname(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datestamp(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -17401,6 +18117,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datestamp(PyObject *SWIGUNUSEDP int ecode9 = 0 ; PyObject *swig_obj[9] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_datestamp", 9, 9, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17463,7 +18180,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_datestamp(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_dictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_dictionary(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; cbf_handle arg2 = (cbf_handle) 0 ; @@ -17473,6 +18190,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_dictionary(PyObject *SWIGUNUSED int res2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_dictionary", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17500,7 +18218,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_dictionary(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_diffrn_id(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_diffrn_id(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -17511,6 +18229,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_diffrn_id(PyObject *SWIGUNUSEDP int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_diffrn_id", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17540,7 +18259,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_diffrn_id(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_divergence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_divergence(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double arg2 ; @@ -17556,6 +18275,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_divergence(PyObject *SWIGUNUSED int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_divergence", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17593,7 +18313,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_divergence(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_doublevalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_doublevalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -17607,6 +18327,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_doublevalue(PyObject *SWIGUNUSE int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_doublevalue", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17641,7 +18362,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_doublevalue(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_gain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_gain(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -17657,6 +18378,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_gain(PyObject *SWIGUNUSEDPARM(s int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_gain", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17694,7 +18416,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_gain(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -17725,6 +18447,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image(PyObject *SWIGUNUSEDPARM( int ecode9 = 0 ; PyObject *swig_obj[8] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_image", 8, 8, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17785,7 +18508,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -17816,6 +18539,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_fs(PyObject *SWIGUNUSEDPA int ecode9 = 0 ; PyObject *swig_obj[8] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_image_fs", 8, 8, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17876,7 +18600,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_fs(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -17907,6 +18631,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_sf(PyObject *SWIGUNUSEDPA int ecode9 = 0 ; PyObject *swig_obj[8] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_image_sf", 8, 8, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -17967,7 +18692,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_image_sf(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -17995,6 +18720,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray(PyObject *SWIGUNUS int ecode8 = 0 ; PyObject *swig_obj[7] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_integerarray", 7, 7, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18050,7 +18776,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18096,6 +18822,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims(PyObject *SW int ecode14 = 0 ; PyObject *swig_obj[12] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_integerarray_wdims", 12, 12, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18179,7 +18906,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18225,6 +18952,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_fs(PyObject int ecode14 = 0 ; PyObject *swig_obj[12] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_integerarray_wdims_fs", 12, 12, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18308,7 +19036,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_fs(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18354,6 +19082,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_sf(PyObject int ecode14 = 0 ; PyObject *swig_obj[12] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_integerarray_wdims_sf", 12, 12, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18437,7 +19166,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integerarray_wdims_sf(PyObject } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integervalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integervalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; int arg2 ; @@ -18447,6 +19176,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integervalue(PyObject *SWIGUNUS int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_integervalue", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18474,7 +19204,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integervalue(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integration_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integration_time(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double arg2 ; @@ -18484,6 +19214,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integration_time(PyObject *SWIG int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_integration_time", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18511,7 +19242,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_integration_time(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_orientation_matrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_orientation_matrix(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double arg2 ; @@ -18545,6 +19276,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_orientation_matrix(PyObject *SW int ecode10 = 0 ; PyObject *swig_obj[10] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_orientation_matrix", 10, 10, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18612,7 +19344,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_orientation_matrix(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_overload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_overload(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18625,6 +19357,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_overload(PyObject *SWIGUNUSEDPA int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_overload", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18657,7 +19390,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_overload(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18673,6 +19406,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size(PyObject *SWIGUNUSED int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_pixel_size", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18710,7 +19444,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18726,6 +19460,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_fs(PyObject *SWIGUNU int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_pixel_size_fs", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18763,7 +19498,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_fs(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18779,6 +19514,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_sf(PyObject *SWIGUNU int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_pixel_size_sf", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18816,7 +19552,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_pixel_size_sf(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_polarization(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_polarization(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double arg2 ; @@ -18829,6 +19565,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_polarization(PyObject *SWIGUNUS int ecode3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_polarization", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18861,7 +19598,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_polarization(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18892,6 +19629,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image(PyObject *SWIGUNU int ecode9 = 0 ; PyObject *swig_obj[8] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_real_3d_image", 8, 8, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -18952,7 +19690,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -18983,6 +19721,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_fs(PyObject *SWIG int ecode9 = 0 ; PyObject *swig_obj[8] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_real_3d_image_fs", 8, 8, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19043,7 +19782,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_fs(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19074,6 +19813,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_sf(PyObject *SWIG int ecode9 = 0 ; PyObject *swig_obj[8] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_real_3d_image_sf", 8, 8, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19134,7 +19874,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_3d_image_sf(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19162,6 +19902,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image(PyObject *SWIGUNUSED int ecode8 = 0 ; PyObject *swig_obj[7] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_real_image", 7, 7, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19217,7 +19958,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19245,6 +19986,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_fs(PyObject *SWIGUNU int ecode8 = 0 ; PyObject *swig_obj[7] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_real_image_fs", 7, 7, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19300,7 +20042,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_fs(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19328,6 +20070,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_sf(PyObject *SWIGUNU int ecode8 = 0 ; PyObject *swig_obj[7] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_real_image_sf", 7, 7, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19383,7 +20126,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_real_image_sf(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19408,6 +20151,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray(PyObject *SWIGUNUSEDP int ecode7 = 0 ; PyObject *swig_obj[6] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_realarray", 6, 6, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19458,7 +20202,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19501,6 +20245,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims(PyObject *SWIGU int ecode13 = 0 ; PyObject *swig_obj[11] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_realarray_wdims", 11, 11, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19579,7 +20324,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_fs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_fs(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19622,6 +20367,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_fs(PyObject *SW int ecode13 = 0 ; PyObject *swig_obj[11] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_realarray_wdims_fs", 11, 11, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19700,7 +20446,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_fs(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_sf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_sf(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; unsigned int arg2 ; @@ -19743,6 +20489,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_sf(PyObject *SW int ecode13 = 0 ; PyObject *swig_obj[11] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_realarray_wdims_sf", 11, 11, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19821,15 +20568,16 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_realarray_wdims_sf(PyObject *SW } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_reciprocal_cell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_reciprocal_cell(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; - double *arg2 ; + double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; double temp2[6] ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_reciprocal_cell", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19860,15 +20608,16 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_reciprocal_cell(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_reciprocal_cell_esd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_reciprocal_cell_esd(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; - double *arg2 ; + double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; double temp2[6] ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_reciprocal_cell_esd", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19899,7 +20648,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_reciprocal_cell_esd(PyObject *S } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_saveframename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_saveframename(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -19910,6 +20659,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_saveframename(PyObject *SWIGUNU int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_saveframename", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19939,7 +20689,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_saveframename(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_category(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_category(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -19954,6 +20704,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_category(PyObject *SWIGUNUS int alloc3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_tag_category", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -19990,7 +20741,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_category(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_root(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_root(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -20005,6 +20756,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_root(PyObject *SWIGUNUSEDPA int alloc3 = 0 ; PyObject *swig_obj[3] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_tag_root", 3, 3, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20041,7 +20793,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_tag_root(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_timestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_timestamp(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double arg2 ; @@ -20057,6 +20809,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_timestamp(PyObject *SWIGUNUSEDP int ecode4 = 0 ; PyObject *swig_obj[4] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_timestamp", 4, 4, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20094,7 +20847,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_timestamp(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_typeofvalue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_typeofvalue(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -20105,6 +20858,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_typeofvalue(PyObject *SWIGUNUSE int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_typeofvalue", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20134,15 +20888,16 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_typeofvalue(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_unit_cell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_unit_cell(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; - double *arg2 ; + double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; double temp2[6] ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_unit_cell", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20173,15 +20928,16 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_unit_cell(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_unit_cell_esd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_unit_cell_esd(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; - double *arg2 ; + double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; double temp2[6] ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_unit_cell_esd", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20212,7 +20968,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_unit_cell_esd(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_value(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -20223,6 +20979,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_value(PyObject *SWIGUNUSEDPARM( int alloc2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_value", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20252,7 +21009,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_value(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_wavelength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_wavelength(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; double arg2 ; @@ -20262,6 +21019,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_wavelength(PyObject *SWIGUNUSED int ecode2 = 0 ; PyObject *swig_obj[2] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_set_wavelength", 2, 2, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20289,7 +21047,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_set_wavelength(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_write_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_write_file(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -20309,6 +21067,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_write_file(PyObject *SWIGUNUSEDPARM int ecode5 = 0 ; PyObject *swig_obj[5] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_write_file", 5, 5, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20353,7 +21112,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_write_file(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cbf_handle_struct_write_widefile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cbf_handle_struct_write_widefile(PyObject *self, PyObject *args) { PyObject *resultobj = 0; cbf_handle_struct *arg1 = (cbf_handle_struct *) 0 ; char *arg2 = (char *) 0 ; @@ -20373,6 +21132,7 @@ SWIGINTERN PyObject *_wrap_cbf_handle_struct_write_widefile(PyObject *SWIGUNUSED int ecode5 = 0 ; PyObject *swig_obj[5] ; + (void)self; if (!SWIG_Python_UnpackTuple(args, "cbf_handle_struct_write_widefile", 5, 5, swig_obj)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cbf_handle_struct, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -20443,7 +21203,6 @@ SWIGINTERN PyObject *Swig_var_HAS_SWIG_PYTHON_STRICT_BYTE_CHAR_get(void) { static PyMethodDef SwigMethods[] = { - { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL}, { "new_doubleArray", _wrap_new_doubleArray, METH_O, NULL}, { "delete_doubleArray", _wrap_delete_doubleArray, METH_O, NULL}, { "doubleArray___getitem__", _wrap_doubleArray___getitem__, METH_VARARGS, NULL}, @@ -20482,7 +21241,7 @@ static PyMethodDef SwigMethods[] = { "*args : double x,double y,double cenx,double ceny,double volume,double fwhm\n" "\n" "C prototype: int cbf_airy_disk(double x, double y, double cenx, double ceny,\n" - " double volume, double fwhm, double * value);\n" + " double volume, double fwhm, double * value);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -20499,22 +21258,21 @@ static PyMethodDef SwigMethods[] = { "minimum, after which it is forced to zero, so it cannot be used to\n" "simulate diffraction rings.\n" "ARGUMENTS\n" - "x the x-coordinate of a point in the real plane y\n" - "the y-coordinate of a point in the real plane xlo the\n" - "x-coordinate of a point in the real plane marking the left bound of\n" - "integration ylo the y-coordinate of a point in the real plane\n" - "marking the bottom bound of integration xhi the x-coordinate\n" - "of a point in the real plane marking the right bound of integration\n" - "yhi the y-coordinate of a point in the real plane marking the\n" - "top bound of integration cenx the x-coordinate of a point in\n" - "the real plane marking the PSF center ceny the y-coordinate of\n" - "a point in the real plane marking the PSF center volume the\n" - "total volume of the PSF fwhm the full-width at half max of the\n" - "PSF value Pointer to the value of the Airy function volumeout\n" - "Pointer to the value of the integral/TR>\n" + "x the x-coordinate of a point in the real plane y the\n" + "y-coordinate of a point in the real plane xlo the x-coordinate of a\n" + "point in the real plane marking the left bound of integration ylo\n" + "the y-coordinate of a point in the real plane marking the bottom\n" + "bound of integration xhi the x-coordinate of a point in the real\n" + "plane marking the right bound of integration yhi the y-coordinate\n" + "of a point in the real plane marking the top bound of integration\n" + "cenx the x-coordinate of a point in the real plane marking the PSF\n" + "center ceny the y-coordinate of a point in the real plane marking\n" + "the PSF center volume the total volume of the PSF fwhm the\n" + "full-width at half max of the PSF value Pointer to the value of the\n" + "Airy function volumeout Pointer to the value of the integral/TR>\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "airy_disk_volume", _wrap_airy_disk_volume, METH_VARARGS, "\n" @@ -20524,8 +21282,8 @@ static PyMethodDef SwigMethods[] = { " double volume,double fwhm\n" "\n" "C prototype: int cbf_airy_disk_volume(double xlo, double ylo, double xhi,\n" - " double yhi, double cenx, double ceny, double volume,\n" - " double fwhm, double * volumeout);\n" + " double yhi, double cenx, double ceny, double volume,\n" + " double fwhm, double * volumeout);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -20542,22 +21300,21 @@ static PyMethodDef SwigMethods[] = { "minimum, after which it is forced to zero, so it cannot be used to\n" "simulate diffraction rings.\n" "ARGUMENTS\n" - "x the x-coordinate of a point in the real plane y\n" - "the y-coordinate of a point in the real plane xlo the\n" - "x-coordinate of a point in the real plane marking the left bound of\n" - "integration ylo the y-coordinate of a point in the real plane\n" - "marking the bottom bound of integration xhi the x-coordinate\n" - "of a point in the real plane marking the right bound of integration\n" - "yhi the y-coordinate of a point in the real plane marking the\n" - "top bound of integration cenx the x-coordinate of a point in\n" - "the real plane marking the PSF center ceny the y-coordinate of\n" - "a point in the real plane marking the PSF center volume the\n" - "total volume of the PSF fwhm the full-width at half max of the\n" - "PSF value Pointer to the value of the Airy function volumeout\n" - "Pointer to the value of the integral/TR>\n" + "x the x-coordinate of a point in the real plane y the\n" + "y-coordinate of a point in the real plane xlo the x-coordinate of a\n" + "point in the real plane marking the left bound of integration ylo\n" + "the y-coordinate of a point in the real plane marking the bottom\n" + "bound of integration xhi the x-coordinate of a point in the real\n" + "plane marking the right bound of integration yhi the y-coordinate\n" + "of a point in the real plane marking the top bound of integration\n" + "cenx the x-coordinate of a point in the real plane marking the PSF\n" + "center ceny the y-coordinate of a point in the real plane marking\n" + "the PSF center volume the total volume of the PSF fwhm the\n" + "full-width at half max of the PSF value Pointer to the value of the\n" + "Airy function volumeout Pointer to the value of the integral/TR>\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "compute_cell_volume", _wrap_compute_cell_volume, METH_O, "\n" @@ -20571,8 +21328,8 @@ static PyMethodDef SwigMethods[] = { "DESCRIPTION\n" "cbf_compute_cell_volume sets *volume to point to the volume of the\n" "unit cell computed from the double values in cell[0:2] for the cell\n" - "edge lengths a, b and c in Ångstroms and the double values given in\n" - "cell[3:5] for the cell angles α, β and γ in degrees.\n" + "edge lengths a, b and c in ngstroms and the double values given in\n" + "cell[3:5] for the cell angles a, b and g in degrees.\n" "ARGUMENTS\n" "cell Pointer to the array of 6 doubles giving the cell\n" "parameters. volume Pointer to the doubles for cell volume.\n" @@ -20594,17 +21351,16 @@ static PyMethodDef SwigMethods[] = { "DESCRIPTION\n" "cbf_compute_reciprocal_cell sets rcell to point to the array of\n" "reciprocal cell parameters computed from the double values cell[0:2]\n" - "giving the cell edge lengths a, b and c in Ångstroms, and the double\n" - "values cell[3:5] giving the cell angles α, β and γ in degrees. The\n" + "giving the cell edge lengths a, b and c in ngstroms, and the double\n" + "values cell[3:5] giving the cell angles a, b and g in degrees. The\n" "double values rcell[0:2] will be set to the reciprocal cell lengths\n" - "a^*, b^* and c^* in Ångstroms^-1 and the double values rcell[3:5]\n" - "will be set to the reciprocal cell angles α^*, β^* and γ^* in\n" - "degrees.\n" + "a^*, b^* and c^* in ngstroms^-1 and the double values rcell[3:5] will\n" + "be set to the reciprocal cell angles a^*, b^* and g^* in degrees.\n" "ARGUMENTS\n" - "cell Pointer to the array of 6 doubles giving the cell\n" - "parameters. rcell Pointer to the destination array of 6 doubles\n" - "giving the reciprocal cell parameters. volume Pointer to the\n" - "doubles for cell volume.\n" + "cell Pointer to the array of 6 doubles giving the cell parameters.\n" + "rcell Pointer to the destination array of 6 doubles giving the\n" + "reciprocal cell parameters. volume Pointer to the doubles for cell\n" + "volume.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -20638,7 +21394,7 @@ static PyMethodDef SwigMethods[] = { "the returned string\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "get_local_real_byte_order", _wrap_get_local_real_byte_order, METH_NOARGS, "\n" @@ -20669,7 +21425,7 @@ static PyMethodDef SwigMethods[] = { "the returned string\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "get_local_real_format", _wrap_get_local_real_format, METH_NOARGS, "\n" @@ -20700,7 +21456,7 @@ static PyMethodDef SwigMethods[] = { "the returned string\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_positioner_struct_matrix_set", _wrap_cbf_positioner_struct_matrix_set, METH_VARARGS, "cbf_positioner_struct_matrix_set(cbf_positioner_struct self, double [3][4] matrix)"}, @@ -20724,8 +21480,8 @@ static PyMethodDef SwigMethods[] = { "*args : Float ratio\n" "\n" "C prototype: int cbf_get_goniometer_poise(cbf_goniometer goniometer,\n" - " double ratio, double * vector1, double * vector2,\n" - " double * vector3, double * offset1, double * offset2,\n" + " double ratio, double * vector1, double * vector2,\n" + " double * vector3, double * offset1, double * offset2,\n" " double * offset3, double * angle);\n" "\n" "CBFLib documentation:\n" @@ -20757,19 +21513,18 @@ static PyMethodDef SwigMethods[] = { "vector for axis axis_id unmodified by axis rotations. Any of the\n" "pointers may be specified as NULL.\n" "ARGUMENTS\n" - "handle CBF handle. ratio A number between 0 and 1\n" - "indication how far into the frame to go vector1 Pointer to the\n" - "first component of the axis vector vector2 Pointer to the second\n" - "component of the axis vector vector3 Pointer to the third\n" - "component of the axis vector offset1 Pointer to the first\n" - "component of the axis offset offset2 Pointer to the second\n" - "component of the axis offset offset3 Pointer to the third\n" - "component of the axis offset angle Pointer to the rotation\n" - "angle axis_id The specified axis frame_id The specified\n" + "handle CBF handle. ratio A number between 0 and 1 indication how\n" + "far into the frame to go vector1 Pointer to the first component of\n" + "the axis vector vector2 Pointer to the second component of the axis\n" + "vector vector3 Pointer to the third component of the axis vector\n" + "offset1 Pointer to the first component of the axis offset offset2\n" + "Pointer to the second component of the axis offset offset3 Pointer\n" + "to the third component of the axis offset angle Pointer to the\n" + "rotation angle axis_id The specified axis frame_id The specified\n" "frame positioner CBF goniometer\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_positioner_struct_get_reciprocal", _wrap_cbf_positioner_struct_get_reciprocal, METH_VARARGS, "\n" @@ -20778,10 +21533,10 @@ static PyMethodDef SwigMethods[] = { "*args : double ratio,double wavelength,double real1,double real2,double real3\n" "\n" "C prototype: int cbf_get_reciprocal (cbf_goniometer goniometer,\n" - " unsigned int reserved, double ratio, double wavelength,\n" - " double real1, double real2, double real3,\n" + " unsigned int reserved, double ratio, double wavelength,\n" + " double real1, double real2, double real3,\n" " double *reciprocal1, double *reciprocal2,\n" - " double *reciprocal3);\n" + " double *reciprocal3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -20790,25 +21545,24 @@ static PyMethodDef SwigMethods[] = { "corresponding to the real-space vector (real1, real2, real3). The\n" "reciprocal-space vector is oriented to correspond to the goniometer\n" "setting with all axes at 0. The value wavelength is the wavlength in\n" - "Å and the value ratio specifies the current goniometer setting and\n" + "and the value ratio specifies the current goniometer setting and\n" "varies from 0.0 at the beginning of the exposur e to 1.0 at the end,\n" "irrespective of the actual rotation range.\n" "Any of the destination pointers may be NULL.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "goniometer Goniometer handle. reserved Unused. Any value\n" - "other than 0 is invalid. ratio Goniometer setting. 0 =\n" - "beginning of exposure, 1 = end. wavelength Wavelength in Å. real1\n" - " x component of the real-space vector. real2 y\n" - "component of the real-space vector. real3 z component of the\n" - "real-space vector. reciprocal1 Pointer to the destination x\n" - "component of the reciprocal-space vector. reciprocal2 Pointer to\n" - "the destination y component of the reciprocal-space vector.\n" - "reciprocal3 Pointer to the destination z component of the\n" - "reciprocal-space vector.\n" + "goniometer Goniometer handle. reserved Unused. Any value other\n" + "than 0 is invalid. ratio Goniometer setting. 0 = beginning of\n" + "exposure, 1 = end. wavelength Wavelength in . real1 x component\n" + "of the real-space vector. real2 y component of the real-space\n" + "vector. real3 z component of the real-space vector. reciprocal1\n" + "Pointer to the destination x component of the reciprocal-space\n" + "vector. reciprocal2 Pointer to the destination y component of the\n" + "reciprocal-space vector. reciprocal3 Pointer to the destination z\n" + "component of the reciprocal-space vector.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_positioner_struct_get_rotation_axis", _wrap_cbf_positioner_struct_get_rotation_axis, METH_O, "\n" @@ -20817,7 +21571,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_rotation_axis (cbf_goniometer goniometer,\n" - " unsigned int reserved, double *vector1, double *vector2,\n" + " unsigned int reserved, double *vector1, double *vector2,\n" " double *vector3);\n" "\n" "CBFLib documentation:\n" @@ -20827,14 +21581,14 @@ static PyMethodDef SwigMethods[] = { "Any of the destination pointers may be NULL.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "goniometer Goniometer handle. reserved Unused. Any value other\n" - "than 0 is invalid. vector1 Pointer to the destination x\n" - "component of the rotation axis. vector2 Pointer to the\n" - "destination y component of the rotation axis. vector3 Pointer to\n" - "the destination z component of the rotation axis.\n" + "goniometer Goniometer handle. reserved Unused. Any value other\n" + "than 0 is invalid. vector1 Pointer to the destination x component\n" + "of the rotation axis. vector2 Pointer to the destination y\n" + "component of the rotation axis. vector3 Pointer to the destination\n" + "z component of the rotation axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_positioner_struct_get_rotation_range", _wrap_cbf_positioner_struct_get_rotation_range, METH_O, "\n" @@ -20843,7 +21597,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_rotation_range (cbf_goniometer goniometer,\n" - " unsigned int reserved, double *start, double *increment);\n" + " unsigned int reserved, double *start, double *increment);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -20858,7 +21612,7 @@ static PyMethodDef SwigMethods[] = { "value. increment Pointer to the destination increment value.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_positioner_struct_rotate_vector", _wrap_cbf_positioner_struct_rotate_vector, METH_VARARGS, "\n" @@ -20867,8 +21621,8 @@ static PyMethodDef SwigMethods[] = { "*args : double ratio,double initial1,double initial2,double initial3\n" "\n" "C prototype: int cbf_rotate_vector (cbf_goniometer goniometer,\n" - " unsigned int reserved, double ratio, double initial1,\n" - " double initial2, double initial3, double *final1,\n" + " unsigned int reserved, double ratio, double initial1,\n" + " double initial2, double initial3, double *final1,\n" " double *final2, double *final3);\n" "\n" "CBFLib documentation:\n" @@ -20892,7 +21646,7 @@ static PyMethodDef SwigMethods[] = { "to the destination z component of the final vector.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_positioner_struct_swigregister", cbf_positioner_struct_swigregister, METH_O, NULL}, @@ -20915,7 +21669,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_beam_center (cbf_detector detector,\n" - " double *indexslow, double *indexfast, double *centerslow,\n" + " double *indexslow, double *indexfast, double *centerslow,\n" " double *centerfast);\n" "\n" "CBFLib documentation:\n" @@ -20962,14 +21716,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_beam_center_fs", _wrap_cbf_detector_struct_get_beam_center_fs, METH_O, "\n" @@ -20978,7 +21732,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_beam_center_fs (cbf_detector detector,\n" - " double *indexfast, double *indexslow, double *centerfast,\n" + " double *indexfast, double *indexslow, double *centerfast,\n" " double *centerslow);\n" "\n" "CBFLib documentation:\n" @@ -21025,14 +21779,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_beam_center_sf", _wrap_cbf_detector_struct_get_beam_center_sf, METH_O, "\n" @@ -21041,7 +21795,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_beam_center_sf (cbf_detector detector,\n" - " double *indexslow, double *indexfast, double *centerslow,\n" + " double *indexslow, double *indexfast, double *centerslow,\n" " double *centerfast);\n" "\n" "CBFLib documentation:\n" @@ -21088,14 +21842,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_detector_axes", _wrap_cbf_detector_struct_get_detector_axes, METH_O, "\n" @@ -21105,8 +21859,8 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_detector_axes (cbf_detector detector,\n" - " double *slowaxis1, double *slowaxis2, double *slowaxis3,\n" - " double *fastaxis1, double *fastaxis2, double *fastaxis3);\n" + " double *slowaxis1, double *slowaxis2, double *slowaxis3,\n" + " double *fastaxis1, double *fastaxis2, double *fastaxis3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21125,20 +21879,19 @@ static PyMethodDef SwigMethods[] = { " \". \",\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "detector Detector handle. slowaxis1 Pointer to the destination x\n" + "detector Detector handle. slowaxis1 Pointer to the destination x\n" "component of the slow axis vector. slowaxis2 Pointer to the\n" "destination y component of the slow axis vector. slowaxis3 Pointer\n" "to the destination z component of the slow axis vector. fastaxis1\n" "Pointer to the destination x component of the fast axis vector.\n" "fastaxis2 Pointer to the destination y component of the fast axis\n" "vector. fastaxis3 Pointer to the destination z component of the\n" - "fast axis vector. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id2 Pointer to the destination second\n" - "surface axis name.\n" + "fast axis vector. axis_id1 Pointer to the destination first surface\n" + "axis name. axis_id1 Pointer to the destination first surface axis\n" + "name. axis_id2 Pointer to the destination second surface axis name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_detector_axes_fs", _wrap_cbf_detector_struct_get_detector_axes_fs, METH_O, "cbf_detector_struct_get_detector_axes_fs(cbf_detector_struct self)"}, @@ -21149,8 +21902,8 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_detector_axes_sf (cbf_detector detector,\n" - " double *slowaxis1, double *slowaxis2, double *slowaxis3,\n" - " double *fastaxis1, double *fastaxis2, double *fastaxis3);\n" + " double *slowaxis1, double *slowaxis2, double *slowaxis3,\n" + " double *fastaxis1, double *fastaxis2, double *fastaxis3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21169,20 +21922,19 @@ static PyMethodDef SwigMethods[] = { " \". \",\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "detector Detector handle. slowaxis1 Pointer to the destination x\n" + "detector Detector handle. slowaxis1 Pointer to the destination x\n" "component of the slow axis vector. slowaxis2 Pointer to the\n" "destination y component of the slow axis vector. slowaxis3 Pointer\n" "to the destination z component of the slow axis vector. fastaxis1\n" "Pointer to the destination x component of the fast axis vector.\n" "fastaxis2 Pointer to the destination y component of the fast axis\n" "vector. fastaxis3 Pointer to the destination z component of the\n" - "fast axis vector. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id2 Pointer to the destination second\n" - "surface axis name.\n" + "fast axis vector. axis_id1 Pointer to the destination first surface\n" + "axis name. axis_id1 Pointer to the destination first surface axis\n" + "name. axis_id2 Pointer to the destination second surface axis name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_detector_axis_fast", _wrap_cbf_detector_struct_get_detector_axis_fast, METH_O, "\n" @@ -21191,7 +21943,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_detector_axis_fast (cbf_detector detector,\n" - " double *fastaxis1, double *fastaxis2, double *fastaxis3);\n" + " double *fastaxis1, double *fastaxis2, double *fastaxis3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21210,20 +21962,19 @@ static PyMethodDef SwigMethods[] = { " \". \",\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "detector Detector handle. slowaxis1 Pointer to the destination x\n" + "detector Detector handle. slowaxis1 Pointer to the destination x\n" "component of the slow axis vector. slowaxis2 Pointer to the\n" "destination y component of the slow axis vector. slowaxis3 Pointer\n" "to the destination z component of the slow axis vector. fastaxis1\n" "Pointer to the destination x component of the fast axis vector.\n" "fastaxis2 Pointer to the destination y component of the fast axis\n" "vector. fastaxis3 Pointer to the destination z component of the\n" - "fast axis vector. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id2 Pointer to the destination second\n" - "surface axis name.\n" + "fast axis vector. axis_id1 Pointer to the destination first surface\n" + "axis name. axis_id1 Pointer to the destination first surface axis\n" + "name. axis_id2 Pointer to the destination second surface axis name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_detector_axis_slow", _wrap_cbf_detector_struct_get_detector_axis_slow, METH_O, "\n" @@ -21232,7 +21983,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_detector_axis_slow (cbf_detector detector,\n" - " double *slowaxis1, double *slowaxis2, double *slowaxis3);\n" + " double *slowaxis1, double *slowaxis2, double *slowaxis3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21251,20 +22002,19 @@ static PyMethodDef SwigMethods[] = { " \". \",\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "detector Detector handle. slowaxis1 Pointer to the destination x\n" + "detector Detector handle. slowaxis1 Pointer to the destination x\n" "component of the slow axis vector. slowaxis2 Pointer to the\n" "destination y component of the slow axis vector. slowaxis3 Pointer\n" "to the destination z component of the slow axis vector. fastaxis1\n" "Pointer to the destination x component of the fast axis vector.\n" "fastaxis2 Pointer to the destination y component of the fast axis\n" "vector. fastaxis3 Pointer to the destination z component of the\n" - "fast axis vector. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id1 Pointer to the destination first\n" - "surface axis name. axis_id2 Pointer to the destination second\n" - "surface axis name.\n" + "fast axis vector. axis_id1 Pointer to the destination first surface\n" + "axis name. axis_id1 Pointer to the destination first surface axis\n" + "name. axis_id2 Pointer to the destination second surface axis name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_detector_distance", _wrap_cbf_detector_struct_get_detector_distance, METH_O, "\n" @@ -21273,7 +22023,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_detector_distance (cbf_detector detector,\n" - " double *distance);\n" + " double *distance);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21284,7 +22034,7 @@ static PyMethodDef SwigMethods[] = { "distance.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_detector_normal", _wrap_cbf_detector_struct_get_detector_normal, METH_O, "\n" @@ -21293,7 +22043,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_detector_normal (cbf_detector detector,\n" - " double *normal1, double *normal2, double *normal3);\n" + " double *normal1, double *normal2, double *normal3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21302,13 +22052,13 @@ static PyMethodDef SwigMethods[] = { "vector is normalized.\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "detector Detector handle. normal1 Pointer to the destination x\n" - "component of the normal vector. normal2 Pointer to the destination\n" - "y component of the normal vector. normal3 Pointer to the\n" + "detector Detector handle. normal1 Pointer to the destination x\n" + "component of the normal vector. normal2 Pointer to the destination\n" + "y component of the normal vector. normal3 Pointer to the\n" "destination z component of the normal vector.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_detector_surface_axes", _wrap_cbf_detector_struct_get_detector_surface_axes, METH_VARARGS, "cbf_detector_struct_get_detector_surface_axes(cbf_detector_struct self, int index) -> char const *"}, @@ -21318,7 +22068,7 @@ static PyMethodDef SwigMethods[] = { "*args : Int axis_number\n" "\n" "C prototype: int cbf_get_inferred_pixel_size (cbf_detector detector,\n" - " int axis_number, double *psize);\n" + " int axis_number, double *psize);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21330,16 +22080,6 @@ static PyMethodDef SwigMethods[] = { "value in millimeters of the pixel size for the axis axis_number\n" "value. The fast index is treated as axis 1 and the next slower index\n" "is treated as axis 2.\n" - "If the axis number is negative, the axes are used in the reverse\n" - "order so that an axis_number of -1 indicates the fast axes in a call\n" - "to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and\n" - "indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs.\n" - "ARGUMENTS\n" - "detector Detector handle. axis_number The number of the axis.\n" - "area Pointer to the destination pizel size in mm.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_detector_struct_get_inferred_pixel_size_fs", _wrap_cbf_detector_struct_get_inferred_pixel_size_fs, METH_VARARGS, "\n" @@ -21348,7 +22088,7 @@ static PyMethodDef SwigMethods[] = { "*args : Int axis_number\n" "\n" "C prototype: int cbf_get_inferred_pixel_size_fs(cbf_detector detector,\n" - " int axis_number, double *psize);\n" + " int axis_number, double *psize);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21360,16 +22100,6 @@ static PyMethodDef SwigMethods[] = { "value in millimeters of the pixel size for the axis axis_number\n" "value. The fast index is treated as axis 1 and the next slower index\n" "is treated as axis 2.\n" - "If the axis number is negative, the axes are used in the reverse\n" - "order so that an axis_number of -1 indicates the fast axes in a call\n" - "to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and\n" - "indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs.\n" - "ARGUMENTS\n" - "detector Detector handle. axis_number The number of the axis.\n" - "area Pointer to the destination pizel size in mm.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_detector_struct_get_inferred_pixel_size_sf", _wrap_cbf_detector_struct_get_inferred_pixel_size_sf, METH_VARARGS, "\n" @@ -21378,7 +22108,7 @@ static PyMethodDef SwigMethods[] = { "*args : Int axis_number\n" "\n" "C prototype: int cbf_get_inferred_pixel_size_sf(cbf_detector detector,\n" - " int axis_number, double *psize);\n" + " int axis_number, double *psize);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21390,16 +22120,6 @@ static PyMethodDef SwigMethods[] = { "value in millimeters of the pixel size for the axis axis_number\n" "value. The fast index is treated as axis 1 and the next slower index\n" "is treated as axis 2.\n" - "If the axis number is negative, the axes are used in the reverse\n" - "order so that an axis_number of -1 indicates the fast axes in a call\n" - "to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and\n" - "indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs.\n" - "ARGUMENTS\n" - "detector Detector handle. axis_number The number of the axis.\n" - "area Pointer to the destination pizel size in mm.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_detector_struct_get_pixel_area", _wrap_cbf_detector_struct_get_pixel_area, METH_VARARGS, "\n" @@ -21408,7 +22128,7 @@ static PyMethodDef SwigMethods[] = { "*args : double index1,double index2\n" "\n" "C prototype: int cbf_get_pixel_area (cbf_detector detector, double indexslow,\n" - " double indexfast, double *area, double *projected_area);\n" + " double indexfast, double *area, double *projected_area);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21425,7 +22145,7 @@ static PyMethodDef SwigMethods[] = { "apparent area in mm2.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_pixel_area_fs", _wrap_cbf_detector_struct_get_pixel_area_fs, METH_VARARGS, "\n" @@ -21434,7 +22154,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexfast,double indexslow\n" "\n" "C prototype: int cbf_get_pixel_area_fs(cbf_detector detector,\n" - " double indexfast, double indexslow, double *area,\n" + " double indexfast, double indexslow, double *area,\n" " double *projected_area);\n" "\n" "CBFLib documentation:\n" @@ -21452,7 +22172,7 @@ static PyMethodDef SwigMethods[] = { "apparent area in mm2.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_pixel_area_sf", _wrap_cbf_detector_struct_get_pixel_area_sf, METH_VARARGS, "\n" @@ -21461,7 +22181,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexslow,double indexfast\n" "\n" "C prototype: int cbf_get_pixel_area_sf(cbf_detector detector,\n" - " double indexslow, double indexfast, double *area,\n" + " double indexslow, double indexfast, double *area,\n" " double *projected_area);\n" "\n" "CBFLib documentation:\n" @@ -21479,7 +22199,7 @@ static PyMethodDef SwigMethods[] = { "apparent area in mm2.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_pixel_coordinates", _wrap_cbf_detector_struct_get_pixel_coordinates, METH_VARARGS, "\n" @@ -21488,8 +22208,8 @@ static PyMethodDef SwigMethods[] = { "*args : double index1,double index2\n" "\n" "C prototype: int cbf_get_pixel_coordinates (cbf_detector detector,\n" - " double indexslow, double indexfast, double *coordinate1,\n" - " double *coordinate2, double *coordinate3);\n" + " double indexslow, double indexfast, double *coordinate1,\n" + " double *coordinate2, double *coordinate3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21506,7 +22226,7 @@ static PyMethodDef SwigMethods[] = { "Pointer to the destination z component.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_pixel_coordinates_fs", _wrap_cbf_detector_struct_get_pixel_coordinates_fs, METH_VARARGS, "\n" @@ -21515,8 +22235,8 @@ static PyMethodDef SwigMethods[] = { "*args : double indexfast,double indexslow\n" "\n" "C prototype: int cbf_get_pixel_coordinates_fs (cbf_detector detector,\n" - " double indexfast, double indexslow, double *coordinate1,\n" - " double *coordinate2, double *coordinate3);\n" + " double indexfast, double indexslow, double *coordinate1,\n" + " double *coordinate2, double *coordinate3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21533,7 +22253,7 @@ static PyMethodDef SwigMethods[] = { "Pointer to the destination z component.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_pixel_coordinates_sf", _wrap_cbf_detector_struct_get_pixel_coordinates_sf, METH_VARARGS, "\n" @@ -21542,8 +22262,8 @@ static PyMethodDef SwigMethods[] = { "*args : double indexslow,double indexfast\n" "\n" "C prototype: int cbf_get_pixel_coordinates_sf (cbf_detector detector,\n" - " double indexslow, double indexfast, double *coordinate1,\n" - " double *coordinate2, double *coordinate3);\n" + " double indexslow, double indexfast, double *coordinate1,\n" + " double *coordinate2, double *coordinate3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -21560,7 +22280,7 @@ static PyMethodDef SwigMethods[] = { "Pointer to the destination z component.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_pixel_normal", _wrap_cbf_detector_struct_get_pixel_normal, METH_VARARGS, "\n" @@ -21569,7 +22289,7 @@ static PyMethodDef SwigMethods[] = { "*args : double index1,double index2\n" "\n" "C prototype: int cbf_get_pixel_normal (cbf_detector detector,\n" - " double indexslow, double indexfast, double *normal1,\n" + " double indexslow, double indexfast, double *normal1,\n" " double *normal2, double *normal3);\n" "\n" "CBFLib documentation:\n" @@ -21580,14 +22300,14 @@ static PyMethodDef SwigMethods[] = { "indexslow). The vector is normalized.\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "detector Detector handle. indexslow Slow index. indexfast Fast\n" - "index. normal1 Pointer to the destination x component of the\n" - "normal vector. normal2 Pointer to the destination y component of\n" - "the normal vector. normal3 Pointer to the destination z component\n" - "of the normal vector.\n" + "detector Detector handle. indexslow Slow index. indexfast Fast\n" + "index. normal1 Pointer to the destination x component of the normal\n" + "vector. normal2 Pointer to the destination y component of the\n" + "normal vector. normal3 Pointer to the destination z component of\n" + "the normal vector.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_get_pixel_normal_fs", _wrap_cbf_detector_struct_get_pixel_normal_fs, METH_VARARGS, "\n" @@ -21596,7 +22316,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexfast,double indexslow\n" "\n" "C prototype: int cbf_get_pixel_normal_fs (cbf_detector detector,\n" - " double indexfast, double indexslow, double *normal1,\n" + " double indexfast, double indexslow, double *normal1,\n" " double *normal2, double *normal3);\n" "\n" "CBFLib documentation:\n" @@ -21607,14 +22327,14 @@ static PyMethodDef SwigMethods[] = { "indexslow). The vector is normalized.\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "detector Detector handle. indexslow Slow index. indexfast Fast\n" - "index. normal1 Pointer to the destination x component of the\n" - "normal vector. normal2 Pointer to the destination y component of\n" - "the normal vector. normal3 Pointer to the destination z component\n" - "of the normal vector.\n" + "detector Detector handle. indexslow Slow index. indexfast Fast\n" + "index. normal1 Pointer to the destination x component of the normal\n" + "vector. normal2 Pointer to the destination y component of the\n" + "normal vector. normal3 Pointer to the destination z component of\n" + "the normal vector.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_set_beam_center", _wrap_cbf_detector_struct_set_beam_center, METH_O, "\n" @@ -21623,7 +22343,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexslow,double indexfast,double centerslow,double centerfast\n" "\n" "C prototype: int cbf_set_beam_center (cbf_detector detector,\n" - " double *indexslow, double *indexfast, double *centerslow,\n" + " double *indexslow, double *indexfast, double *centerslow,\n" " double *centerfast);\n" "\n" "CBFLib documentation:\n" @@ -21670,14 +22390,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_set_beam_center_fs", _wrap_cbf_detector_struct_set_beam_center_fs, METH_O, "\n" @@ -21686,7 +22406,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexfast,double indexslow,double centerfast,double centerslow\n" "\n" "C prototype: int cbf_set_beam_center_fs (cbf_detector detector,\n" - " double *indexfast, double *indexslow, double *centerfast,\n" + " double *indexfast, double *indexslow, double *centerfast,\n" " double *centerslow);\n" "\n" "CBFLib documentation:\n" @@ -21733,14 +22453,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_set_beam_center_sf", _wrap_cbf_detector_struct_set_beam_center_sf, METH_O, "\n" @@ -21749,7 +22469,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexslow,double indexfast,double centerslow,double centerfast\n" "\n" "C prototype: int cbf_set_beam_center_sf (cbf_detector detector,\n" - " double *indexslow, double *indexfast, double *centerslow,\n" + " double *indexslow, double *indexfast, double *centerslow,\n" " double *centerfast);\n" "\n" "CBFLib documentation:\n" @@ -21796,14 +22516,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_set_reference_beam_center", _wrap_cbf_detector_struct_set_reference_beam_center, METH_O, "\n" @@ -21812,7 +22532,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexslow,double indexfast,double centerslow,double centerfast\n" "\n" "C prototype: int cbf_set_reference_beam_center (cbf_detector detector,\n" - " double *indexslow, double *indexfast, double *centerslow,\n" + " double *indexslow, double *indexfast, double *centerslow,\n" " double *centerfast);\n" "\n" "CBFLib documentation:\n" @@ -21859,14 +22579,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_set_reference_beam_center_fs", _wrap_cbf_detector_struct_set_reference_beam_center_fs, METH_O, "\n" @@ -21875,7 +22595,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexfast,double indexslow,double centerfast,double centerslow\n" "\n" "C prototype: int cbf_set_reference_beam_center_fs (cbf_detector detector,\n" - " double *indexfast, double *indexslow, double *centerfast,\n" + " double *indexfast, double *indexslow, double *centerfast,\n" " double *centerslow);\n" "\n" "CBFLib documentation:\n" @@ -21922,14 +22642,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_set_reference_beam_center_sf", _wrap_cbf_detector_struct_set_reference_beam_center_sf, METH_O, "\n" @@ -21938,7 +22658,7 @@ static PyMethodDef SwigMethods[] = { "*args : double indexslow,double indexfast,double centerslow,double centerfast\n" "\n" "C prototype: int cbf_set_reference_beam_center_sf (cbf_detector detector,\n" - " double *indexslow, double *indexfast, double *centerslow,\n" + " double *indexslow, double *indexfast, double *centerslow,\n" " double *centerfast);\n" "\n" "CBFLib documentation:\n" @@ -21985,14 +22705,14 @@ static PyMethodDef SwigMethods[] = { "the value of _diffrn_detector_element.reference_units will be set to\n" "'mm'.\n" "ARGUMENTS\n" - "detector Detector handle. indexfast Pointer to the destination\n" - "fast index. indexslow Pointer to the destination slow index.\n" + "detector Detector handle. indexfast Pointer to the destination\n" + "fast index. indexslow Pointer to the destination slow index.\n" "centerfast Pointer to the destination displacement along the fast\n" "axis. centerslow Pointer to the destination displacement along the\n" "slow axis.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_detector_struct_swigregister", cbf_detector_struct_swigregister, METH_O, NULL}, @@ -22057,7 +22777,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_construct_detector (cbf_handle handle,\n" - " cbf_detector *detector, unsigned int element_number);\n" + " cbf_detector *detector, unsigned int element_number);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22071,13 +22791,13 @@ static PyMethodDef SwigMethods[] = { "similar, but try to force the creations of missing intermediate\n" "categories needed to construct a detector object.\n" "ARGUMENTS\n" - "handle CBF handle. detector Pointer to the\n" - "destination detector handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category.\n" + "handle CBF handle. detector Pointer to the destination detector\n" + "handle. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_construct_goniometer", _wrap_cbf_handle_struct_construct_goniometer, METH_O, "\n" @@ -22086,7 +22806,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_construct_goniometer (cbf_handle handle,\n" - " cbf_goniometer *goniometer);\n" + " cbf_goniometer *goniometer);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22098,7 +22818,7 @@ static PyMethodDef SwigMethods[] = { "goniometer handle.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_construct_positioner", _wrap_cbf_handle_struct_construct_positioner, METH_VARARGS, "\n" @@ -22107,7 +22827,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_construct_positioner (cbf_handle handle,\n" - " cbf_positioner *positioner, const char *axis_id);\n" + " cbf_positioner *positioner, const char *axis_id);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22124,7 +22844,7 @@ static PyMethodDef SwigMethods[] = { "category.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_construct_reference_detector", _wrap_cbf_handle_struct_construct_reference_detector, METH_VARARGS, "\n" @@ -22133,7 +22853,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_construct_reference_detector (cbf_handle handle,\n" - " cbf_detector *detector, unsigned int element_number);\n" + " cbf_detector *detector, unsigned int element_number);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22147,13 +22867,13 @@ static PyMethodDef SwigMethods[] = { "similar, but try to force the creations of missing intermediate\n" "categories needed to construct a detector object.\n" "ARGUMENTS\n" - "handle CBF handle. detector Pointer to the\n" - "destination detector handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category.\n" + "handle CBF handle. detector Pointer to the destination detector\n" + "handle. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_construct_reference_positioner", _wrap_cbf_handle_struct_construct_reference_positioner, METH_VARARGS, "\n" @@ -22162,7 +22882,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_construct_reference_positioner (cbf_handle handle,\n" - " cbf_positioner *positioner, const char *axis_id);\n" + " cbf_positioner *positioner, const char *axis_id);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22179,7 +22899,7 @@ static PyMethodDef SwigMethods[] = { "category.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_count_axis_ancestors", _wrap_cbf_handle_struct_count_axis_ancestors, METH_VARARGS, "\n" @@ -22188,7 +22908,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_count_axis_ancestors (cbf_handle handle,\n" - " const char *axis_id, unsigned int *ancestors);\n" + " const char *axis_id, unsigned int *ancestors);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22217,29 +22937,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_count_categories", _wrap_cbf_handle_struct_count_categories, METH_O, "\n" @@ -22315,7 +23015,7 @@ static PyMethodDef SwigMethods[] = { "handle CBF handle. elements Pointer to the destination count.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_count_rows", _wrap_cbf_handle_struct_count_rows, METH_O, "\n" @@ -22409,7 +23109,7 @@ static PyMethodDef SwigMethods[] = { "*args : String categoryname\n" "\n" "C prototype: int cbf_find_category_root (cbf_handle handle,\n" - " const char* categoryname, const char** categoryroot);\n" + " const char* categoryname, const char** categoryroot);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22427,7 +23127,7 @@ static PyMethodDef SwigMethods[] = { "root name. categoryroot_in input category root name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_find_column", _wrap_cbf_handle_struct_find_column, METH_VARARGS, "\n" @@ -22525,7 +23225,7 @@ static PyMethodDef SwigMethods[] = { "*args : String tagname\n" "\n" "C prototype: int cbf_find_tag_category (cbf_handle handle,\n" - " const char* tagname, const char** categoryname);\n" + " const char* tagname, const char** categoryname);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22539,7 +23239,7 @@ static PyMethodDef SwigMethods[] = { "categoryname_in input category name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_find_tag_root", _wrap_cbf_handle_struct_find_tag_root, METH_VARARGS, "\n" @@ -22548,7 +23248,7 @@ static PyMethodDef SwigMethods[] = { "*args : String tagname\n" "\n" "C prototype: int cbf_find_tag_root (cbf_handle handle, const char* tagname,\n" - " const char** tagroot);\n" + " const char** tagroot);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22565,7 +23265,7 @@ static PyMethodDef SwigMethods[] = { "tag root name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_force_new_category", _wrap_cbf_handle_struct_force_new_category, METH_VARARGS, "\n" @@ -22574,7 +23274,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_force_new_category (cbf_handle handle,\n" - " const char *categoryname);\n" + " const char *categoryname);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22650,15 +23350,15 @@ static PyMethodDef SwigMethods[] = { " int ndimfast\n" "\n" "C prototype: int cbf_get_3d_image (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, void *array, size_t elsize,\n" - " int elsign, size_t ndimslow, size_t ndimmid,\n" + " unsigned int element_number, void *array, size_t elsize,\n" + " int elsign, size_t ndimslow, size_t ndimmid,\n" " size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -22666,7 +23366,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -22681,7 +23381,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_3d_image_fs_as_string", _wrap_cbf_handle_struct_get_3d_image_fs_as_string, METH_VARARGS, "\n" @@ -22691,15 +23416,15 @@ static PyMethodDef SwigMethods[] = { " int ndimslow\n" "\n" "C prototype: int cbf_get_3d_image_fs (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " void *array, size_t elsize, int elsign, size_t ndimfast,\n" + " unsigned int reserved, unsigned int element_number,\n" + " void *array, size_t elsize, int elsign, size_t ndimfast,\n" " size_t ndimmid, size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -22707,7 +23432,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -22722,7 +23447,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_3d_image_sf_as_string", _wrap_cbf_handle_struct_get_3d_image_sf_as_string, METH_VARARGS, "\n" @@ -22732,15 +23482,15 @@ static PyMethodDef SwigMethods[] = { " int ndimfast\n" "\n" "C prototype: int cbf_get_3d_image_sf (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " void *array, size_t elsize, int elsign, size_t ndimslow,\n" + " unsigned int reserved, unsigned int element_number,\n" + " void *array, size_t elsize, int elsign, size_t ndimslow,\n" " size_t ndimmid, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -22748,7 +23498,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -22763,7 +23513,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_3d_image_size", _wrap_cbf_handle_struct_get_3d_image_size, METH_VARARGS, "\n" @@ -22772,8 +23547,8 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_3d_image_size (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " size_t *ndimslow, size_t *ndimmid, size_t *ndimfast);\n" + " unsigned int reserved, unsigned int element_number,\n" + " size_t *ndimslow, size_t *ndimmid, size_t *ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22797,8 +23572,8 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_3d_image_size_sf (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " size_t *ndimslow, size_t *ndimmid, size_t *ndimfast);\n" + " unsigned int reserved, unsigned int element_number,\n" + " size_t *ndimslow, size_t *ndimmid, size_t *ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22821,7 +23596,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id,Integer ancestor_index\n" "\n" "C prototype: int cbf_get_axis_ancestor (cbf_handle handle,\n" - " const char *axis_id, const unsigned int ancestor_index,\n" + " const char *axis_id, const unsigned int ancestor_index,\n" " const char * *ancestor);\n" "\n" "CBFLib documentation:\n" @@ -22851,29 +23626,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_depends_on", _wrap_cbf_handle_struct_get_axis_depends_on, METH_VARARGS, "\n" @@ -22882,7 +23637,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_depends_on (cbf_handle handle,\n" - " const char *axis_id, const char * *depends_on);\n" + " const char *axis_id, const char * *depends_on);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22911,29 +23666,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_equipment", _wrap_cbf_handle_struct_get_axis_equipment, METH_VARARGS, "\n" @@ -22942,7 +23677,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_equipment (cbf_handle handle,\n" - " const char *axis_id, const char * *equipment);\n" + " const char *axis_id, const char * *equipment);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -22971,29 +23706,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_equipment_component", _wrap_cbf_handle_struct_get_axis_equipment_component, METH_VARARGS, "\n" @@ -23002,7 +23717,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_equipment_component (cbf_handle handle,\n" - " const char *axis_id, const char * *equipment_component);\n" + " const char *axis_id, const char * *equipment_component);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23031,29 +23746,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_offset", _wrap_cbf_handle_struct_get_axis_offset, METH_VARARGS, "\n" @@ -23062,7 +23757,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_offset (cbf_handle handle, const char *axis_id,\n" - " double *offset1, double *offset2, double *offset3);\n" + " double *offset1, double *offset2, double *offset3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23091,29 +23786,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_poise", _wrap_cbf_handle_struct_get_axis_poise, METH_VARARGS, "\n" @@ -23123,10 +23798,10 @@ static PyMethodDef SwigMethods[] = { "*args : Float ratio,String axis_id,String frame_id\n" "\n" "C prototype: int cbf_get_axis_poise(cbf_handle handle, double ratio,\n" - " double * vector1, double * vector2, double * vector3,\n" - " double * offset1, double * offset2, double * offset3,\n" + " double * vector1, double * vector2, double * vector3,\n" + " double * offset1, double * offset2, double * offset3,\n" " double * angle, const char * axis_id,\n" - " const char * frame_id);\n" + " const char * frame_id);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23157,19 +23832,18 @@ static PyMethodDef SwigMethods[] = { "vector for axis axis_id unmodified by axis rotations. Any of the\n" "pointers may be specified as NULL.\n" "ARGUMENTS\n" - "handle CBF handle. ratio A number between 0 and 1\n" - "indication how far into the frame to go vector1 Pointer to the\n" - "first component of the axis vector vector2 Pointer to the second\n" - "component of the axis vector vector3 Pointer to the third\n" - "component of the axis vector offset1 Pointer to the first\n" - "component of the axis offset offset2 Pointer to the second\n" - "component of the axis offset offset3 Pointer to the third\n" - "component of the axis offset angle Pointer to the rotation\n" - "angle axis_id The specified axis frame_id The specified\n" + "handle CBF handle. ratio A number between 0 and 1 indication how\n" + "far into the frame to go vector1 Pointer to the first component of\n" + "the axis vector vector2 Pointer to the second component of the axis\n" + "vector vector3 Pointer to the third component of the axis vector\n" + "offset1 Pointer to the first component of the axis offset offset2\n" + "Pointer to the second component of the axis offset offset3 Pointer\n" + "to the third component of the axis offset angle Pointer to the\n" + "rotation angle axis_id The specified axis frame_id The specified\n" "frame positioner CBF goniometer\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_axis_reference_poise", _wrap_cbf_handle_struct_get_axis_reference_poise, METH_VARARGS, "\n" @@ -23179,8 +23853,8 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_reference_poise(cbf_handle handle,\n" - " double * vector1, double * vector2, double * vector3,\n" - " double * offset1, double * offset2, double * offset3,\n" + " double * vector1, double * vector2, double * vector3,\n" + " double * offset1, double * offset2, double * offset3,\n" " const char * axis_id);\n" "\n" "CBFLib documentation:\n" @@ -23212,19 +23886,18 @@ static PyMethodDef SwigMethods[] = { "vector for axis axis_id unmodified by axis rotations. Any of the\n" "pointers may be specified as NULL.\n" "ARGUMENTS\n" - "handle CBF handle. ratio A number between 0 and 1\n" - "indication how far into the frame to go vector1 Pointer to the\n" - "first component of the axis vector vector2 Pointer to the second\n" - "component of the axis vector vector3 Pointer to the third\n" - "component of the axis vector offset1 Pointer to the first\n" - "component of the axis offset offset2 Pointer to the second\n" - "component of the axis offset offset3 Pointer to the third\n" - "component of the axis offset angle Pointer to the rotation\n" - "angle axis_id The specified axis frame_id The specified\n" + "handle CBF handle. ratio A number between 0 and 1 indication how\n" + "far into the frame to go vector1 Pointer to the first component of\n" + "the axis vector vector2 Pointer to the second component of the axis\n" + "vector vector3 Pointer to the third component of the axis vector\n" + "offset1 Pointer to the first component of the axis offset offset2\n" + "Pointer to the second component of the axis offset offset3 Pointer\n" + "to the third component of the axis offset angle Pointer to the\n" + "rotation angle axis_id The specified axis frame_id The specified\n" "frame positioner CBF goniometer\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_axis_rotation", _wrap_cbf_handle_struct_get_axis_rotation, METH_VARARGS, "\n" @@ -23233,7 +23906,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_rotation (cbf_handle handle,\n" - " const char *axis_id, double *rotation);\n" + " const char *axis_id, double *rotation);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23262,29 +23935,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_rotation_axis", _wrap_cbf_handle_struct_get_axis_rotation_axis, METH_VARARGS, "\n" @@ -23293,7 +23946,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_rotation_axis (cbf_handle handle,\n" - " const char *axis_id, const char * *rotation_axis);\n" + " const char *axis_id, const char * *rotation_axis);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23322,29 +23975,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_setting", _wrap_cbf_handle_struct_get_axis_setting, METH_VARARGS, "\n" @@ -23353,7 +23986,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_setting (cbf_handle handle,\n" - " unsigned int reserved, const char *axis_id, double *start,\n" + " unsigned int reserved, const char *axis_id, double *start,\n" " double *increment);\n" "\n" "CBFLib documentation:\n" @@ -23383,29 +24016,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_type", _wrap_cbf_handle_struct_get_axis_type, METH_VARARGS, "\n" @@ -23414,7 +24027,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_type (cbf_handle handle, const char *axis_id,\n" - " cbf_axis_type *axis_type);\n" + " cbf_axis_type *axis_type);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23443,29 +24056,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_axis_vector", _wrap_cbf_handle_struct_get_axis_vector, METH_VARARGS, "\n" @@ -23474,7 +24067,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id\n" "\n" "C prototype: int cbf_get_axis_vector (cbf_handle handle, const char *axis_id,\n" - " double *vector1, double *vector2, double *vector3);\n" + " double *vector1, double *vector2, double *vector3);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23503,29 +24096,9 @@ static PyMethodDef SwigMethods[] = { "components of the vector of axis_id.\n" "The parameter reserved is presently unused and should be set to 0.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any\n" - "value other than 0 is invalid. axis_id Axis id.\n" - "ancestor_index Integer index of the desired ancestor, starting\n" - "with 0 for the current axis_id. ancestor Pointer to\n" - "destination ancestor name pointer. depends_on Pointer to\n" - "destination depends_on name pointer. equipment Pointer to\n" - "destination equipment name pointer. equipment_component Pointer to\n" - "destination equipment_component name pointer. offset1\n" - "Pointer to destination first offset component value. offset2\n" - " Pointer to destination second offset component value. offset3\n" - " Pointer to destination third offset component value.\n" - "rotation Pointer to destination rotation value.\n" - "rotation_axis Pointer to destination rotation_axisn name\n" - "pointer. start Pointer to the destination start\n" - "value. increment Pointer to the destination increment\n" - "value. type Pointer to destination axis type of type\n" - ". vector1 Pointer to destination first vector component\n" - "value. vector2 Pointer to destination second vector\n" - "component value. vector3 Pointer to destination third\n" - "vector component value.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. axis_id Axis id. ancestor_index Integer index of the\n" + "desired ancestor, starting with 0 for the current axis_id.\n" "\n" ""}, { "cbf_handle_struct_get_bin_sizes", _wrap_cbf_handle_struct_get_bin_sizes, METH_VARARGS, "\n" @@ -23534,7 +24107,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_bin_sizes(cbf_handle handle,\n" - " unsigned int element_number, double * slowbinsize,\n" + " unsigned int element_number, double * slowbinsize,\n" " double * fastbinsize);\n" "\n" "CBFLib documentation:\n" @@ -23554,9 +24127,9 @@ static PyMethodDef SwigMethods[] = { "In order to allow for software binning involving fractions of pixels,\n" "the bin sizes are doubles rather than ints.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. slowbinsize Pointer to the\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. slowbinsize Pointer to the\n" "returned number of pixels composing one array element in the\n" "dimension that changes at the second-fastest rate. fastbinsize\n" "Pointer to the returned number of pixels composing one array element\n" @@ -23567,7 +24140,7 @@ static PyMethodDef SwigMethods[] = { "at the fastest rate.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_crystal_id", _wrap_cbf_handle_struct_get_crystal_id, METH_O, "\n" @@ -23591,7 +24164,7 @@ static PyMethodDef SwigMethods[] = { "value pointer.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_datestamp", _wrap_cbf_handle_struct_get_datestamp, METH_O, "\n" @@ -23601,8 +24174,8 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_datestamp (cbf_handle handle, unsigned int reserved,\n" - " int *year, int *month, int *day, int *hour, int *minute,\n" - " double *second, int *timezone);\n" + " int *year, int *month, int *day, int *hour, int *minute,\n" + " double *second, int *timezone);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23612,17 +24185,17 @@ static PyMethodDef SwigMethods[] = { "parameter < i>reserved is presently unused and should be set to 0.\n" "Any of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other than 0 is\n" - "invalid. year Pointer to the destination timestamp year. month\n" - " Pointer to the destination timestamp month (1-12). day\n" - "Pointer to the destination timestamp day (1-31). hour Pointer\n" - "to the destination timestamp hour (0-23). minute Pointer to the\n" - "destination timestamp minute (0-59). second Pointer to the\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. year Pointer to the destination timestamp year. month\n" + "Pointer to the destination timestamp month (1-12). day Pointer to\n" + "the destination timestamp day (1-31). hour Pointer to the\n" + "destination timestamp hour (0-23). minute Pointer to the\n" + "destination timestamp minute (0-59). second Pointer to the\n" "destination timestamp second (0-60.0). timezone Pointer to the\n" "destination timezone difference from UTC in minutes.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_dictionary", _wrap_cbf_handle_struct_get_dictionary, METH_O, "\n" @@ -23647,7 +24220,7 @@ static PyMethodDef SwigMethods[] = { "dictionary. dictionary_in CBF handle of dcitionary.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_diffrn_id", _wrap_cbf_handle_struct_get_diffrn_id, METH_O, "\n" @@ -23674,7 +24247,7 @@ static PyMethodDef SwigMethods[] = { "value pointer. default_id Character string default value.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_divergence", _wrap_cbf_handle_struct_get_divergence, METH_O, "\n" @@ -23683,7 +24256,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_divergence (cbf_handle handle, double *div_x_source,\n" - " double *div_y_source, double *div_x_y_source);\n" + " double *div_y_source, double *div_x_y_source);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23697,7 +24270,7 @@ static PyMethodDef SwigMethods[] = { "div_x_y_source.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_doublevalue", _wrap_cbf_handle_struct_get_doublevalue, METH_O, "\n" @@ -23729,7 +24302,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_element_id (cbf_handle handle,\n" - " unsigned int element_number, const char **element_id);\n" + " unsigned int element_number, const char **element_id);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23751,15 +24324,15 @@ static PyMethodDef SwigMethods[] = { "been set to a new value.\n" "The element_id must not be modified by the program in any way.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. element_id Pointer to the\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. element_id Pointer to the\n" "destination string for cbf_get_element_id, but the string itself for\n" - "cbf_get_element_number. array_id The optional array id or\n" - "NULL. array_section_id The optional array_section_id or NULL.\n" + "cbf_get_element_number. array_id The optional array id or NULL.\n" + "array_section_id The optional array_section_id or NULL.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_element_number", _wrap_cbf_handle_struct_get_element_number, METH_O, "cbf_handle_struct_get_element_number(cbf_handle_struct self)"}, @@ -23769,7 +24342,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_gain (cbf_handle handle, unsigned int element_number,\n" - " double *gain, double *gain_esd);\n" + " double *gain, double *gain_esd);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -23777,14 +24350,13 @@ static PyMethodDef SwigMethods[] = { "parameters for element number element_number.\n" "Either of the destination pointers may be NULL.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. gain Pointer to the\n" - "destination gain. gain_esd Pointer to the destination\n" - "gain_esd.\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. gain Pointer to the destination\n" + "gain. gain_esd Pointer to the destination gain_esd.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_image_as_string", _wrap_cbf_handle_struct_get_image_as_string, METH_VARARGS, "\n" @@ -23793,14 +24365,14 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int elsign,int ndimslow,int ndimfast\n" "\n" "C prototype: int cbf_get_image (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, void *array, size_t elsize,\n" - " int elsign, size_t ndimslow, size_t ndimfast);\n" + " unsigned int element_number, void *array, size_t elsize,\n" + " int elsign, size_t ndimslow, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -23808,7 +24380,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -23823,7 +24395,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_image_fs_as_string", _wrap_cbf_handle_struct_get_image_fs_as_string, METH_VARARGS, "\n" @@ -23832,14 +24429,14 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int elsign,int ndimfast,int ndimslow\n" "\n" "C prototype: int cbf_get_image_fs (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, void *array, size_t elsize,\n" - " int elsign, size_t ndimfast, size_t ndimslow);\n" + " unsigned int element_number, void *array, size_t elsize,\n" + " int elsign, size_t ndimfast, size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -23847,7 +24444,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -23862,7 +24459,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_image_sf_as_string", _wrap_cbf_handle_struct_get_image_sf_as_string, METH_VARARGS, "\n" @@ -23871,14 +24493,14 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int elsign,int ndimslow,int ndimfast\n" "\n" "C prototype: int cbf_get_image_sf (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, void *array, size_t elsize,\n" - " int elsign, size_t ndimslow, size_t ndimfast);\n" + " unsigned int element_number, void *array, size_t elsize,\n" + " int elsign, size_t ndimslow, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -23886,7 +24508,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -23901,7 +24523,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_image_size", _wrap_cbf_handle_struct_get_image_size, METH_VARARGS, "\n" @@ -23910,7 +24557,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_image_size (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, size_t *ndimslow,\n" + " unsigned int element_number, size_t *ndimslow,\n" " size_t *ndimfast);\n" "\n" "CBFLib documentation:\n" @@ -23934,7 +24581,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_image_size_fs (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" + " unsigned int reserved, unsigned int element_number,\n" " size_t *ndimfast, size_t *ndimslow);\n" "\n" "CBFLib documentation:\n" @@ -23958,7 +24605,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_image_size_sf (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" + " unsigned int reserved, unsigned int element_number,\n" " size_t *ndimslow, size_t *ndimfast);\n" "\n" "CBFLib documentation:\n" @@ -23982,8 +24629,8 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_integerarray (cbf_handle handle, int *binary_id,\n" - " void *array, size_t elsize, int elsigned, size_t elements,\n" - " size_t *elements_read);\n" + " void *array, size_t elsize, int elsigned, size_t elements,\n" + " size_t *elements_read);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24017,13 +24664,12 @@ static PyMethodDef SwigMethods[] = { "For cbf_get_realarray, only IEEE format is supported. No conversion\n" "to other floating point formats is done at this time.\n" "ARGUMENTS\n" - "handle CBF handle. binary_id Pointer to the\n" - "destination integer binary identifier. array Pointer to the\n" - "destination array. elsize Size in bytes of each destination\n" - "array element. elsigned Set to non-0 if the destination array\n" - "elements are signed. elements The number of elements to read.\n" - "elements_read Pointer to the destination number of elements\n" - "actually read.\n" + "handle CBF handle. binary_id Pointer to the destination integer\n" + "binary identifier. array Pointer to the destination array. elsize\n" + "Size in bytes of each destination array element. elsigned Set to\n" + "non-0 if the destination array elements are signed. elements The\n" + "number of elements to read. elements_read Pointer to the\n" + "destination number of elements actually read.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success. SEE ALSO\n" "\n" @@ -24074,19 +24720,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -24100,11 +24746,11 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_integerarrayparameters_wdims (cbf_handle handle,\n" - " unsigned int *compression, int *binary_id, size_t *elsize,\n" + " unsigned int *compression, int *binary_id, size_t *elsize,\n" " int *elsigned, int *elunsigned, size_t *elements,\n" " int *minelement, int *maxelement, const char **byteorder,\n" " size_t *dimfast, size_t *dimmid, size_t *dimslow,\n" - " size_t *padding);\n" + " size_t *padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24141,19 +24787,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -24167,11 +24813,11 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_integerarrayparameters_wdims_fs (cbf_handle handle,\n" - " unsigned int *compression, int *binary_id, size_t *elsize,\n" - " int *elsigned, int *elunsigned, size_t *elements,\n" - " int *minelement, int *maxelement, const char **byteorder,\n" - " size_t *dimfast, size_t *dimmid, size_t *dimslow,\n" - " size_t *padding);\n" + " unsigned int *compression, int *binary_id, size_t *elsize,\n" + " int *elsigned, int *elunsigned, size_t *elements,\n" + " int *minelement, int *maxelement, const char **byteorder,\n" + " size_t *dimfast, size_t *dimmid, size_t *dimslow,\n" + " size_t *padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24208,19 +24854,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -24234,11 +24880,11 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_integerarrayparameters_wdims_sf (cbf_handle handle,\n" - " unsigned int *compression, int *binary_id, size_t *elsize,\n" - " int *elsigned, int *elunsigned, size_t *elements,\n" - " int *minelement, int *maxelement, const char **byteorder,\n" - " size_t *dimslow, size_t *dimmid, size_t *dimfast,\n" - " size_t *padding);\n" + " unsigned int *compression, int *binary_id, size_t *elsize,\n" + " int *elsigned, int *elunsigned, size_t *elements,\n" + " int *minelement, int *maxelement, const char **byteorder,\n" + " size_t *dimslow, size_t *dimmid, size_t *dimfast,\n" + " size_t *padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24275,19 +24921,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -24322,7 +24968,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_integration_time (cbf_handle handle,\n" - " unsigned int reserved, double *time);\n" + " unsigned int reserved, double *time);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24334,7 +24980,7 @@ static PyMethodDef SwigMethods[] = { "invalid. time Pointer to the destination time.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_orientation_matrix", _wrap_cbf_handle_struct_get_orientation_matrix, METH_O, "\n" @@ -24345,7 +24991,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_orientation_matrix (cbf_handle handle,\n" - " double ub_matrix[9]);\n" + " double ub_matrix[9]);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24358,11 +25004,11 @@ static PyMethodDef SwigMethods[] = { "cbf_set_orientation_matrix sets the values in the \"diffrn \"\n" "category to the values pointed to by ub_matrix.\n" "ARGUMENTS\n" - "handle CBF handle. ubmatric Source or destination array of 9\n" + "handle CBF handle. ubmatric Source or destination array of 9\n" "doubles giving the orientation matrix parameters.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_overload", _wrap_cbf_handle_struct_get_overload, METH_VARARGS, "\n" @@ -24371,20 +25017,20 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_get_overload (cbf_handle handle,\n" - " unsigned int element_number, double *overload);\n" + " unsigned int element_number, double *overload);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_overload sets *overload to the overload value for element\n" "number element_number.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. overload Pointer to the\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. overload Pointer to the\n" "destination overload.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_pixel_size", _wrap_cbf_handle_struct_get_pixel_size, METH_VARARGS, "\n" @@ -24393,7 +25039,7 @@ static PyMethodDef SwigMethods[] = { "*args : Int element_number,Int axis_number\n" "\n" "C prototype: int cbf_get_pixel_size (cbf_handle handle,\n" - " unsigned int element_number, int axis_number,\n" + " unsigned int element_number, int axis_number,\n" " double *psize);\n" "\n" "CBFLib documentation:\n" @@ -24411,15 +25057,15 @@ static PyMethodDef SwigMethods[] = { "If the pixel size is not given explcitly in the \"array_element_size\n" "\" category, the function returns CBF_NOTFOUND.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. axis_number The number of the\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. axis_number The number of the\n" "axis, starting from 1 for the fastest for cbf_get_pixel_size and\n" "cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf.\n" - "psize Pointer to the destination pixel size.\n" + "psize Pointer to the destination pixel size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_pixel_size_fs", _wrap_cbf_handle_struct_get_pixel_size_fs, METH_VARARGS, "\n" @@ -24428,7 +25074,7 @@ static PyMethodDef SwigMethods[] = { "*args : Int element_number,Int axis_number\n" "\n" "C prototype: int cbf_get_pixel_size_fs(cbf_handle handle,\n" - " unsigned int element_number, int axis_number,\n" + " unsigned int element_number, int axis_number,\n" " double *psize);\n" "\n" "CBFLib documentation:\n" @@ -24446,15 +25092,15 @@ static PyMethodDef SwigMethods[] = { "If the pixel size is not given explcitly in the \"array_element_size\n" "\" category, the function returns CBF_NOTFOUND.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. axis_number The number of the\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. axis_number The number of the\n" "axis, starting from 1 for the fastest for cbf_get_pixel_size and\n" "cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf.\n" - "psize Pointer to the destination pixel size.\n" + "psize Pointer to the destination pixel size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_pixel_size_sf", _wrap_cbf_handle_struct_get_pixel_size_sf, METH_VARARGS, "\n" @@ -24463,7 +25109,7 @@ static PyMethodDef SwigMethods[] = { "*args : Int element_number,Int axis_number\n" "\n" "C prototype: int cbf_get_pixel_size_sf(cbf_handle handle,\n" - " unsigned int element_number, int axis_number,\n" + " unsigned int element_number, int axis_number,\n" " double *psize);\n" "\n" "CBFLib documentation:\n" @@ -24481,15 +25127,15 @@ static PyMethodDef SwigMethods[] = { "If the pixel size is not given explcitly in the \"array_element_size\n" "\" category, the function returns CBF_NOTFOUND.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. axis_number The number of the\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. axis_number The number of the\n" "axis, starting from 1 for the fastest for cbf_get_pixel_size and\n" "cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf.\n" - "psize Pointer to the destination pixel size.\n" + "psize Pointer to the destination pixel size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_polarization", _wrap_cbf_handle_struct_get_polarization, METH_O, "\n" @@ -24498,7 +25144,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_polarization (cbf_handle handle,\n" - " double *polarizn_source_ratio,\n" + " double *polarizn_source_ratio,\n" " double *polarizn_source_norm);\n" "\n" "CBFLib documentation:\n" @@ -24508,12 +25154,12 @@ static PyMethodDef SwigMethods[] = { "parameters.\n" "Either destination pointer may be NULL.\n" "ARGUMENTS\n" - "handle CBF handle. polarizn_source_ratio Pointer\n" - "to the destination polarizn_source_ratio. polarizn_source_norm\n" - "Pointer to the destination polarizn_source_norm.\n" + "handle CBF handle. polarizn_source_ratio Pointer to the\n" + "destination polarizn_source_ratio. polarizn_source_norm Pointer to\n" + "the destination polarizn_source_norm.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_real_3d_image_as_string", _wrap_cbf_handle_struct_get_real_3d_image_as_string, METH_VARARGS, "\n" @@ -24522,15 +25168,15 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int ndimslow,int ndimmid,int ndimfast\n" "\n" "C prototype: int cbf_get_real_3d_image (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " void *array, size_t elsize, size_t ndimslow,\n" - " size_t ndimmid, size_t ndimfast);\n" + " unsigned int reserved, unsigned int element_number,\n" + " void *array, size_t elsize, size_t ndimslow, size_t ndimmid,\n" + " size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -24538,7 +25184,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -24553,7 +25199,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_real_3d_image_fs_as_string", _wrap_cbf_handle_struct_get_real_3d_image_fs_as_string, METH_VARARGS, "\n" @@ -24562,15 +25233,15 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int ndimfast,int ndimmid,int ndimslow\n" "\n" "C prototype: int cbf_get_real_3d_image_fs (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " void *array, size_t elsize, size_t ndimfast,\n" - " size_t ndimmid, size_t ndimslow);\n" + " unsigned int reserved, unsigned int element_number,\n" + " void *array, size_t elsize, size_t ndimfast, size_t ndimmid,\n" + " size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -24578,7 +25249,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -24593,7 +25264,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_real_3d_image_sf_as_string", _wrap_cbf_handle_struct_get_real_3d_image_sf_as_string, METH_VARARGS, "\n" @@ -24602,15 +25298,15 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int ndimslow,int ndimmid,int ndimfast\n" "\n" "C prototype: int cbf_get_real_3d_image_sf (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " void *array, size_t elsize, size_t ndimslow,\n" - " size_t ndimmid, size_t ndimfast);\n" + " unsigned int reserved, unsigned int element_number,\n" + " void *array, size_t elsize, size_t ndimslow, size_t ndimmid,\n" + " size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -24618,7 +25314,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -24633,7 +25329,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_real_image_as_string", _wrap_cbf_handle_struct_get_real_image_as_string, METH_VARARGS, "\n" @@ -24642,14 +25363,14 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int ndimslow,int ndimfast\n" "\n" "C prototype: int cbf_get_real_image (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, void *array, size_t elsize,\n" - " size_t ndimslow, size_t ndimfast);\n" + " unsigned int element_number, void *array, size_t elsize,\n" + " size_t ndimslow, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -24657,7 +25378,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -24672,7 +25393,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_real_image_fs_as_string", _wrap_cbf_handle_struct_get_real_image_fs_as_string, METH_VARARGS, "\n" @@ -24681,15 +25427,15 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int ndimfast,int ndimslow\n" "\n" "C prototype: int cbf_get_real_image_fs (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " void *array, size_t elsize, size_t ndimfast,\n" + " unsigned int reserved, unsigned int element_number,\n" + " void *array, size_t elsize, size_t ndimfast,\n" " size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -24697,7 +25443,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -24712,7 +25458,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_real_image_sf_as_string", _wrap_cbf_handle_struct_get_real_image_sf_as_string, METH_VARARGS, "\n" @@ -24721,15 +25492,15 @@ static PyMethodDef SwigMethods[] = { "*args : int element_number,int elsize,int ndimslow,int ndimfast\n" "\n" "C prototype: int cbf_get_real_image_sf (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " void *array, size_t elsize, size_t ndimslow,\n" + " unsigned int reserved, unsigned int element_number,\n" + " void *array, size_t elsize, size_t ndimslow,\n" " size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image\n" "array for element number element_number into an array. The array\n" - "consists of ndimslow×ndimfast elements of elsize bytes each, starting\n" + "consists of ndimslowndimfast elements of elsize bytes each, starting\n" "at array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_image, cbf_get_real_image_fs and\n" "cbf_get_real_image_sf read the image array of IEEE doubles or floats\n" @@ -24737,7 +25508,7 @@ static PyMethodDef SwigMethods[] = { "always signed. cbf_get_3d_image, cbf_get_3d_image_fs and\n" "cbf_get_3d_image_sf read the 3D image array for element number\n" "element_number into an array. The array consists of\n" - "ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at\n" + "ndimslowndimmidndimfast elements of elsize bytes each, starting at\n" "array. The elements are signed if elsign is non-0 and unsigned\n" "otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs,\n" "cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or\n" @@ -24752,7 +25523,32 @@ static PyMethodDef SwigMethods[] = { "ndimslow should be the array size and ndimfast and, for the 3D calls,\n" "ndimmid, should be set to 1 both in the call and in the imgCIF data\n" "being processed. If the array is 2-dimensional and a 3D call is used,\n" - "ndimslow and ndimmid should be the\n" + "ndimslow and ndimmid should be the array dimensions and ndimfast\n" + "should be set to 1 both in the call and in the imgCIF data being\n" + "processed.\n" + "If any element in the binary data cant fit into the destination\n" + "element, the destination is set the nearest possible value.\n" + "If the value is not binary, the function returns CBF_ASCII.\n" + "If the requested number of elements cant be read, the function will\n" + "read as many as it can and then return CBF_ENDOFDATA.\n" + "Currently, the destination array must consist of chars, shorts or\n" + "ints (signed or unsigned) for cbf_get_image, or IEEE doubles or\n" + "floats for cbf_get_real_image. If elsize is not equal to sizeof\n" + "(char), sizeof (short), sizeof (int), sizeof(double) or\n" + "sizeof(float), the function returns CBF_ARGUMENT.\n" + "The parameter reserved is presently unused and should be set to 0.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category. array Pointer to the destination array. elsize Size in\n" + "bytes of each destination array element. elsigned Set to non-0 if\n" + "the destination array elements are signed. ndimslow Slowest array\n" + "dimension. ndimmid Next faster array dimension. ndimfast Fastest\n" + "array dimension.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_realarray_as_string", _wrap_cbf_handle_struct_get_realarray_as_string, METH_O, "\n" @@ -24796,13 +25592,12 @@ static PyMethodDef SwigMethods[] = { "For cbf_get_realarray, only IEEE format is supported. No conversion\n" "to other floating point formats is done at this time.\n" "ARGUMENTS\n" - "handle CBF handle. binary_id Pointer to the\n" - "destination integer binary identifier. array Pointer to the\n" - "destination array. elsize Size in bytes of each destination\n" - "array element. elsigned Set to non-0 if the destination array\n" - "elements are signed. elements The number of elements to read.\n" - "elements_read Pointer to the destination number of elements\n" - "actually read.\n" + "handle CBF handle. binary_id Pointer to the destination integer\n" + "binary identifier. array Pointer to the destination array. elsize\n" + "Size in bytes of each destination array element. elsigned Set to\n" + "non-0 if the destination array elements are signed. elements The\n" + "number of elements to read. elements_read Pointer to the\n" + "destination number of elements actually read.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success. SEE ALSO\n" "\n" @@ -24851,19 +25646,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -24877,8 +25672,8 @@ static PyMethodDef SwigMethods[] = { "\n" "C prototype: int cbf_get_realarrayparameters_wdims (cbf_handle handle,\n" " unsigned int *compression, int *binary_id, size_t *elsize,\n" - " size_t *elements, const char **byteorder, size_t *dimfast,\n" - " size_t *dimmid, size_t *dimslow, size_t *padding);\n" + " size_t *elements, const char **byteorder, size_t *dimfast,\n" + " size_t *dimmid, size_t *dimslow, size_t *padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24915,19 +25710,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -24940,9 +25735,9 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_realarrayparameters_wdims_fs (cbf_handle handle,\n" - " unsigned int *compression, int *binary_id, size_t *elsize,\n" - " size_t *elements, const char **byteorder, size_t *dimfast,\n" - " size_t *dimmid, size_t *dimslow, size_t *padding);\n" + " unsigned int *compression, int *binary_id, size_t *elsize,\n" + " size_t *elements, const char **byteorder, size_t *dimfast,\n" + " size_t *dimmid, size_t *dimslow, size_t *padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -24979,19 +25774,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -25004,9 +25799,9 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_realarrayparameters_wdims_sf (cbf_handle handle,\n" - " unsigned int *compression, int *binary_id, size_t *elsize,\n" - " size_t *elements, const char **byteorder, size_t *dimslow,\n" - " size_t *dimmid, size_t *dimfast, size_t *padding);\n" + " unsigned int *compression, int *binary_id, size_t *elsize,\n" + " size_t *elements, const char **byteorder, size_t *dimslow,\n" + " size_t *dimmid, size_t *dimfast, size_t *padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -25043,19 +25838,19 @@ static PyMethodDef SwigMethods[] = { "count of octets.\n" "If the value is not binary, the function returns CBF_ASCII.\n" "ARGUMENTS\n" - "handle CBF handle. compression Compression method used.\n" - "elsize Size in bytes of each array element. binary_id\n" - "Pointer to the destination integer binary identifier. elsigned\n" - "Pointer to an integer. Set to 1 if the elements can be read as signed\n" - "integers. elunsigned Pointer to an integer. Set to 1 if the\n" - "elements can be read as unsigned integers. elements Pointer to\n" - "the destination number of elements. minelement Pointer to the\n" - "destination smallest element. maxelement Pointer to the\n" - "destination largest element. byteorder Pointer to the destination\n" - "byte order. dimfast Pointer to the destination fastest\n" - "dimension. dimmid Pointer to the destination second fastest\n" - "dimension. dimslow Pointer to the destination third fastest\n" - "dimension. padding Pointer to the destination padding size.\n" + "handle CBF handle. compression Compression method used. elsize\n" + "Size in bytes of each array element. binary_id Pointer to the\n" + "destination integer binary identifier. elsigned Pointer to an\n" + "integer. Set to 1 if the elements can be read as signed integers.\n" + "elunsigned Pointer to an integer. Set to 1 if the elements can be\n" + "read as unsigned integers. elements Pointer to the destination\n" + "number of elements. minelement Pointer to the destination smallest\n" + "element. maxelement Pointer to the destination largest element.\n" + "byteorder Pointer to the destination byte order. dimfast Pointer\n" + "to the destination fastest dimension. dimmid Pointer to the\n" + "destination second fastest dimension. dimslow Pointer to the\n" + "destination third fastest dimension. padding Pointer to the\n" + "destination padding size.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -25068,18 +25863,18 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_reciprocal_cell (cbf_handle handle, double cell[6],\n" - " double cell_esd[6] );\n" + " double cell_esd[6] );\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_reciprocal_cell sets cell[0:2] to the double values of the\n" - "reciprocal cell edge lengths a^*, b^* and c^* in Ångstroms^-1,\n" - "cell[3:5] to the double values of the reciprocal cell angles α^*, β^*\n" - "and γ^* in degrees, cell_esd[0:2] to the double values of the\n" + "reciprocal cell edge lengths a^*, b^* and c^* in ngstroms^-1,\n" + "cell[3:5] to the double values of the reciprocal cell angles a^*, b^*\n" + "and g^* in degrees, cell_esd[0:2] to the double values of the\n" "estimated strandard deviations of the reciprocal cell edge lengths\n" - "a^*, b^* and c^* in Ångstroms^-1, cell_esd[3:5] to the double values\n" + "a^*, b^* and c^* in ngstroms^-1, cell_esd[3:5] to the double values\n" "of the estimated standard deviations of the the reciprocal cell\n" - "angles α^*, β^* and γ^* in degrees.\n" + "angles a^*, b^* and g^* in degrees.\n" "The values returned are retrieved from the first row of the \"cell\n" "\" category. The value of \"_cell.entry_id \" is ignored.\n" "cell or cell_esd may be NULL.\n" @@ -25089,9 +25884,9 @@ static PyMethodDef SwigMethods[] = { "If the \"cell \" category is present, but some of the values are\n" "missing, zeros are returned for the missing values.\n" "ARGUMENTS\n" - "handle CBF handle. cell Pointer to the destination array of\n" - "6 doubles for the reciprocal cell parameters. cell_esd Pointer to\n" - "the destination array of 6 doubles for the reciprocal cell parameter\n" + "handle CBF handle. cell Pointer to the destination array of 6\n" + "doubles for the reciprocal cell parameters. cell_esd Pointer to the\n" + "destination array of 6 doubles for the reciprocal cell parameter\n" "esds.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success. No errors is\n" @@ -25106,7 +25901,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_timestamp (cbf_handle handle, unsigned int reserved,\n" - " double *time, int *timezone);\n" + " double *time, int *timezone);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -25121,7 +25916,7 @@ static PyMethodDef SwigMethods[] = { "timezone Pointer to the destination timezone difference.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_get_typeofvalue", _wrap_cbf_handle_struct_get_typeofvalue, METH_O, "\n" @@ -25155,7 +25950,7 @@ static PyMethodDef SwigMethods[] = { "string \"null \".\n" "The typeofvalue must not be modified by the program in any way.\n" "ARGUMENTS\n" - "handle CBF handle. typeofvalue Pointer to the destination\n" + "handle CBF handle. typeofvalue Pointer to the destination\n" "type-of-value string pointer.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" @@ -25168,16 +25963,16 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_get_unit_cell (cbf_handle handle, double cell[6],\n" - " double cell_esd[6] );\n" + " double cell_esd[6] );\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_get_unit_cell sets cell[0:2] to the double values of the cell\n" - "edge lengths a, b and c in Ångstroms, cell[3:5] to the double values\n" - "of the cell angles α, β and γ in degrees, cell_esd[0:2] to the double\n" + "edge lengths a, b and c in ngstroms, cell[3:5] to the double values\n" + "of the cell angles a, b and g in degrees, cell_esd[0:2] to the double\n" "values of the estimated strandard deviations of the cell edge lengths\n" - "a, b and c in Ångstroms, cell_esd[3:5] to the double values of the\n" - "estimated standard deviations of the the cell angles α, β and γ in\n" + "a, b and c in ngstroms, cell_esd[3:5] to the double values of the\n" + "estimated standard deviations of the the cell angles a, b and g in\n" "degrees.\n" "The values returned are retrieved from the first row of the \"cell\n" "\" category. The value of \"_cell.entry_id \" is ignored.\n" @@ -25187,8 +25982,8 @@ static PyMethodDef SwigMethods[] = { "If the \"cell \" category is present, but some of the values are\n" "missing, zeros are returned for the missing values.\n" "ARGUMENTS\n" - "handle CBF handle. cell Pointer to the destination array of\n" - "6 doubles for the cell parameters. cell_esd Pointer to the\n" + "handle CBF handle. cell Pointer to the destination array of 6\n" + "doubles for the cell parameters. cell_esd Pointer to the\n" "destination array of 6 doubles for the cell parameter esds.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success. No errors is\n" @@ -25232,12 +26027,12 @@ static PyMethodDef SwigMethods[] = { "\n" "CBFLib documentation:\n" "DESCRIPTION\n" - "cbf_get_wavelength sets *wavelength to the current wavelength in Å.\n" + "cbf_get_wavelength sets *wavelength to the current wavelength in .\n" "ARGUMENTS\n" "handle CBF handle. wavelength Pointer to the destination.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_insert_row", _wrap_cbf_handle_struct_insert_row, METH_VARARGS, "\n" @@ -25489,47 +26284,46 @@ static PyMethodDef SwigMethods[] = { "flags controls the interpretation of binary section headers, the\n" "parsing of brackets constructs and the parsing of treble-quoted\n" "strings.\n" - "MSG_DIGEST: Instructs CBFlib to check that the digest\n" - "of the binary section matches any header digest value. If the digests\n" - "do not match, the call will return CBF_FORMAT. This evaluation and\n" - "comparison is delayed (a \"lazy \" evaluation) to ensure maximal\n" - "processing efficiency. If an immediately evaluation is required, see\n" - "MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to\n" - "check that the digest of the binary section matches any header\n" - "digeste value. If the digests do not match, the call will return\n" - "CBF_FORMAT. This evaluation and comparison is performed during\n" - "initial parsing of the section to ensure timely error reporting at\n" - "the expense of processing efficiency. If a more efficient delayed (\n" - "\"lazy \") evaluation is required, see MSG_DIGEST, above.\n" - "MSG_DIGESTWARN: Instructs CBFlib to check that the digest\n" - "of the binary section matches any header digeste value. If the\n" - "digests do not match, a warning message will be sent to stderr, but\n" - "processing will attempt to continue. This evaluation and comparison\n" - "is first performed during initial parsing of the section to ensure\n" - "timely error reporting at the expense of processing efficiency. An\n" - "mismatch of the message digest usually indicates a serious error, but\n" - "it is sometimes worth continuing processing to try to isolate the\n" - "cause of the error. Use this option with caution. MSG_NODIGEST:\n" - " Do not check the digest (default). PARSE_BRACKETS:\n" - "Accept DDLm bracket-delimited [item,item,...item] or\n" - "{item,item,...item} or (item,item,...item) constructs as valid,\n" + "MSG_DIGEST: Instructs CBFlib to check that the digest of the binary\n" + "section matches any header digest value. If the digests do not match,\n" + "the call will return CBF_FORMAT. This evaluation and comparison is\n" + "delayed (a \"lazy \" evaluation) to ensure maximal processing\n" + "efficiency. If an immediately evaluation is required, see\n" + "MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to check that\n" + "the digest of the binary section matches any header digeste value. If\n" + "the digests do not match, the call will return CBF_FORMAT. This\n" + "evaluation and comparison is performed during initial parsing of the\n" + "section to ensure timely error reporting at the expense of processing\n" + "efficiency. If a more efficient delayed ( \"lazy \") evaluation is\n" + "required, see MSG_DIGEST, above. MSG_DIGESTWARN: Instructs CBFlib\n" + "to check that the digest of the binary section matches any header\n" + "digeste value. If the digests do not match, a warning message will be\n" + "sent to stderr, but processing will attempt to continue. This\n" + "evaluation and comparison is first performed during initial parsing\n" + "of the section to ensure timely error reporting at the expense of\n" + "processing efficiency. An mismatch of the message digest usually\n" + "indicates a serious error, but it is sometimes worth continuing\n" + "processing to try to isolate the cause of the error. Use this option\n" + "with caution. MSG_NODIGEST: Do not check the digest (default).\n" + "PARSE_BRACKETS: Accept DDLm bracket-delimited [item,item,...item]\n" + "or {item,item,...item} or (item,item,...item) constructs as valid,\n" "stripping non-quoted embedded whitespace and comments. These\n" "constructs may span multiple lines. PARSE_LIBERAL_BRACKETS: Accept\n" "DDLm bracket-delimited [item,item,...item] or {item,item,...item} or\n" "(item,item,...item) constructs as valid, stripping embedded\n" "non-quoted, non-separating whitespace and comments. These constructs\n" "may span multiple lines. In this case, whitespace may be used as an\n" - "alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm\n" + "alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm\n" "triple-quoted \" \" \"item,item,...item \" \" \" or\n" "'''item,item,...item''' constructs as valid, stripping embedded\n" "whitespace and comments. These constructs may span multiple lines. If\n" "this flag is set, then ''' will not be interpreted as a quoted\n" "apoptrophe and \" \" \" will not be interpreted as a quoted double\n" - "quote mark and PARSE_NOBRACKETS: Do not accept DDLm\n" + "quote mark and PARSE_NOBRACKETS: Do not accept DDLm\n" "bracket-delimited [item,item,...item] or {item,item,...item} or\n" "(item,item,...item) constructs as valid, stripping non-quoted\n" "embedded whitespace and comments. These constructs may span multiple\n" - "lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \"\n" + "lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \"\n" "\" \"item,item,...item \" \" \" or '''item,item,...item''' constructs\n" "as valid, stripping embedded whitespace and comments. These\n" "constructs may span multiple lines. If this flag is set, then '''\n" @@ -25538,7 +26332,7 @@ static PyMethodDef SwigMethods[] = { "CBFlib defers reading binary sections as long as possible. In the\n" "current version of CBFlib, this means that:\n" "1. The file must be a random-access file opened in binary mode (fopen\n" - "( ,\n" + "(\n" "\n" ""}, { "cbf_handle_struct_read_template", _wrap_cbf_handle_struct_read_template, METH_VARARGS, "\n" @@ -25558,7 +26352,7 @@ static PyMethodDef SwigMethods[] = { "descriptor.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_read_widefile", _wrap_cbf_handle_struct_read_widefile, METH_VARARGS, "\n" @@ -25583,47 +26377,46 @@ static PyMethodDef SwigMethods[] = { "flags controls the interpretation of binary section headers, the\n" "parsing of brackets constructs and the parsing of treble-quoted\n" "strings.\n" - "MSG_DIGEST: Instructs CBFlib to check that the digest\n" - "of the binary section matches any header digest value. If the digests\n" - "do not match, the call will return CBF_FORMAT. This evaluation and\n" - "comparison is delayed (a \"lazy \" evaluation) to ensure maximal\n" - "processing efficiency. If an immediately evaluation is required, see\n" - "MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to\n" - "check that the digest of the binary section matches any header\n" - "digeste value. If the digests do not match, the call will return\n" - "CBF_FORMAT. This evaluation and comparison is performed during\n" - "initial parsing of the section to ensure timely error reporting at\n" - "the expense of processing efficiency. If a more efficient delayed (\n" - "\"lazy \") evaluation is required, see MSG_DIGEST, above.\n" - "MSG_DIGESTWARN: Instructs CBFlib to check that the digest\n" - "of the binary section matches any header digeste value. If the\n" - "digests do not match, a warning message will be sent to stderr, but\n" - "processing will attempt to continue. This evaluation and comparison\n" - "is first performed during initial parsing of the section to ensure\n" - "timely error reporting at the expense of processing efficiency. An\n" - "mismatch of the message digest usually indicates a serious error, but\n" - "it is sometimes worth continuing processing to try to isolate the\n" - "cause of the error. Use this option with caution. MSG_NODIGEST:\n" - " Do not check the digest (default). PARSE_BRACKETS:\n" - "Accept DDLm bracket-delimited [item,item,...item] or\n" - "{item,item,...item} or (item,item,...item) constructs as valid,\n" + "MSG_DIGEST: Instructs CBFlib to check that the digest of the binary\n" + "section matches any header digest value. If the digests do not match,\n" + "the call will return CBF_FORMAT. This evaluation and comparison is\n" + "delayed (a \"lazy \" evaluation) to ensure maximal processing\n" + "efficiency. If an immediately evaluation is required, see\n" + "MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to check that\n" + "the digest of the binary section matches any header digeste value. If\n" + "the digests do not match, the call will return CBF_FORMAT. This\n" + "evaluation and comparison is performed during initial parsing of the\n" + "section to ensure timely error reporting at the expense of processing\n" + "efficiency. If a more efficient delayed ( \"lazy \") evaluation is\n" + "required, see MSG_DIGEST, above. MSG_DIGESTWARN: Instructs CBFlib\n" + "to check that the digest of the binary section matches any header\n" + "digeste value. If the digests do not match, a warning message will be\n" + "sent to stderr, but processing will attempt to continue. This\n" + "evaluation and comparison is first performed during initial parsing\n" + "of the section to ensure timely error reporting at the expense of\n" + "processing efficiency. An mismatch of the message digest usually\n" + "indicates a serious error, but it is sometimes worth continuing\n" + "processing to try to isolate the cause of the error. Use this option\n" + "with caution. MSG_NODIGEST: Do not check the digest (default).\n" + "PARSE_BRACKETS: Accept DDLm bracket-delimited [item,item,...item]\n" + "or {item,item,...item} or (item,item,...item) constructs as valid,\n" "stripping non-quoted embedded whitespace and comments. These\n" "constructs may span multiple lines. PARSE_LIBERAL_BRACKETS: Accept\n" "DDLm bracket-delimited [item,item,...item] or {item,item,...item} or\n" "(item,item,...item) constructs as valid, stripping embedded\n" "non-quoted, non-separating whitespace and comments. These constructs\n" "may span multiple lines. In this case, whitespace may be used as an\n" - "alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm\n" + "alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm\n" "triple-quoted \" \" \"item,item,...item \" \" \" or\n" "'''item,item,...item''' constructs as valid, stripping embedded\n" "whitespace and comments. These constructs may span multiple lines. If\n" "this flag is set, then ''' will not be interpreted as a quoted\n" "apoptrophe and \" \" \" will not be interpreted as a quoted double\n" - "quote mark and PARSE_NOBRACKETS: Do not accept DDLm\n" + "quote mark and PARSE_NOBRACKETS: Do not accept DDLm\n" "bracket-delimited [item,item,...item] or {item,item,...item} or\n" "(item,item,...item) constructs as valid, stripping non-quoted\n" "embedded whitespace and comments. These constructs may span multiple\n" - "lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \"\n" + "lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \"\n" "\" \"item,item,...item \" \" \" or '''item,item,...item''' constructs\n" "as valid, stripping embedded whitespace and comments. These\n" "constructs may span multiple lines. If this flag is set, then '''\n" @@ -25632,7 +26425,7 @@ static PyMethodDef SwigMethods[] = { "CBFlib defers reading binary sections as long as possible. In the\n" "current version of CBFlib, this means that:\n" "1. The file must be a random-access file opened in binary mode (fopen\n" - "( ,\n" + "(\n" "\n" ""}, { "cbf_handle_struct_remove_category", _wrap_cbf_handle_struct_remove_category, METH_O, "\n" @@ -25780,7 +26573,7 @@ static PyMethodDef SwigMethods[] = { "*args : String columnname,Float Value\n" "\n" "C prototype: int cbf_require_column_doublevalue (cbf_handle handle,\n" - " const char *columnname, double *number,\n" + " const char *columnname, double *number,\n" " const double defaultvalue);\n" "\n" "CBFLib documentation:\n" @@ -25791,10 +26584,10 @@ static PyMethodDef SwigMethods[] = { "number, or to the number given by defaultvalue if the item cannot be\n" "found.\n" "ARGUMENTS\n" - "handle CBF handle. columnname Name of the column\n" - "containing the number. number pointer to the location to\n" - "receive the floating-point value. defaultvalue Value to use if the\n" - "requested column and value cannot be found.\n" + "handle CBF handle. columnname Name of the column containing the\n" + "number. number pointer to the location to receive the\n" + "floating-point value. defaultvalue Value to use if the requested\n" + "column and value cannot be found.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -25806,7 +26599,7 @@ static PyMethodDef SwigMethods[] = { "*args : String Columnvalue,Int default\n" "\n" "C prototype: int cbf_require_column_integervalue (cbf_handle handle,\n" - " const char *columnname, int *number,\n" + " const char *columnname, int *number,\n" " const int defaultvalue);\n" "\n" "CBFLib documentation:\n" @@ -25816,10 +26609,10 @@ static PyMethodDef SwigMethods[] = { "*columnname, with the value interpreted as an integer number, or to\n" "the number given by defaultvalue if the item cannot be found.\n" "ARGUMENTS\n" - "handle CBF handle. columnname Name of the column\n" - "containing the number. number pointer to the location to\n" - "receive the integer value. defaultvalue Value to use if the\n" - "requested column and value cannot be found.\n" + "handle CBF handle. columnname Name of the column containing the\n" + "number. number pointer to the location to receive the integer\n" + "value. defaultvalue Value to use if the requested column and value\n" + "cannot be found.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -25831,7 +26624,7 @@ static PyMethodDef SwigMethods[] = { "*args : String columnnanme,String Default\n" "\n" "C prototype: int cbf_require_column_value (cbf_handle handle,\n" - " const char *columnname, const char **value,\n" + " const char *columnname, const char **value,\n" " const char *defaultvalue);\n" "\n" "CBFLib documentation:\n" @@ -25840,10 +26633,10 @@ static PyMethodDef SwigMethods[] = { "current row for the column given with the name given by *columnname,\n" "or to the string given by defaultvalue if the item cannot be found.\n" "ARGUMENTS\n" - "handle CBF handle. columnname Name of the column\n" - "containing the number. value pointer to the location to\n" - "receive the value. defaultvalue Value to use if the requested\n" - "column and value cannot be found.\n" + "handle CBF handle. columnname Name of the column containing the\n" + "number. value pointer to the location to receive the value.\n" + "defaultvalue Value to use if the requested column and value cannot\n" + "be found.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -25855,7 +26648,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_require_datablock (cbf_handle handle,\n" - " const char *datablockname);\n" + " const char *datablockname);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -25925,7 +26718,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number\n" "\n" "C prototype: int cbf_require_reference_detector (cbf_handle handle,\n" - " cbf_detector *detector, unsigned int element_number);\n" + " cbf_detector *detector, unsigned int element_number);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -25939,13 +26732,13 @@ static PyMethodDef SwigMethods[] = { "similar, but try to force the creations of missing intermediate\n" "categories needed to construct a detector object.\n" "ARGUMENTS\n" - "handle CBF handle. detector Pointer to the\n" - "destination detector handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category.\n" + "handle CBF handle. detector Pointer to the destination detector\n" + "handle. element_number The number of the detector element counting\n" + "from 0 by order of appearance in the \"diffrn_data_frame \"\n" + "category.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_require_tag_root", _wrap_cbf_handle_struct_require_tag_root, METH_VARARGS, "\n" @@ -25954,7 +26747,7 @@ static PyMethodDef SwigMethods[] = { "*args : String tagname\n" "\n" "C prototype: int cbf_require_tag_root (cbf_handle handle, const char* tagname,\n" - " const char** tagroot);\n" + " const char** tagroot);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -25971,7 +26764,7 @@ static PyMethodDef SwigMethods[] = { "tag root name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_require_value", _wrap_cbf_handle_struct_require_value, METH_VARARGS, "\n" @@ -25980,7 +26773,7 @@ static PyMethodDef SwigMethods[] = { "*args : String defaultvalue\n" "\n" "C prototype: int cbf_require_value (cbf_handle handle, const char **value,\n" - " const char *defaultvalue );\n" + " const char *defaultvalue );\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -26321,27 +27114,27 @@ static PyMethodDef SwigMethods[] = { " int elsign,int dimslow,int dimmid,int dimfast\n" "\n" "C prototype: int cbf_set_3d_image (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, unsigned int compression,\n" - " void *array, size_t elsize, int elsign, size_t ndimslow,\n" - " size_t ndimmid, size_t ndimfast);\n" + " unsigned int element_number, unsigned int compression,\n" + " void *array, size_t elsize, int elsign, size_t ndimslow,\n" + " size_t ndimmid, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -26351,35 +27144,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_3d_image_fs", _wrap_cbf_handle_struct_set_3d_image_fs, METH_VARARGS, "\n" @@ -26389,27 +27153,27 @@ static PyMethodDef SwigMethods[] = { " int elsign,int dimfast,int dimmid,int dimslow\n" "\n" "C prototype: int cbf_set_3d_image_fs(cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, unsigned int compression,\n" - " void *array, size_t elsize, int elsign, size_t ndimfast,\n" - " size_t ndimmid, size_t ndimslow);\n" + " unsigned int element_number, unsigned int compression,\n" + " void *array, size_t elsize, int elsign, size_t ndimfast,\n" + " size_t ndimmid, size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -26419,35 +27183,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_3d_image_sf", _wrap_cbf_handle_struct_set_3d_image_sf, METH_VARARGS, "\n" @@ -26457,27 +27192,27 @@ static PyMethodDef SwigMethods[] = { " int elsign,int dimslow,int dimmid,int dimfast\n" "\n" "C prototype: int cbf_set_3d_image_sf(cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, unsigned int compression,\n" - " void *array, size_t elsize, int elsign, size_t ndimslow,\n" - " size_t ndimmid, size_t ndimfast);\n" + " unsigned int element_number, unsigned int compression,\n" + " void *array, size_t elsize, int elsign, size_t ndimslow,\n" + " size_t ndimmid, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -26487,35 +27222,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_axis_setting", _wrap_cbf_handle_struct_set_axis_setting, METH_VARARGS, "\n" @@ -26524,7 +27230,7 @@ static PyMethodDef SwigMethods[] = { "*args : String axis_id,Float start,Float increment\n" "\n" "C prototype: int cbf_set_axis_setting (cbf_handle handle,\n" - " unsigned int reserved, const char *axis_id, double start,\n" + " unsigned int reserved, const char *axis_id, double start,\n" " double increment);\n" "\n" "CBFLib documentation:\n" @@ -26538,7 +27244,7 @@ static PyMethodDef SwigMethods[] = { "Increment value.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_bin_sizes", _wrap_cbf_handle_struct_set_bin_sizes, METH_VARARGS, "\n" @@ -26547,7 +27253,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number,Float slowbinsize_in,Float fastbinsize_in\n" "\n" "C prototype: int cbf_set_bin_sizes(cbf_handle handle,\n" - " unsigned int element_number, double slowbinsize_in,\n" + " unsigned int element_number, double slowbinsize_in,\n" " double fastbinsize_in);\n" "\n" "CBFLib documentation:\n" @@ -26567,9 +27273,9 @@ static PyMethodDef SwigMethods[] = { "In order to allow for software binning involving fractions of pixels,\n" "the bin sizes are doubles rather than ints.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. slowbinsize Pointer to the\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. slowbinsize Pointer to the\n" "returned number of pixels composing one array element in the\n" "dimension that changes at the second-fastest rate. fastbinsize\n" "Pointer to the returned number of pixels composing one array element\n" @@ -26580,7 +27286,7 @@ static PyMethodDef SwigMethods[] = { "at the fastest rate.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_category_root", _wrap_cbf_handle_struct_set_category_root, METH_VARARGS, "\n" @@ -26589,7 +27295,7 @@ static PyMethodDef SwigMethods[] = { "*args : String categoryname,String categoryroot\n" "\n" "C prototype: int cbf_set_category_root (cbf_handle handle,\n" - " const char* categoryname_in, const char*categoryroot);\n" + " const char* categoryname_in, const char*categoryroot);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -26607,7 +27313,7 @@ static PyMethodDef SwigMethods[] = { "root name. categoryroot_in input category root name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_crystal_id", _wrap_cbf_handle_struct_set_crystal_id, METH_VARARGS, "\n" @@ -26626,7 +27332,7 @@ static PyMethodDef SwigMethods[] = { "handle CBF handle. crystal_id ASCII value.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_current_timestamp", _wrap_cbf_handle_struct_set_current_timestamp, METH_VARARGS, "\n" @@ -26635,7 +27341,7 @@ static PyMethodDef SwigMethods[] = { "*args : Integer timezone\n" "\n" "C prototype: int cbf_set_current_timestamp (cbf_handle handle,\n" - " unsigned int reserved, int timezone);\n" + " unsigned int reserved, int timezone);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -26651,7 +27357,7 @@ static PyMethodDef SwigMethods[] = { "CBF_NOTIMEZONE.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_datablockname", _wrap_cbf_handle_struct_set_datablockname, METH_VARARGS, "\n" @@ -26660,7 +27366,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_set_datablockname (cbf_handle handle,\n" - " const char *datablockname);\n" + " const char *datablockname);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -26684,14 +27390,27 @@ static PyMethodDef SwigMethods[] = { " int timezone,Float precision\n" "\n" "C prototype: int cbf_set_datestamp (cbf_handle handle, unsigned int reserved,\n" - " int year, int month, int day, int hour, int minute,\n" - " double second, int timezone, double precision);\n" + " int year, int month, int day, int hour, int minute,\n" + " double second, int timezone, double precision);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_datestamp sets the collection timestamp in seconds since\n" "January 1 1970 to the value specified by time. The timezone\n" - "difference from UTC\n" + "difference from UTC in minutes is set to timezone. If no timezone is\n" + "desired, timezone should be CBF_NOTIM EZONE. The parameter reserved\n" + "is presently unused and should be set to 0.\n" + "The precision of the new timestamp is specified by the value\n" + "precision in seconds. If precision is 0, the saved timestamp is\n" + "assumed accurate to 1 second.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. time Timestamp in seconds since January 1 1970.\n" + "timezone Timezone difference from UTC in minutes or CBF_NOTIMEZONE.\n" + "precision Timestamp precision in seconds.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_dictionary", _wrap_cbf_handle_struct_set_dictionary, METH_VARARGS, "\n" @@ -26716,7 +27435,7 @@ static PyMethodDef SwigMethods[] = { "dictionary. dictionary_in CBF handle of dcitionary.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_diffrn_id", _wrap_cbf_handle_struct_set_diffrn_id, METH_VARARGS, "\n" @@ -26737,7 +27456,7 @@ static PyMethodDef SwigMethods[] = { "handle CBF handle. diffrn_id ASCII value.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_divergence", _wrap_cbf_handle_struct_set_divergence, METH_VARARGS, "\n" @@ -26746,7 +27465,7 @@ static PyMethodDef SwigMethods[] = { "*args : Float div_x_source,Float div_y_source,Float div_x_y_source\n" "\n" "C prototype: int cbf_set_divergence (cbf_handle handle, double div_x_source,\n" - " double div_y_source, double div_x_y_source);\n" + " double div_y_source, double div_x_y_source);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -26758,7 +27477,7 @@ static PyMethodDef SwigMethods[] = { "div_x_y_source New value of div_x_y_source.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_doublevalue", _wrap_cbf_handle_struct_set_doublevalue, METH_VARARGS, "\n" @@ -26788,20 +27507,20 @@ static PyMethodDef SwigMethods[] = { "*args : Float gain,Float gain_esd\n" "\n" "C prototype: int cbf_set_gain (cbf_handle handle, unsigned int element_number,\n" - " double gain, double gain_esd);\n" + " double gain, double gain_esd);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_gain sets the gain of element number element_number to the\n" "values specified by gain and gain_esd.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. gain New gain value.\n" - "gain_esd New gain_esd value.\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. gain New gain value. gain_esd\n" + "New gain_esd value.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_image", _wrap_cbf_handle_struct_set_image, METH_VARARGS, "\n" @@ -26811,27 +27530,27 @@ static PyMethodDef SwigMethods[] = { " int elsign,int dimslow,int dimfast\n" "\n" "C prototype: int cbf_set_image (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, unsigned int compression,\n" - " void *array, size_t elsize, int elsign, size_t ndimslow,\n" + " unsigned int element_number, unsigned int compression,\n" + " void *array, size_t elsize, int elsign, size_t ndimslow,\n" " size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -26841,35 +27560,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_image_fs", _wrap_cbf_handle_struct_set_image_fs, METH_VARARGS, "\n" @@ -26879,27 +27569,27 @@ static PyMethodDef SwigMethods[] = { " int elsign,int dimfast,int dimslow\n" "\n" "C prototype: int cbf_set_image_fs(cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, unsigned int compression,\n" - " void *array, size_t elsize, int elsign, size_t ndimfast,\n" + " unsigned int element_number, unsigned int compression,\n" + " void *array, size_t elsize, int elsign, size_t ndimfast,\n" " size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -26909,35 +27599,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_image_sf", _wrap_cbf_handle_struct_set_image_sf, METH_VARARGS, "\n" @@ -26947,27 +27608,27 @@ static PyMethodDef SwigMethods[] = { " int elsign,int dimslow,int dimfast\n" "\n" "C prototype: int cbf_set_image_sf(cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, unsigned int compression,\n" - " void *array, size_t elsize, int elsign, size_t ndimslow,\n" + " unsigned int element_number, unsigned int compression,\n" + " void *array, size_t elsize, int elsign, size_t ndimslow,\n" " size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -26977,35 +27638,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_integerarray", _wrap_cbf_handle_struct_set_integerarray, METH_VARARGS, "\n" @@ -27015,8 +27647,8 @@ static PyMethodDef SwigMethods[] = { " int elsigned,int elements\n" "\n" "C prototype: int cbf_set_integerarray (cbf_handle handle,\n" - " unsigned int compression, int binary_id, void *array,\n" - " size_t elsize, int elsigned, size_t elements);\n" + " unsigned int compression, int binary_id, void *array,\n" + " size_t elsize, int elsigned, size_t elements);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -27037,32 +27669,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_integerarray_wdims", _wrap_cbf_handle_struct_set_integerarray_wdims, METH_VARARGS, "\n" @@ -27097,32 +27714,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_integerarray_wdims_fs", _wrap_cbf_handle_struct_set_integerarray_wdims_fs, METH_VARARGS, "\n" @@ -27157,32 +27759,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_integerarray_wdims_sf", _wrap_cbf_handle_struct_set_integerarray_wdims_sf, METH_VARARGS, "\n" @@ -27217,32 +27804,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_integervalue", _wrap_cbf_handle_struct_set_integervalue, METH_VARARGS, "\n" @@ -27269,7 +27841,7 @@ static PyMethodDef SwigMethods[] = { "*args : Float time\n" "\n" "C prototype: int cbf_set_integration_time (cbf_handle handle,\n" - " unsigned int reserved, double time);\n" + " unsigned int reserved, double time);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -27281,7 +27853,7 @@ static PyMethodDef SwigMethods[] = { "other than 0 is invalid. time Integration time in seconds.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_orientation_matrix", _wrap_cbf_handle_struct_set_orientation_matrix, METH_VARARGS, "\n" @@ -27292,7 +27864,7 @@ static PyMethodDef SwigMethods[] = { " Float matrix_8\n" "\n" "C prototype: int cbf_set_orientation_matrix (cbf_handle handle,\n" - " double ub_matrix[9]);\n" + " double ub_matrix[9]);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -27305,11 +27877,11 @@ static PyMethodDef SwigMethods[] = { "cbf_set_orientation_matrix sets the values in the \"diffrn \"\n" "category to the values pointed to by ub_matrix.\n" "ARGUMENTS\n" - "handle CBF handle. ubmatric Source or destination array of 9\n" + "handle CBF handle. ubmatric Source or destination array of 9\n" "doubles giving the orientation matrix parameters.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_overload", _wrap_cbf_handle_struct_set_overload, METH_VARARGS, "\n" @@ -27318,19 +27890,19 @@ static PyMethodDef SwigMethods[] = { "*args : Integer element_number,Float overload\n" "\n" "C prototype: int cbf_set_overload (cbf_handle handle,\n" - " unsigned int element_number, double overload);\n" + " unsigned int element_number, double overload);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_overload sets the overload value of element number\n" "element_number to overload.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. overload New overload value.\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. overload New overload value.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_pixel_size", _wrap_cbf_handle_struct_set_pixel_size, METH_VARARGS, "\n" @@ -27339,23 +27911,22 @@ static PyMethodDef SwigMethods[] = { "*args : Int element_number,Int axis_number,Float pixel size\n" "\n" "C prototype: int cbf_set_pixel_size (cbf_handle handle,\n" - " unsigned int element_number, int axis_number,\n" - " double psize);\n" + " unsigned int element_number, int axis_number, double psize);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the\n" - "\"size \" column of the \"array_structure_list \" category at the\n" - "row which matches axis axis_number of the detector element\n" + ""e;size"e; column of the \"array_structure_list \" category\n" + "at the row which matches axis axis_number of the detector element\n" "element_number converting the double pixel size psize from meters to\n" "millimeters in storing it in the \"size \" column for the axis\n" "axis_number of the detector element element_number. The axis_number\n" "is numbered from 1, starting with the slowest axis.\n" - "cbf_set_pixel_size_fs sets the item in the \"size \" column of the\n" - "\"array_structure_list \" category at the row which matches axis\n" - "axis_number of the detector element element_number converting the\n" - "double pixel size psize from meters to millimeters in storing it in\n" - "the \"size \" column for the axis axis_number of the detector\n" + "cbf_set_pixel_size_fs sets the item in the "e;size"e; column\n" + "of the \"array_structure_list \" category at the row which matches\n" + "axis axis_number of the detector element element_number converting\n" + "the double pixel size psize from meters to millimeters in storing it\n" + "in the \"size \" column for the axis axis_number of the detector\n" "element element_number. The axis_number is numbered from 1, starting\n" "with the fastest axis.\n" "If a negative axis number is given, the order of axes is reversed, so\n" @@ -27368,10 +27939,14 @@ static PyMethodDef SwigMethods[] = { "If the pixel size is not given explcitly in the \"array_element_size\n" "category \", the function returns CBF_NOTFOUND.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. axis_number The number of the\n" - "axis, fastest first, starting from 1.\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. axis_number The number of the\n" + "axis, fastest first, starting from 1. psize The pixel size in\n" + "millimeters.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_pixel_size_fs", _wrap_cbf_handle_struct_set_pixel_size_fs, METH_VARARGS, "\n" @@ -27380,23 +27955,22 @@ static PyMethodDef SwigMethods[] = { "*args : Int element_number,Int axis_number,Float pixel size\n" "\n" "C prototype: int cbf_set_pixel_size_fs(cbf_handle handle,\n" - " unsigned int element_number, int axis_number,\n" - " double psize);\n" + " unsigned int element_number, int axis_number, double psize);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the\n" - "\"size \" column of the \"array_structure_list \" category at the\n" - "row which matches axis axis_number of the detector element\n" + ""e;size"e; column of the \"array_structure_list \" category\n" + "at the row which matches axis axis_number of the detector element\n" "element_number converting the double pixel size psize from meters to\n" "millimeters in storing it in the \"size \" column for the axis\n" "axis_number of the detector element element_number. The axis_number\n" "is numbered from 1, starting with the slowest axis.\n" - "cbf_set_pixel_size_fs sets the item in the \"size \" column of the\n" - "\"array_structure_list \" category at the row which matches axis\n" - "axis_number of the detector element element_number converting the\n" - "double pixel size psize from meters to millimeters in storing it in\n" - "the \"size \" column for the axis axis_number of the detector\n" + "cbf_set_pixel_size_fs sets the item in the "e;size"e; column\n" + "of the \"array_structure_list \" category at the row which matches\n" + "axis axis_number of the detector element element_number converting\n" + "the double pixel size psize from meters to millimeters in storing it\n" + "in the \"size \" column for the axis axis_number of the detector\n" "element element_number. The axis_number is numbered from 1, starting\n" "with the fastest axis.\n" "If a negative axis number is given, the order of axes is reversed, so\n" @@ -27409,10 +27983,14 @@ static PyMethodDef SwigMethods[] = { "If the pixel size is not given explcitly in the \"array_element_size\n" "category \", the function returns CBF_NOTFOUND.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. axis_number The number of the\n" - "axis, fastest first, starting from 1.\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. axis_number The number of the\n" + "axis, fastest first, starting from 1. psize The pixel size in\n" + "millimeters.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_pixel_size_sf", _wrap_cbf_handle_struct_set_pixel_size_sf, METH_VARARGS, "\n" @@ -27421,23 +27999,22 @@ static PyMethodDef SwigMethods[] = { "*args : Int element_number,Int axis_number,Float pixel size\n" "\n" "C prototype: int cbf_set_pixel_size_sf(cbf_handle handle,\n" - " unsigned int element_number, int axis_number,\n" - " double psize);\n" + " unsigned int element_number, int axis_number, double psize);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the\n" - "\"size \" column of the \"array_structure_list \" category at the\n" - "row which matches axis axis_number of the detector element\n" + ""e;size"e; column of the \"array_structure_list \" category\n" + "at the row which matches axis axis_number of the detector element\n" "element_number converting the double pixel size psize from meters to\n" "millimeters in storing it in the \"size \" column for the axis\n" "axis_number of the detector element element_number. The axis_number\n" "is numbered from 1, starting with the slowest axis.\n" - "cbf_set_pixel_size_fs sets the item in the \"size \" column of the\n" - "\"array_structure_list \" category at the row which matches axis\n" - "axis_number of the detector element element_number converting the\n" - "double pixel size psize from meters to millimeters in storing it in\n" - "the \"size \" column for the axis axis_number of the detector\n" + "cbf_set_pixel_size_fs sets the item in the "e;size"e; column\n" + "of the \"array_structure_list \" category at the row which matches\n" + "axis axis_number of the detector element element_number converting\n" + "the double pixel size psize from meters to millimeters in storing it\n" + "in the \"size \" column for the axis axis_number of the detector\n" "element element_number. The axis_number is numbered from 1, starting\n" "with the fastest axis.\n" "If a negative axis number is given, the order of axes is reversed, so\n" @@ -27450,10 +28027,14 @@ static PyMethodDef SwigMethods[] = { "If the pixel size is not given explcitly in the \"array_element_size\n" "category \", the function returns CBF_NOTFOUND.\n" "ARGUMENTS\n" - "handle CBF handle. element_number The number of the\n" - "detector element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. axis_number The number of the\n" - "axis, fastest first, starting from 1.\n" + "handle CBF handle. element_number The number of the detector\n" + "element counting from 0 by order of appearance in the\n" + "\"diffrn_data_frame \" category. axis_number The number of the\n" + "axis, fastest first, starting from 1. psize The pixel size in\n" + "millimeters.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_polarization", _wrap_cbf_handle_struct_set_polarization, METH_VARARGS, "\n" @@ -27462,8 +28043,7 @@ static PyMethodDef SwigMethods[] = { "*args : Float polarizn_source_ratio,Float polarizn_source_norm\n" "\n" "C prototype: int cbf_set_polarization (cbf_handle handle,\n" - " double polarizn_source_ratio,\n" - " double polarizn_source_norm);\n" + " double polarizn_source_ratio, double polarizn_source_norm);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -27475,7 +28055,7 @@ static PyMethodDef SwigMethods[] = { "polarizn_source_norm.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_real_3d_image", _wrap_cbf_handle_struct_set_real_3d_image, METH_VARARGS, "\n" @@ -27485,27 +28065,27 @@ static PyMethodDef SwigMethods[] = { " int dimslow,int dimmid,int dimfast\n" "\n" "C prototype: int cbf_set_real_3d_image (cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " unsigned int compression, void *array,size_t elsize,\n" - " size_t ndimslow, size_t ndimmid, size_t ndimfast);\n" + " unsigned int reserved, unsigned int element_number,\n" + " unsigned int compression, void *array,size_t elsize,\n" + " size_t ndimslow, size_t ndimmid, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -27515,35 +28095,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_real_3d_image_fs", _wrap_cbf_handle_struct_set_real_3d_image_fs, METH_VARARGS, "\n" @@ -27553,27 +28104,27 @@ static PyMethodDef SwigMethods[] = { " int dimfast,int dimmid,int dimslow\n" "\n" "C prototype: int cbf_set_real_3d_image_fs(cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " unsigned int compression, void *array,size_t elsize,\n" - " size_t ndimfast, size_t ndimmid, size_t ndimslow);\n" + " unsigned int reserved, unsigned int element_number,\n" + " unsigned int compression, void *array,size_t elsize,\n" + " size_t ndimfast, size_t ndimmid, size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -27583,35 +28134,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_real_3d_image_sf", _wrap_cbf_handle_struct_set_real_3d_image_sf, METH_VARARGS, "\n" @@ -27621,27 +28143,27 @@ static PyMethodDef SwigMethods[] = { " int dimslow,int dimmid,int dimfast\n" "\n" "C prototype: int cbf_set_real_3d_image_sf(cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " unsigned int compression, void *array,size_t elsize,\n" - " size_t ndimslow, size_t ndimmid, size_t ndimfast);\n" + " unsigned int reserved, unsigned int element_number,\n" + " unsigned int compression, void *array,size_t elsize,\n" + " size_t ndimslow, size_t ndimmid, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -27651,35 +28173,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_real_image", _wrap_cbf_handle_struct_set_real_image, METH_VARARGS, "\n" @@ -27689,27 +28182,27 @@ static PyMethodDef SwigMethods[] = { " int dimslow,int dimfast\n" "\n" "C prototype: int cbf_set_real_image (cbf_handle handle, unsigned int reserved,\n" - " unsigned int element_number, unsigned int compression,\n" - " void *array,size_t elsize, size_t ndimslow,\n" + " unsigned int element_number, unsigned int compression,\n" + " void *array,size_t elsize, size_t ndimslow,\n" " size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -27719,35 +28212,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_real_image_fs", _wrap_cbf_handle_struct_set_real_image_fs, METH_VARARGS, "\n" @@ -27757,27 +28221,27 @@ static PyMethodDef SwigMethods[] = { " int dimfast,int dimslow\n" "\n" "C prototype: int cbf_set_real_image_fs(cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " unsigned int compression, void *array,size_t elsize,\n" + " unsigned int reserved, unsigned int element_number,\n" + " unsigned int compression, void *array,size_t elsize,\n" " size_t ndimfast, size_t ndimslow);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -27787,35 +28251,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_real_image_sf", _wrap_cbf_handle_struct_set_real_image_sf, METH_VARARGS, "\n" @@ -27825,27 +28260,27 @@ static PyMethodDef SwigMethods[] = { " int dimslow,int dimfast\n" "\n" "C prototype: int cbf_set_real_image_sf(cbf_handle handle,\n" - " unsigned int reserved, unsigned int element_number,\n" - " unsigned int compression, void *array,size_t elsize,\n" + " unsigned int reserved, unsigned int element_number,\n" + " unsigned int compression, void *array,size_t elsize,\n" " size_t ndimslow, size_t ndimfast);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image\n" "array for element number element_number. The array consists of\n" - "ndimfast×ndimslow elements of elsize bytes each, starting at array.\n" + "ndimfastndimslow elements of elsize bytes each, starting at array.\n" "The elements are signed if elsign is non-zero and unsigned otherwise.\n" "cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf\n" "write the image array for element number element_number. The array\n" - "consists of ndimfast×ndimslow IEEE double or float elements of elsize\n" + "consists of ndimfastndimslow IEEE double or float elements of elsize\n" "bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs\n" "and cbf_set_3d_image_sf write the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow\n" + "element_number. The array consists of ndimfastndimmidndimslow\n" "elements of elsize bytes each, starting at array. The elements are\n" "signed if elsign is non-0 and unsigned otherwise.\n" "cbf_set_real_3d_image, cbf_set_real_3d_image_fs and\n" "cbf_set_real_3d_image_sf writes the 3D image array for element number\n" - "element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE\n" + "element_number. The array consists of ndimfastndimmidndimslow IEEE\n" "double or float elements of elsize bytes each, starting at array.\n" "The _fs calls give the dimensions in a fast-to-slow order. The calls\n" "with no suffix and the calls _sf calls give the dimensions in\n" @@ -27855,35 +28290,6 @@ static PyMethodDef SwigMethods[] = { "array is 2-dimensional and the 3D calls are used, ndimslow and\n" "ndimmid should be used for the array dimensions and ndimfast should\n" "be set to 1.\n" - "The array will be compressed using the compression scheme specifed by\n" - "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - "Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "The values compressed are limited to 64 bits. If any element in the\n" - "array is larger than 64 bits, the value compressed is the nearest\n" - "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for\n" - "cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof\n" - "(int), sizeof(double) or sizeof(float), the function returns\n" - "CBF_ARGUMENT.\n" - "The parameter reserved is presently unused and should be set to 0.\n" - "ARGUMENTS\n" - "handle CBF handle. reserved Unused. Any value other\n" - "than 0 is invalid. element_number The number of the detector\n" - "element counting from 0 by order of appearance in the\n" - "\"diffrn_data_frame \" category. compression Compression type.\n" - "array Pointer to the image array. elsize Size in\n" - "bytes of each image array element. elsigned Set to non-0 if\n" - "the image array elements are signed. ndimslow Slowest array\n" - "dimension. ndimmid Second slowest array dimension. ndimfast\n" - " Fastest array dimension.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" "\n" ""}, { "cbf_handle_struct_set_realarray", _wrap_cbf_handle_struct_set_realarray, METH_VARARGS, "\n" @@ -27915,32 +28321,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_realarray_wdims", _wrap_cbf_handle_struct_set_realarray_wdims, METH_VARARGS, "\n" @@ -27951,10 +28342,10 @@ static PyMethodDef SwigMethods[] = { " int padding\n" "\n" "C prototype: int cbf_set_realarray_wdims (cbf_handle handle,\n" - " unsigned int compression, int binary_id, void *array,\n" - " size_t elsize, size_t elements, const char *byteorder,\n" - " size_t dimfast, size_t dimmid, size_t dimslow,\n" - " size_t padding);\n" + " unsigned int compression, int binary_id, void *array,\n" + " size_t elsize, size_t elements, const char *byteorder,\n" + " size_t dimfast, size_t dimmid, size_t dimslow,\n" + " size_t padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -27975,32 +28366,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_realarray_wdims_fs", _wrap_cbf_handle_struct_set_realarray_wdims_fs, METH_VARARGS, "\n" @@ -28012,9 +28388,9 @@ static PyMethodDef SwigMethods[] = { "\n" "C prototype: int cbf_set_realarray_wdims_fs (cbf_handle handle,\n" " unsigned int compression, int binary_id, void *array,\n" - " size_t elsize, size_t elements, const char *byteorder,\n" - " size_t dimfast, size_t dimmid, size_t dimslow,\n" - " size_t padding);\n" + " size_t elsize, size_t elements, const char *byteorder,\n" + " size_t dimfast, size_t dimmid, size_t dimslow,\n" + " size_t padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -28035,32 +28411,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_realarray_wdims_sf", _wrap_cbf_handle_struct_set_realarray_wdims_sf, METH_VARARGS, "\n" @@ -28072,9 +28433,9 @@ static PyMethodDef SwigMethods[] = { "\n" "C prototype: int cbf_set_realarray_wdims_sf (cbf_handle handle,\n" " unsigned int compression, int binary_id, void *array,\n" - " size_t elsize, size_t elements, const char *byteorder,\n" - " size_t dimslow, size_t dimmid, size_t dimfast,\n" - " size_t padding);\n" + " size_t elsize, size_t elements, const char *byteorder,\n" + " size_t dimslow, size_t dimmid, size_t dimfast,\n" + " size_t padding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -28095,32 +28456,17 @@ static PyMethodDef SwigMethods[] = { "the post data padding to be used.\n" "The array will be compressed using the compression scheme specifed by\n" "compression. Currently, the available schemes are:\n" - "CBF_CANONICAL Canonical-code compression (section 3.3.1)\n" - "CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2\n" - " CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET\n" - " Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" - "\"nibble_offset \" compression. CBF_NONE No compression.\n" - "NOTE: This scheme is by far the slowest of the four and uses much\n" - "more disk space. It is intended for routine use with small arrays\n" - "only. With large arrays (like images) it should be used only for\n" - "debugging.\n" + "CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED\n" + " CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style\n" + "packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple\n" + "\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple\n" + "\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This\n" + "scheme is by far the slowest of the four and uses much more disk\n" + "space. It is intended for routine use with small arrays only. With\n" + "large arrays (like images) it should be used only for debugging.\n" "The values compressed are limited to 64 bits. If any element in the\n" "array is larger than 64 bits, the value compressed is the nearest\n" "64-bit value.\n" - "Currently, the source array must consist of chars, shorts or ints\n" - "(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or\n" - "floats for cbf_set_realarray. If elsize is not equal to sizeof\n" - "(char), sizeof (short) or sizeof (int), the function returns\n" - "CBF_ARGUMENT.\n" - "ARGUMENTS\n" - "handle CBF handle. compression Compression method to use.\n" - "binary_id Integer binary identifier. array Pointer to the\n" - "source array. elsize Size in bytes of each source array\n" - "element. elsigned Set to non-0 if the source array elements are\n" - "signed. elements: The number of elements in the array.\n" - "RETURN VALUE\n" - "Returns an error code on failure or 0 for success.\n" - "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_set_reciprocal_cell", _wrap_cbf_handle_struct_set_reciprocal_cell, METH_VARARGS, "\n" @@ -28129,19 +28475,19 @@ static PyMethodDef SwigMethods[] = { "*args : double cell[6]\n" "\n" "C prototype: int cbf_set_reciprocal_cell (cbf_handle handle, double cell[6],\n" - " double cell_esd[6] );\n" + " double cell_esd[6] );\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_reciprocal_cell sets the reciprocal cell parameters to the\n" "double values given in cell[0:2] for the reciprocal cell edge lengths\n" - "a^*, b^* and c^* in Ångstroms^-1, the double values given in\n" - "cell[3:5] for the reciprocal cell angles α^*, β^* and γ^* in degrees,\n" - "the double values given in cell_esd[0:2] for the estimated strandard\n" + "a^*, b^* and c^* in ngstroms^-1, the double values given in cell[3:5]\n" + "for the reciprocal cell angles a^*, b^* and g^* in degrees, the\n" + "double values given in cell_esd[0:2] for the estimated strandard\n" "deviations of the reciprocal cell edge lengths a^*, b^* and c^* in\n" - "Ångstroms, and the double values given in cell_esd[3:5] for the\n" - "estimated standard deviations of the reciprocal cell angles α^*, β^*\n" - "and γ^* in degrees.\n" + "ngstroms, and the double values given in cell_esd[3:5] for the\n" + "estimated standard deviations of the reciprocal cell angles a^*, b^*\n" + "and g^* in degrees.\n" "The values are placed in the first row of the \"cell \" category. If\n" "no value has been given for \"_cell.entry_id \", it is set to the\n" "value of the \"diffrn.id \" entry of the current data block.\n" @@ -28151,9 +28497,9 @@ static PyMethodDef SwigMethods[] = { "If the \"cell \" category is not present, it is created. If any of\n" "the necessary columns are not present, they are created.\n" "ARGUMENTS\n" - "handle CBF handle. cell Pointer to the array of 6 doubles\n" - "for the reciprocal cell parameters. cell_esd Pointer to the array\n" - "of 6 doubles for the reciprocal cell parameter esds.\n" + "handle CBF handle. cell Pointer to the array of 6 doubles for the\n" + "reciprocal cell parameters. cell_esd Pointer to the array of 6\n" + "doubles for the reciprocal cell parameter esds.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -28165,19 +28511,19 @@ static PyMethodDef SwigMethods[] = { "*args : double cell_esd[6]\n" "\n" "C prototype: int cbf_set_reciprocal_cell (cbf_handle handle, double cell[6],\n" - " double cell_esd[6] );\n" + " double cell_esd[6] );\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_reciprocal_cell sets the reciprocal cell parameters to the\n" "double values given in cell[0:2] for the reciprocal cell edge lengths\n" - "a^*, b^* and c^* in Ångstroms^-1, the double values given in\n" - "cell[3:5] for the reciprocal cell angles α^*, β^* and γ^* in degrees,\n" - "the double values given in cell_esd[0:2] for the estimated strandard\n" + "a^*, b^* and c^* in ngstroms^-1, the double values given in cell[3:5]\n" + "for the reciprocal cell angles a^*, b^* and g^* in degrees, the\n" + "double values given in cell_esd[0:2] for the estimated strandard\n" "deviations of the reciprocal cell edge lengths a^*, b^* and c^* in\n" - "Ångstroms, and the double values given in cell_esd[3:5] for the\n" - "estimated standard deviations of the reciprocal cell angles α^*, β^*\n" - "and γ^* in degrees.\n" + "ngstroms, and the double values given in cell_esd[3:5] for the\n" + "estimated standard deviations of the reciprocal cell angles a^*, b^*\n" + "and g^* in degrees.\n" "The values are placed in the first row of the \"cell \" category. If\n" "no value has been given for \"_cell.entry_id \", it is set to the\n" "value of the \"diffrn.id \" entry of the current data block.\n" @@ -28187,9 +28533,9 @@ static PyMethodDef SwigMethods[] = { "If the \"cell \" category is not present, it is created. If any of\n" "the necessary columns are not present, they are created.\n" "ARGUMENTS\n" - "handle CBF handle. cell Pointer to the array of 6 doubles\n" - "for the reciprocal cell parameters. cell_esd Pointer to the array\n" - "of 6 doubles for the reciprocal cell parameter esds.\n" + "handle CBF handle. cell Pointer to the array of 6 doubles for the\n" + "reciprocal cell parameters. cell_esd Pointer to the array of 6\n" + "doubles for the reciprocal cell parameter esds.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -28201,7 +28547,7 @@ static PyMethodDef SwigMethods[] = { "*args :\n" "\n" "C prototype: int cbf_set_saveframename (cbf_handle handle,\n" - " const char *saveframename);\n" + " const char *saveframename);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -28224,7 +28570,7 @@ static PyMethodDef SwigMethods[] = { "*args : String tagname,String categoryname_in\n" "\n" "C prototype: int cbf_set_tag_category (cbf_handle handle, const char* tagname,\n" - " const char* categoryname_in);\n" + " const char* categoryname_in);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -28238,7 +28584,7 @@ static PyMethodDef SwigMethods[] = { "categoryname_in input category name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_tag_root", _wrap_cbf_handle_struct_set_tag_root, METH_VARARGS, "\n" @@ -28247,7 +28593,7 @@ static PyMethodDef SwigMethods[] = { "*args : String tagname,String tagroot_in\n" "\n" "C prototype: int cbf_set_tag_root (cbf_handle handle, const char* tagname,\n" - " const char*tagroot_in);\n" + " const char*tagroot_in);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -28264,7 +28610,7 @@ static PyMethodDef SwigMethods[] = { "tag root name.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_timestamp", _wrap_cbf_handle_struct_set_timestamp, METH_VARARGS, "\n" @@ -28273,13 +28619,26 @@ static PyMethodDef SwigMethods[] = { "*args : Float time,Integer timezone,Float precision\n" "\n" "C prototype: int cbf_set_timestamp (cbf_handle handle, unsigned int reserved,\n" - " double time, int timezone, double precision);\n" + " double time, int timezone, double precision);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_timestamp sets the collection timestamp in seconds since\n" "January 1 1970 to the value specified by time. The timezone\n" - "difference from UTC\n" + "difference from UTC in minutes is set to timezone. If no timezone is\n" + "desired, timezone should be CBF_NOTIM EZONE. The parameter reserved\n" + "is presently unused and should be set to 0.\n" + "The precision of the new timestamp is specified by the value\n" + "precision in seconds. If precision is 0, the saved timestamp is\n" + "assumed accurate to 1 second.\n" + "ARGUMENTS\n" + "handle CBF handle. reserved Unused. Any value other than 0 is\n" + "invalid. time Timestamp in seconds since January 1 1970.\n" + "timezone Timezone difference from UTC in minutes or\n" + "CBF_NOTIMEZONE. precision Timestamp precision in seconds.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_set_typeofvalue", _wrap_cbf_handle_struct_set_typeofvalue, METH_VARARGS, "\n" @@ -28329,18 +28688,17 @@ static PyMethodDef SwigMethods[] = { "*args : double cell[6]\n" "\n" "C prototype: int cbf_set_unit_cell (cbf_handle handle, double cell[6],\n" - " double cell_esd[6] );\n" + " double cell_esd[6] );\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_unit_cell sets the cell parameters to the double values given\n" - "in cell[0:2] for the cell edge lengths a, b and c in Ångstroms, the\n" - "double values given in cell[3:5] for the cell angles α, β and γ in\n" + "in cell[0:2] for the cell edge lengths a, b and c in ngstroms, the\n" + "double values given in cell[3:5] for the cell angles a, b and g in\n" "degrees, the double values given in cell_esd[0:2] for the estimated\n" - "strandard deviations of the cell edge lengths a, b and c in\n" - "Ångstroms, and the double values given in cell_esd[3:5] for the\n" - "estimated standard deviations of the the cell angles α, β and γ in\n" - "degrees.\n" + "strandard deviations of the cell edge lengths a, b and c in ngstroms,\n" + "and the double values given in cell_esd[3:5] for the estimated\n" + "standard deviations of the the cell angles a, b and g in degrees.\n" "The values are placed in the first row of the \"cell \" category. If\n" "no value has been given for \"_cell.entry_id \", it is set to the\n" "value of the \"diffrn.id \" entry of the current data block.\n" @@ -28350,9 +28708,9 @@ static PyMethodDef SwigMethods[] = { "If the \"cell \" category is not present, it is created. If any of\n" "the necessary columns are not present, they are created.\n" "ARGUMENTS\n" - "handle CBF handle. cell Pointer to the array of 6 doubles\n" - "for the cell parameters. cell_esd Pointer to the array of 6 doubles\n" - "for the cell parameter esds.\n" + "handle CBF handle. cell Pointer to the array of 6 doubles for the\n" + "cell parameters. cell_esd Pointer to the array of 6 doubles for the\n" + "cell parameter esds.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -28364,18 +28722,17 @@ static PyMethodDef SwigMethods[] = { "*args : double cell_esd[6]\n" "\n" "C prototype: int cbf_set_unit_cell (cbf_handle handle, double cell[6],\n" - " double cell_esd[6] );\n" + " double cell_esd[6] );\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" "cbf_set_unit_cell sets the cell parameters to the double values given\n" - "in cell[0:2] for the cell edge lengths a, b and c in Ångstroms, the\n" - "double values given in cell[3:5] for the cell angles α, β and γ in\n" + "in cell[0:2] for the cell edge lengths a, b and c in ngstroms, the\n" + "double values given in cell[3:5] for the cell angles a, b and g in\n" "degrees, the double values given in cell_esd[0:2] for the estimated\n" - "strandard deviations of the cell edge lengths a, b and c in\n" - "Ångstroms, and the double values given in cell_esd[3:5] for the\n" - "estimated standard deviations of the the cell angles α, β and γ in\n" - "degrees.\n" + "strandard deviations of the cell edge lengths a, b and c in ngstroms,\n" + "and the double values given in cell_esd[3:5] for the estimated\n" + "standard deviations of the the cell angles a, b and g in degrees.\n" "The values are placed in the first row of the \"cell \" category. If\n" "no value has been given for \"_cell.entry_id \", it is set to the\n" "value of the \"diffrn.id \" entry of the current data block.\n" @@ -28385,9 +28742,9 @@ static PyMethodDef SwigMethods[] = { "If the \"cell \" category is not present, it is created. If any of\n" "the necessary columns are not present, they are created.\n" "ARGUMENTS\n" - "handle CBF handle. cell Pointer to the array of 6 doubles\n" - "for the cell parameters. cell_esd Pointer to the array of 6 doubles\n" - "for the cell parameter esds.\n" + "handle CBF handle. cell Pointer to the array of 6 doubles for the\n" + "cell parameters. cell_esd Pointer to the array of 6 doubles for the\n" + "cell parameter esds.\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" "SEE ALSO\n" @@ -28420,12 +28777,12 @@ static PyMethodDef SwigMethods[] = { "\n" "CBFLib documentation:\n" "DESCRIPTION\n" - "cbf_set_wavelength sets the current wavelength in Å to wavelength.\n" + "cbf_set_wavelength sets the current wavelength in to wavelength.\n" "ARGUMENTS\n" - "handle CBF handle. wavelength Wavelength in Å.\n" + "handle CBF handle. wavelength Wavelength in .\n" "RETURN VALUE\n" "Returns an error code on failure or 0 for success.\n" - "----------------------------------------------------------------------\n" + "__________________________________________________________________\n" "\n" ""}, { "cbf_handle_struct_write_file", _wrap_cbf_handle_struct_write_file, METH_VARARGS, "\n" @@ -28451,6 +28808,54 @@ static PyMethodDef SwigMethods[] = { "non-0 to indicate to CBFlib that the file can be used as a buffer to\n" "conserve disk space. If the file is not random-access or not\n" "readable, readable must be 0.\n" + "If readable is non-0, CBFlib will close the file when it is no longer\n" + "required, otherwise this is the responsibility of the program.\n" + "ciforcbf selects the format in which the binary sections are written:\n" + "CIF Write an imgCIF file. CBF Write a CBF file (default).\n" + "flags selects the type of header used in CBF binary sections, selects\n" + "whether message digests are generated, and controls the style of\n" + "output. The value of flags can be a logical OR of any of:\n" + "MIME_HEADERS Use MIME-type headers (default). MIME_NOHEADERS Use\n" + "a simple ASCII headers. MSG_DIGEST Generate message digests for\n" + "binary data validation. MSG_NODIGEST Do not generate message\n" + "digests (default). PARSE_BRACKETS Do not convert bracketed strings\n" + "to text fields (default). PARSE_LIBERAL_BRACKETS Do not convert\n" + "bracketed strings to text fields (default). PARSE_NOBRACKETS\n" + "Convert bracketed strings to text fields (default).\n" + "PARSE_TRIPLE_QUOTES Do not convert triple-quoted strings to text\n" + "fields (default). PARSE_NOTRIPLE_QUOTES Convert triple-quoted\n" + "strings to text fields (default). PAD_1K Pad binary sections with\n" + "1023 nulls. PAD_2K Pad binary sections with 2047 nulls. PAD_4K\n" + "Pad binary sections with 4095 nulls.\n" + "Note that on output, the types \"prns&, \"brcs \" and \"bkts \"\n" + "will be converted to \"text \" fields if PARSE_NOBRACKETS has been\n" + "set flags, and that the types \"tsqs \" and \"tdqs \" will be\n" + "converted to \"text \" fields if the flag PARSE_NOTRIPLE_QUOTES has\n" + "been set in the flags. It is an error to set PARSE_NOBRACKETS and to\n" + "set either PARSE_BRACKETS or PARSE_LIBERAL_BRACKETS. It is an error\n" + "to set both PARSE_NOTRIPLE_QUOTES and PARSE_TRIPLE_QUOTES.\n" + "encoding selects the type of encoding used for binary sections and\n" + "the type of line-termination in imgCIF files. The value can be a\n" + "logical OR of any of:\n" + "ENC_BASE64 Use BASE64 encoding (default). ENC_QP Use\n" + "QUOTED-PRINTABLE encoding. ENC_BASE8 Use BASE8 (octal) encoding.\n" + "ENC_BASE10 Use BASE10 (decimal) encoding. ENC_BASE16 Use BASE16\n" + "(hexadecimal) encoding. ENC_FORWARD For BASE8, BASE10 or BASE16\n" + "encoding, map bytes to words forward (1234) (default on little-endian\n" + "machines). ENC_BACKWARD Map bytes to words backward (4321) (default\n" + "on big-endian machines). ENC_CRTERM Terminate lines with CR.\n" + "ENC_LFTERM Terminate lines with LF (default).\n" + "ARGUMENTS\n" + "handle CBF handle. file Pointer to a file descriptor. readable\n" + "If non-0: this file is random-access and readable and can be used as\n" + "a buffer. ciforcbf Selects the format in which the binary sections\n" + "are written (CIF/CBF). headers Selects the type of header in CBF\n" + "binary sections and message digest generation. encoding Selects the\n" + "type of encoding used for binary sections and the type of\n" + "line-termination in imgCIF files.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_write_widefile", _wrap_cbf_handle_struct_write_widefile, METH_VARARGS, "\n" @@ -28459,7 +28864,7 @@ static PyMethodDef SwigMethods[] = { "*args : String filename,Integer ciforcbf,Integer Headers,Integer encoding\n" "\n" "C prototype: int cbf_write_widefile (cbf_handle handle, FILE *file,\n" - " int readable, int ciforcbf, int flags, int encoding);\n" + " int readable, int ciforcbf, int flags, int encoding);\n" "\n" "CBFLib documentation:\n" "DESCRIPTION\n" @@ -28476,6 +28881,54 @@ static PyMethodDef SwigMethods[] = { "non-0 to indicate to CBFlib that the file can be used as a buffer to\n" "conserve disk space. If the file is not random-access or not\n" "readable, readable must be 0.\n" + "If readable is non-0, CBFlib will close the file when it is no longer\n" + "required, otherwise this is the responsibility of the program.\n" + "ciforcbf selects the format in which the binary sections are written:\n" + "CIF Write an imgCIF file. CBF Write a CBF file (default).\n" + "flags selects the type of header used in CBF binary sections, selects\n" + "whether message digests are generated, and controls the style of\n" + "output. The value of flags can be a logical OR of any of:\n" + "MIME_HEADERS Use MIME-type headers (default). MIME_NOHEADERS Use\n" + "a simple ASCII headers. MSG_DIGEST Generate message digests for\n" + "binary data validation. MSG_NODIGEST Do not generate message\n" + "digests (default). PARSE_BRACKETS Do not convert bracketed strings\n" + "to text fields (default). PARSE_LIBERAL_BRACKETS Do not convert\n" + "bracketed strings to text fields (default). PARSE_NOBRACKETS\n" + "Convert bracketed strings to text fields (default).\n" + "PARSE_TRIPLE_QUOTES Do not convert triple-quoted strings to text\n" + "fields (default). PARSE_NOTRIPLE_QUOTES Convert triple-quoted\n" + "strings to text fields (default). PAD_1K Pad binary sections with\n" + "1023 nulls. PAD_2K Pad binary sections with 2047 nulls. PAD_4K\n" + "Pad binary sections with 4095 nulls.\n" + "Note that on output, the types \"prns&, \"brcs \" and \"bkts \"\n" + "will be converted to \"text \" fields if PARSE_NOBRACKETS has been\n" + "set flags, and that the types \"tsqs \" and \"tdqs \" will be\n" + "converted to \"text \" fields if the flag PARSE_NOTRIPLE_QUOTES has\n" + "been set in the flags. It is an error to set PARSE_NOBRACKETS and to\n" + "set either PARSE_BRACKETS or PARSE_LIBERAL_BRACKETS. It is an error\n" + "to set both PARSE_NOTRIPLE_QUOTES and PARSE_TRIPLE_QUOTES.\n" + "encoding selects the type of encoding used for binary sections and\n" + "the type of line-termination in imgCIF files. The value can be a\n" + "logical OR of any of:\n" + "ENC_BASE64 Use BASE64 encoding (default). ENC_QP Use\n" + "QUOTED-PRINTABLE encoding. ENC_BASE8 Use BASE8 (octal) encoding.\n" + "ENC_BASE10 Use BASE10 (decimal) encoding. ENC_BASE16 Use BASE16\n" + "(hexadecimal) encoding. ENC_FORWARD For BASE8, BASE10 or BASE16\n" + "encoding, map bytes to words forward (1234) (default on little-endian\n" + "machines). ENC_BACKWARD Map bytes to words backward (4321) (default\n" + "on big-endian machines). ENC_CRTERM Terminate lines with CR.\n" + "ENC_LFTERM Terminate lines with LF (default).\n" + "ARGUMENTS\n" + "handle CBF handle. file Pointer to a file descriptor. readable\n" + "If non-0: this file is random-access and readable and can be used as\n" + "a buffer. ciforcbf Selects the format in which the binary sections\n" + "are written (CIF/CBF). headers Selects the type of header in CBF\n" + "binary sections and message digest generation. encoding Selects the\n" + "type of encoding used for binary sections and the type of\n" + "line-termination in imgCIF files.\n" + "RETURN VALUE\n" + "Returns an error code on failure or 0 for success.\n" + "SEE ALSO\n" "\n" ""}, { "cbf_handle_struct_swigregister", cbf_handle_struct_swigregister, METH_O, NULL}, @@ -28483,36 +28936,32 @@ static PyMethodDef SwigMethods[] = { { NULL, NULL, 0, NULL } }; -static PyMethodDef SwigMethods_proxydocs[] = { - { NULL, NULL, 0, NULL } -}; - /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_shortArrayTo_p_short(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((short *) ((shortArray *) x)); +static void *_p_doubleArrayTo_p_double(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((double *) ((doubleArray *) x)); } -static void *_p_longArrayTo_p_long(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((long *) ((longArray *) x)); +static void *_p_a_4__doubleArrayTo_p_a_4__double(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((double (*)[4]) ((doubleArray (*)[4]) x)); } static void *_p_intArrayTo_p_int(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((int *) ((intArray *) x)); } -static void *_p_a_4__doubleArrayTo_p_a_4__double(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((double (*)[4]) ((doubleArray (*)[4]) x)); +static void *_p_longArrayTo_p_long(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((long *) ((longArray *) x)); } -static void *_p_doubleArrayTo_p_double(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((double *) ((doubleArray *) x)); +static void *_p_shortArrayTo_p_short(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((short *) ((shortArray *) x)); } -static swig_type_info _swigt__p_CBF_NODETYPE = {"_p_CBF_NODETYPE", "enum CBF_NODETYPE *|CBF_NODETYPE *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CBF_NODETYPE = {"_p_CBF_NODETYPE", "CBF_NODETYPE *|enum CBF_NODETYPE *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_4__double = {"_p_a_4__double", "double (*)[4]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_4__doubleArray = {"_p_a_4__doubleArray", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_cbf_axis_struct = {"_p_cbf_axis_struct", "cbf_axis_struct *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_cbf_detector_struct = {"_p_cbf_detector_struct", "cbf_detector|cbf_detector_struct *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cbf_handle_struct = {"_p_cbf_handle_struct", "cbf_handle|cbf_handle_struct *|handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cbf_handle_struct = {"_p_cbf_handle_struct", "cbf_handle|handle *|cbf_handle_struct *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_cbf_node = {"_p_cbf_node", "cbf_node *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cbf_positioner_struct = {"_p_cbf_positioner_struct", "cbf_positioner|cbf_goniometer|cbf_positioner_struct *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cbf_positioner_struct = {"_p_cbf_positioner_struct", "cbf_goniometer|cbf_positioner|cbf_positioner_struct *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_doubleArray = {"_p_doubleArray", "doubleArray *", 0, 0, (void*)0, 0}; @@ -28551,21 +29000,21 @@ static swig_type_info *swig_type_initial[] = { static swig_cast_info _swigc__p_CBF_NODETYPE[] = { {&_swigt__p_CBF_NODETYPE, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_4__doubleArray[] = {{&_swigt__p_a_4__doubleArray, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_4__double[] = { {&_swigt__p_a_4__doubleArray, _p_a_4__doubleArrayTo_p_a_4__double, 0, 0}, {&_swigt__p_a_4__double, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_4__double[] = { {&_swigt__p_a_4__double, 0, 0, 0}, {&_swigt__p_a_4__doubleArray, _p_a_4__doubleArrayTo_p_a_4__double, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_cbf_axis_struct[] = { {&_swigt__p_cbf_axis_struct, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_cbf_detector_struct[] = { {&_swigt__p_cbf_detector_struct, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_cbf_handle_struct[] = { {&_swigt__p_cbf_handle_struct, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_cbf_node[] = { {&_swigt__p_cbf_node, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_cbf_positioner_struct[] = { {&_swigt__p_cbf_positioner_struct, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_double[] = { {&_swigt__p_doubleArray, _p_doubleArrayTo_p_double, 0, 0}, {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0}, {&_swigt__p_doubleArray, _p_doubleArrayTo_p_double, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_doubleArray[] = { {&_swigt__p_doubleArray, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_int[] = { {&_swigt__p_intArray, _p_intArrayTo_p_int, 0, 0}, {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0}, {&_swigt__p_intArray, _p_intArrayTo_p_int, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_intArray[] = { {&_swigt__p_intArray, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0}, {&_swigt__p_longArray, _p_longArrayTo_p_long, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_longArray[] = { {&_swigt__p_longArray, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_short[] = { {&_swigt__p_shortArray, _p_shortArrayTo_p_short, 0, 0}, {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0}, {&_swigt__p_shortArray, _p_shortArrayTo_p_short, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_shortArray[] = { {&_swigt__p_shortArray, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; @@ -28654,9 +29103,12 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif +#ifndef SWIG_INIT_CLIENT_DATA_TYPE +#define SWIG_INIT_CLIENT_DATA_TYPE void * +#endif SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { +SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) { size_t i; swig_module_info *module_head, *iter; int init; @@ -28839,220 +29291,6 @@ SWIG_PropagateClientData(void) { extern "C" { #endif - /* Python-specific SWIG API */ -#define SWIG_newvarlink() SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - "swigvarlink", /* tp_name */ - sizeof(swig_varlinkobject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor) swig_varlink_dealloc, /* tp_dealloc */ - 0, /* tp_print */ - (getattrfunc) swig_varlink_getattr, /* tp_getattr */ - (setattrfunc) swig_varlink_setattr, /* tp_setattr */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc) swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ - 0, /* tp_del */ - 0, /* tp_version_tag */ -#if PY_VERSION_HEX >= 0x03040000 - 0, /* tp_finalize */ -#endif -#if PY_VERSION_HEX >= 0x03080000 - 0, /* tp_vectorcall */ -#endif -#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) - 0, /* tp_print */ -#endif -#ifdef COUNT_ALLOCS - 0, /* tp_allocs */ - 0, /* tp_frees */ - 0, /* tp_maxalloc */ - 0, /* tp_prev */ - 0 /* tp_next */ -#endif - }; - varlink_type = tmp; - type_init = 1; - if (PyType_Ready(&varlink_type) < 0) - return NULL; - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - memcpy(gv->name, name, size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *globals = 0; - if (!globals) { - globals = SWIG_newvarlink(); - } - return globals; - } - /* ----------------------------------------------------------------------------- * constants/methods manipulation * ----------------------------------------------------------------------------- */ @@ -29081,15 +29319,12 @@ extern "C" { } } - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ + /* ----------------------------------------------------------------------------- + * Patch %callback methods' docstrings to hold the callback ptrs + * -----------------------------------------------------------------------------*/ SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { + SWIG_Python_FixMethods(PyMethodDef *methods, const swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial) { size_t i; for (i = 0; methods[i].ml_name; ++i) { const char *c = methods[i].ml_doc; @@ -29097,7 +29332,7 @@ extern "C" { c = strstr(c, "swig_ptr: "); if (c) { int j; - swig_const_info *ci = 0; + const swig_const_info *ci = 0; const char *name = c + 10; for (j = 0; const_table[j].type; ++j) { if (strncmp(const_table[j].name, name, @@ -29129,68 +29364,13 @@ extern "C" { } } - /* ----------------------------------------------------------------------------- - * Method creation and docstring support functions - * ----------------------------------------------------------------------------- */ - - /* ----------------------------------------------------------------------------- - * Function to find the method definition with the correct docstring for the - * proxy module as opposed to the low-level API - * ----------------------------------------------------------------------------- */ - - SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) { - /* Find the function in the modified method table */ - size_t offset = 0; - int found = 0; - while (SwigMethods_proxydocs[offset].ml_meth != NULL) { - if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) { - found = 1; - break; - } - offset++; - } - /* Use the copy with the modified docstring if available */ - return found ? &SwigMethods_proxydocs[offset] : NULL; - } - - /* ----------------------------------------------------------------------------- - * Wrapper of PyInstanceMethod_New() used in Python 3 - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ - - SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) { - if (PyCFunction_Check(func)) { - PyCFunctionObject *funcobj = (PyCFunctionObject *)func; - PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name); - if (ml) - func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module); - } -#if PY_VERSION_HEX >= 0x03000000 - return PyInstanceMethod_New(func); -#else - return PyMethod_New(func, NULL, NULL); -#endif - } - - /* ----------------------------------------------------------------------------- - * Wrapper of PyStaticMethod_New() - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ - - SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) { - if (PyCFunction_Check(func)) { - PyCFunctionObject *funcobj = (PyCFunctionObject *)func; - PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name); - if (ml) - func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module); - } - return PyStaticMethod_New(func); - } - #ifdef __cplusplus } #endif + + + /* -----------------------------------------------------------------------------* * Partial Init method * -----------------------------------------------------------------------------*/ @@ -29392,7 +29572,6 @@ SWIG_init(void) { #endif } PyDict_SetItemString(md, "cvar", globals); - Py_DECREF(globals); SWIG_addvarlink(globals, "HAS_SWIG_PYTHON_STRICT_BYTE_CHAR", Swig_var_HAS_SWIG_PYTHON_STRICT_BYTE_CHAR_get, Swig_var_HAS_SWIG_PYTHON_STRICT_BYTE_CHAR_set); #if PY_VERSION_HEX >= 0x03000000 return m; diff --git a/pyproject.toml b/pyproject.toml index 566c509..cfcb68f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,6 +87,9 @@ dev = [ # include-dirs = ["cbflib/include"] # define-macros = [["CBF_NO_REGEX"], ["SWIG_PYTHON_STRICT_BYTE_CHAR"]] +[tool.ruff] +exclude = ["src/pycbf/_wrapper.py"] + [tool.ruff.format] exclude = ["cbflib/", "src/pycbf/__init__.py"] diff --git a/src/pycbf/_wrapper.py b/src/pycbf/_wrapper.py index a72e208..05993d8 100644 --- a/src/pycbf/_wrapper.py +++ b/src/pycbf/_wrapper.py @@ -8,22 +8,19 @@ # - cbfpositionerwrappers.i # - make_pycbf.py # - pycbf.i +# + requires = ["setuptools", "Cython~=0.29.23"] # + version = "0.9.6.6.dev" -# + Cython = "^0.29.23" # + "Cython~=0.29.23", # -# Combined Checksum: 5712c2911ef3f410dd88b1feb68b40dea81b599b1ebcbac133557d3998771114 +# Combined Checksum: 2166bcdb6fca9b70ddcf30d02e1196e9047efd40f27efbbe5f9c572949ab044a -# This file was automatically generated by SWIG (http://www.swig.org). -# Version 4.0.2 +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.2.1 # -# Do not make changes to this file unless you know what you are doing--modify +# Do not make changes to this file unless you know what you are doing - modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info -if _swig_python_version_info < (2, 7, 0): - raise RuntimeError("Python 2.7 or later required") - # Import the low-level C/C++ module if __package__ or "." in __name__: from . import _pycbf @@ -45,10 +42,10 @@ def _swig_repr(self): def _swig_setattr_nondynamic_instance_variable(set): def set_instance_attr(self, name, value): - if name == "thisown": - self.this.own(value) - elif name == "this": + if name == "this": set(self, name, value) + elif name == "thisown": + self.this.own(value) elif hasattr(self, name) and isinstance(getattr(type(self), name), property): set(self, name, value) else: @@ -135,10 +132,6 @@ def frompointer(t): # Register doubleArray in _pycbf: _pycbf.doubleArray_swigregister(doubleArray) - -def doubleArray_frompointer(t): - return _pycbf.doubleArray_frompointer(t) - class intArray(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr @@ -162,10 +155,6 @@ def frompointer(t): # Register intArray in _pycbf: _pycbf.intArray_swigregister(intArray) - -def intArray_frompointer(t): - return _pycbf.intArray_frompointer(t) - class shortArray(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr @@ -189,10 +178,6 @@ def frompointer(t): # Register shortArray in _pycbf: _pycbf.shortArray_swigregister(shortArray) - -def shortArray_frompointer(t): - return _pycbf.shortArray_frompointer(t) - class longArray(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr @@ -216,10 +201,6 @@ def frompointer(t): # Register longArray in _pycbf: _pycbf.longArray_swigregister(longArray) - -def longArray_frompointer(t): - return _pycbf.longArray_frompointer(t) - CBF_INTEGER = _pycbf.CBF_INTEGER CBF_FLOAT = _pycbf.CBF_FLOAT CBF_CANONICAL = _pycbf.CBF_CANONICAL @@ -277,7 +258,7 @@ def airy_disk(x, y, cenx, ceny, volume, fwhm): *args : double x,double y,double cenx,double ceny,double volume,double fwhm C prototype: int cbf_airy_disk(double x, double y, double cenx, double ceny, - double volume, double fwhm, double * value); + double volume, double fwhm, double * value); CBFLib documentation: DESCRIPTION @@ -294,22 +275,21 @@ def airy_disk(x, y, cenx, ceny, volume, fwhm): minimum, after which it is forced to zero, so it cannot be used to simulate diffraction rings. ARGUMENTS - x the x-coordinate of a point in the real plane y - the y-coordinate of a point in the real plane xlo the - x-coordinate of a point in the real plane marking the left bound of - integration ylo the y-coordinate of a point in the real plane - marking the bottom bound of integration xhi the x-coordinate - of a point in the real plane marking the right bound of integration - yhi the y-coordinate of a point in the real plane marking the - top bound of integration cenx the x-coordinate of a point in - the real plane marking the PSF center ceny the y-coordinate of - a point in the real plane marking the PSF center volume the - total volume of the PSF fwhm the full-width at half max of the - PSF value Pointer to the value of the Airy function volumeout - Pointer to the value of the integral/TR> + x the x-coordinate of a point in the real plane y the + y-coordinate of a point in the real plane xlo the x-coordinate of a + point in the real plane marking the left bound of integration ylo + the y-coordinate of a point in the real plane marking the bottom + bound of integration xhi the x-coordinate of a point in the real + plane marking the right bound of integration yhi the y-coordinate + of a point in the real plane marking the top bound of integration + cenx the x-coordinate of a point in the real plane marking the PSF + center ceny the y-coordinate of a point in the real plane marking + the PSF center volume the total volume of the PSF fwhm the + full-width at half max of the PSF value Pointer to the value of the + Airy function volumeout Pointer to the value of the integral/TR> RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.airy_disk(x, y, cenx, ceny, volume, fwhm) @@ -322,8 +302,8 @@ def airy_disk_volume(xlo, ylo, xhi, yhi, cenx, ceny, volume, fwhm): double volume,double fwhm C prototype: int cbf_airy_disk_volume(double xlo, double ylo, double xhi, - double yhi, double cenx, double ceny, double volume, - double fwhm, double * volumeout); + double yhi, double cenx, double ceny, double volume, + double fwhm, double * volumeout); CBFLib documentation: DESCRIPTION @@ -340,22 +320,21 @@ def airy_disk_volume(xlo, ylo, xhi, yhi, cenx, ceny, volume, fwhm): minimum, after which it is forced to zero, so it cannot be used to simulate diffraction rings. ARGUMENTS - x the x-coordinate of a point in the real plane y - the y-coordinate of a point in the real plane xlo the - x-coordinate of a point in the real plane marking the left bound of - integration ylo the y-coordinate of a point in the real plane - marking the bottom bound of integration xhi the x-coordinate - of a point in the real plane marking the right bound of integration - yhi the y-coordinate of a point in the real plane marking the - top bound of integration cenx the x-coordinate of a point in - the real plane marking the PSF center ceny the y-coordinate of - a point in the real plane marking the PSF center volume the - total volume of the PSF fwhm the full-width at half max of the - PSF value Pointer to the value of the Airy function volumeout - Pointer to the value of the integral/TR> + x the x-coordinate of a point in the real plane y the + y-coordinate of a point in the real plane xlo the x-coordinate of a + point in the real plane marking the left bound of integration ylo + the y-coordinate of a point in the real plane marking the bottom + bound of integration xhi the x-coordinate of a point in the real + plane marking the right bound of integration yhi the y-coordinate + of a point in the real plane marking the top bound of integration + cenx the x-coordinate of a point in the real plane marking the PSF + center ceny the y-coordinate of a point in the real plane marking + the PSF center volume the total volume of the PSF fwhm the + full-width at half max of the PSF value Pointer to the value of the + Airy function volumeout Pointer to the value of the integral/TR> RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.airy_disk_volume(xlo, ylo, xhi, yhi, cenx, ceny, volume, fwhm) @@ -372,8 +351,8 @@ def compute_cell_volume(cell): DESCRIPTION cbf_compute_cell_volume sets *volume to point to the volume of the unit cell computed from the double values in cell[0:2] for the cell - edge lengths a, b and c in Ångstroms and the double values given in - cell[3:5] for the cell angles α, β and γ in degrees. + edge lengths a, b and c in ngstroms and the double values given in + cell[3:5] for the cell angles a, b and g in degrees. ARGUMENTS cell Pointer to the array of 6 doubles giving the cell parameters. volume Pointer to the doubles for cell volume. @@ -398,17 +377,16 @@ def compute_reciprocal_cell(cell): DESCRIPTION cbf_compute_reciprocal_cell sets rcell to point to the array of reciprocal cell parameters computed from the double values cell[0:2] - giving the cell edge lengths a, b and c in Ångstroms, and the double - values cell[3:5] giving the cell angles α, β and γ in degrees. The + giving the cell edge lengths a, b and c in ngstroms, and the double + values cell[3:5] giving the cell angles a, b and g in degrees. The double values rcell[0:2] will be set to the reciprocal cell lengths - a^*, b^* and c^* in Ångstroms^-1 and the double values rcell[3:5] - will be set to the reciprocal cell angles α^*, β^* and γ^* in - degrees. + a^*, b^* and c^* in ngstroms^-1 and the double values rcell[3:5] will + be set to the reciprocal cell angles a^*, b^* and g^* in degrees. ARGUMENTS - cell Pointer to the array of 6 doubles giving the cell - parameters. rcell Pointer to the destination array of 6 doubles - giving the reciprocal cell parameters. volume Pointer to the - doubles for cell volume. + cell Pointer to the array of 6 doubles giving the cell parameters. + rcell Pointer to the destination array of 6 doubles giving the + reciprocal cell parameters. volume Pointer to the doubles for cell + volume. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -445,7 +423,7 @@ def get_local_integer_byte_order(): the returned string RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.get_local_integer_byte_order() @@ -479,7 +457,7 @@ def get_local_real_byte_order(): the returned string RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.get_local_real_byte_order() @@ -513,7 +491,7 @@ def get_local_real_format(): the returned string RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.get_local_real_format() @@ -542,8 +520,8 @@ def get_goniometer_poise(self, ratio): *args : Float ratio C prototype: int cbf_get_goniometer_poise(cbf_goniometer goniometer, - double ratio, double * vector1, double * vector2, - double * vector3, double * offset1, double * offset2, + double ratio, double * vector1, double * vector2, + double * vector3, double * offset1, double * offset2, double * offset3, double * angle); CBFLib documentation: @@ -575,19 +553,18 @@ def get_goniometer_poise(self, ratio): vector for axis axis_id unmodified by axis rotations. Any of the pointers may be specified as NULL. ARGUMENTS - handle CBF handle. ratio A number between 0 and 1 - indication how far into the frame to go vector1 Pointer to the - first component of the axis vector vector2 Pointer to the second - component of the axis vector vector3 Pointer to the third - component of the axis vector offset1 Pointer to the first - component of the axis offset offset2 Pointer to the second - component of the axis offset offset3 Pointer to the third - component of the axis offset angle Pointer to the rotation - angle axis_id The specified axis frame_id The specified + handle CBF handle. ratio A number between 0 and 1 indication how + far into the frame to go vector1 Pointer to the first component of + the axis vector vector2 Pointer to the second component of the axis + vector vector3 Pointer to the third component of the axis vector + offset1 Pointer to the first component of the axis offset offset2 + Pointer to the second component of the axis offset offset3 Pointer + to the third component of the axis offset angle Pointer to the + rotation angle axis_id The specified axis frame_id The specified frame positioner CBF goniometer RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_positioner_struct_get_goniometer_poise(self, ratio) @@ -599,10 +576,10 @@ def get_reciprocal(self, ratio, wavelength, real1, real2, real3): *args : double ratio,double wavelength,double real1,double real2,double real3 C prototype: int cbf_get_reciprocal (cbf_goniometer goniometer, - unsigned int reserved, double ratio, double wavelength, - double real1, double real2, double real3, + unsigned int reserved, double ratio, double wavelength, + double real1, double real2, double real3, double *reciprocal1, double *reciprocal2, - double *reciprocal3); + double *reciprocal3); CBFLib documentation: DESCRIPTION @@ -611,25 +588,24 @@ def get_reciprocal(self, ratio, wavelength, real1, real2, real3): corresponding to the real-space vector (real1, real2, real3). The reciprocal-space vector is oriented to correspond to the goniometer setting with all axes at 0. The value wavelength is the wavlength in - Å and the value ratio specifies the current goniometer setting and + and the value ratio specifies the current goniometer setting and varies from 0.0 at the beginning of the exposur e to 1.0 at the end, irrespective of the actual rotation range. Any of the destination pointers may be NULL. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - goniometer Goniometer handle. reserved Unused. Any value - other than 0 is invalid. ratio Goniometer setting. 0 = - beginning of exposure, 1 = end. wavelength Wavelength in Å. real1 - x component of the real-space vector. real2 y - component of the real-space vector. real3 z component of the - real-space vector. reciprocal1 Pointer to the destination x - component of the reciprocal-space vector. reciprocal2 Pointer to - the destination y component of the reciprocal-space vector. - reciprocal3 Pointer to the destination z component of the - reciprocal-space vector. + goniometer Goniometer handle. reserved Unused. Any value other + than 0 is invalid. ratio Goniometer setting. 0 = beginning of + exposure, 1 = end. wavelength Wavelength in . real1 x component + of the real-space vector. real2 y component of the real-space + vector. real3 z component of the real-space vector. reciprocal1 + Pointer to the destination x component of the reciprocal-space + vector. reciprocal2 Pointer to the destination y component of the + reciprocal-space vector. reciprocal3 Pointer to the destination z + component of the reciprocal-space vector. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_positioner_struct_get_reciprocal(self, ratio, wavelength, real1, real2, real3) @@ -641,7 +617,7 @@ def get_rotation_axis(self): *args : C prototype: int cbf_get_rotation_axis (cbf_goniometer goniometer, - unsigned int reserved, double *vector1, double *vector2, + unsigned int reserved, double *vector1, double *vector2, double *vector3); CBFLib documentation: @@ -651,14 +627,14 @@ def get_rotation_axis(self): Any of the destination pointers may be NULL. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - goniometer Goniometer handle. reserved Unused. Any value other - than 0 is invalid. vector1 Pointer to the destination x - component of the rotation axis. vector2 Pointer to the - destination y component of the rotation axis. vector3 Pointer to - the destination z component of the rotation axis. + goniometer Goniometer handle. reserved Unused. Any value other + than 0 is invalid. vector1 Pointer to the destination x component + of the rotation axis. vector2 Pointer to the destination y + component of the rotation axis. vector3 Pointer to the destination + z component of the rotation axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_positioner_struct_get_rotation_axis(self) @@ -670,7 +646,7 @@ def get_rotation_range(self): *args : C prototype: int cbf_get_rotation_range (cbf_goniometer goniometer, - unsigned int reserved, double *start, double *increment); + unsigned int reserved, double *start, double *increment); CBFLib documentation: DESCRIPTION @@ -685,7 +661,7 @@ def get_rotation_range(self): value. increment Pointer to the destination increment value. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_positioner_struct_get_rotation_range(self) @@ -697,8 +673,8 @@ def rotate_vector(self, ratio, initial1, initial2, initial3): *args : double ratio,double initial1,double initial2,double initial3 C prototype: int cbf_rotate_vector (cbf_goniometer goniometer, - unsigned int reserved, double ratio, double initial1, - double initial2, double initial3, double *final1, + unsigned int reserved, double ratio, double initial1, + double initial2, double initial3, double *final1, double *final2, double *final3); CBFLib documentation: @@ -722,14 +698,13 @@ def rotate_vector(self, ratio, initial1, initial2, initial3): to the destination z component of the final vector. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_positioner_struct_rotate_vector(self, ratio, initial1, initial2, initial3) # Register cbf_positioner_struct in _pycbf: _pycbf.cbf_positioner_struct_swigregister(cbf_positioner_struct) - class cbf_detector_struct(object): r"""Proxy of C cbf_detector_struct struct.""" @@ -753,7 +728,7 @@ def get_beam_center(self): *args : C prototype: int cbf_get_beam_center (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -800,14 +775,14 @@ def get_beam_center(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_beam_center(self) @@ -819,7 +794,7 @@ def get_beam_center_fs(self): *args : C prototype: int cbf_get_beam_center_fs (cbf_detector detector, - double *indexfast, double *indexslow, double *centerfast, + double *indexfast, double *indexslow, double *centerfast, double *centerslow); CBFLib documentation: @@ -866,14 +841,14 @@ def get_beam_center_fs(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_beam_center_fs(self) @@ -885,7 +860,7 @@ def get_beam_center_sf(self): *args : C prototype: int cbf_get_beam_center_sf (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -932,14 +907,14 @@ def get_beam_center_sf(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_beam_center_sf(self) @@ -952,8 +927,8 @@ def get_detector_axes(self): *args : C prototype: int cbf_get_detector_axes (cbf_detector detector, - double *slowaxis1, double *slowaxis2, double *slowaxis3, - double *fastaxis1, double *fastaxis2, double *fastaxis3); + double *slowaxis1, double *slowaxis2, double *slowaxis3, + double *fastaxis1, double *fastaxis2, double *fastaxis3); CBFLib documentation: DESCRIPTION @@ -972,20 +947,19 @@ def get_detector_axes(self): ". ", Any of the destination pointers may be NULL. ARGUMENTS - detector Detector handle. slowaxis1 Pointer to the destination x + detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the - fast axis vector. axis_id1 Pointer to the destination first - surface axis name. axis_id1 Pointer to the destination first - surface axis name. axis_id2 Pointer to the destination second - surface axis name. + fast axis vector. axis_id1 Pointer to the destination first surface + axis name. axis_id1 Pointer to the destination first surface axis + name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_detector_axes(self) @@ -1002,8 +976,8 @@ def get_detector_axes_sf(self): *args : C prototype: int cbf_get_detector_axes_sf (cbf_detector detector, - double *slowaxis1, double *slowaxis2, double *slowaxis3, - double *fastaxis1, double *fastaxis2, double *fastaxis3); + double *slowaxis1, double *slowaxis2, double *slowaxis3, + double *fastaxis1, double *fastaxis2, double *fastaxis3); CBFLib documentation: DESCRIPTION @@ -1022,20 +996,19 @@ def get_detector_axes_sf(self): ". ", Any of the destination pointers may be NULL. ARGUMENTS - detector Detector handle. slowaxis1 Pointer to the destination x + detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the - fast axis vector. axis_id1 Pointer to the destination first - surface axis name. axis_id1 Pointer to the destination first - surface axis name. axis_id2 Pointer to the destination second - surface axis name. + fast axis vector. axis_id1 Pointer to the destination first surface + axis name. axis_id1 Pointer to the destination first surface axis + name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_detector_axes_sf(self) @@ -1047,7 +1020,7 @@ def get_detector_axis_fast(self): *args : C prototype: int cbf_get_detector_axis_fast (cbf_detector detector, - double *fastaxis1, double *fastaxis2, double *fastaxis3); + double *fastaxis1, double *fastaxis2, double *fastaxis3); CBFLib documentation: DESCRIPTION @@ -1066,20 +1039,19 @@ def get_detector_axis_fast(self): ". ", Any of the destination pointers may be NULL. ARGUMENTS - detector Detector handle. slowaxis1 Pointer to the destination x + detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the - fast axis vector. axis_id1 Pointer to the destination first - surface axis name. axis_id1 Pointer to the destination first - surface axis name. axis_id2 Pointer to the destination second - surface axis name. + fast axis vector. axis_id1 Pointer to the destination first surface + axis name. axis_id1 Pointer to the destination first surface axis + name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_detector_axis_fast(self) @@ -1091,7 +1063,7 @@ def get_detector_axis_slow(self): *args : C prototype: int cbf_get_detector_axis_slow (cbf_detector detector, - double *slowaxis1, double *slowaxis2, double *slowaxis3); + double *slowaxis1, double *slowaxis2, double *slowaxis3); CBFLib documentation: DESCRIPTION @@ -1110,20 +1082,19 @@ def get_detector_axis_slow(self): ". ", Any of the destination pointers may be NULL. ARGUMENTS - detector Detector handle. slowaxis1 Pointer to the destination x + detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the - fast axis vector. axis_id1 Pointer to the destination first - surface axis name. axis_id1 Pointer to the destination first - surface axis name. axis_id2 Pointer to the destination second - surface axis name. + fast axis vector. axis_id1 Pointer to the destination first surface + axis name. axis_id1 Pointer to the destination first surface axis + name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_detector_axis_slow(self) @@ -1135,7 +1106,7 @@ def get_detector_distance(self): *args : C prototype: int cbf_get_detector_distance (cbf_detector detector, - double *distance); + double *distance); CBFLib documentation: DESCRIPTION @@ -1146,7 +1117,7 @@ def get_detector_distance(self): distance. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_detector_distance(self) @@ -1158,7 +1129,7 @@ def get_detector_normal(self): *args : C prototype: int cbf_get_detector_normal (cbf_detector detector, - double *normal1, double *normal2, double *normal3); + double *normal1, double *normal2, double *normal3); CBFLib documentation: DESCRIPTION @@ -1167,13 +1138,13 @@ def get_detector_normal(self): vector is normalized. Any of the destination pointers may be NULL. ARGUMENTS - detector Detector handle. normal1 Pointer to the destination x - component of the normal vector. normal2 Pointer to the destination - y component of the normal vector. normal3 Pointer to the + detector Detector handle. normal1 Pointer to the destination x + component of the normal vector. normal2 Pointer to the destination + y component of the normal vector. normal3 Pointer to the destination z component of the normal vector. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_detector_normal(self) @@ -1189,7 +1160,7 @@ def get_inferred_pixel_size(self, axis_number): *args : Int axis_number C prototype: int cbf_get_inferred_pixel_size (cbf_detector detector, - int axis_number, double *psize); + int axis_number, double *psize); CBFLib documentation: DESCRIPTION @@ -1201,16 +1172,6 @@ def get_inferred_pixel_size(self, axis_number): value in millimeters of the pixel size for the axis axis_number value. The fast index is treated as axis 1 and the next slower index is treated as axis 2. - If the axis number is negative, the axes are used in the reverse - order so that an axis_number of -1 indicates the fast axes in a call - to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and - indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs. - ARGUMENTS - detector Detector handle. axis_number The number of the axis. - area Pointer to the destination pizel size in mm. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_detector_struct_get_inferred_pixel_size(self, axis_number) @@ -1222,7 +1183,7 @@ def get_inferred_pixel_size_fs(self, axis_number): *args : Int axis_number C prototype: int cbf_get_inferred_pixel_size_fs(cbf_detector detector, - int axis_number, double *psize); + int axis_number, double *psize); CBFLib documentation: DESCRIPTION @@ -1234,16 +1195,6 @@ def get_inferred_pixel_size_fs(self, axis_number): value in millimeters of the pixel size for the axis axis_number value. The fast index is treated as axis 1 and the next slower index is treated as axis 2. - If the axis number is negative, the axes are used in the reverse - order so that an axis_number of -1 indicates the fast axes in a call - to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and - indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs. - ARGUMENTS - detector Detector handle. axis_number The number of the axis. - area Pointer to the destination pizel size in mm. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_detector_struct_get_inferred_pixel_size_fs(self, axis_number) @@ -1255,7 +1206,7 @@ def get_inferred_pixel_size_sf(self, axis_number): *args : Int axis_number C prototype: int cbf_get_inferred_pixel_size_sf(cbf_detector detector, - int axis_number, double *psize); + int axis_number, double *psize); CBFLib documentation: DESCRIPTION @@ -1267,16 +1218,6 @@ def get_inferred_pixel_size_sf(self, axis_number): value in millimeters of the pixel size for the axis axis_number value. The fast index is treated as axis 1 and the next slower index is treated as axis 2. - If the axis number is negative, the axes are used in the reverse - order so that an axis_number of -1 indicates the fast axes in a call - to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and - indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs. - ARGUMENTS - detector Detector handle. axis_number The number of the axis. - area Pointer to the destination pizel size in mm. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_detector_struct_get_inferred_pixel_size_sf(self, axis_number) @@ -1288,7 +1229,7 @@ def get_pixel_area(self, index1, index2): *args : double index1,double index2 C prototype: int cbf_get_pixel_area (cbf_detector detector, double indexslow, - double indexfast, double *area, double *projected_area); + double indexfast, double *area, double *projected_area); CBFLib documentation: DESCRIPTION @@ -1305,7 +1246,7 @@ def get_pixel_area(self, index1, index2): apparent area in mm2. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_area(self, index1, index2) @@ -1317,7 +1258,7 @@ def get_pixel_area_fs(self, indexfast, indexslow): *args : double indexfast,double indexslow C prototype: int cbf_get_pixel_area_fs(cbf_detector detector, - double indexfast, double indexslow, double *area, + double indexfast, double indexslow, double *area, double *projected_area); CBFLib documentation: @@ -1335,7 +1276,7 @@ def get_pixel_area_fs(self, indexfast, indexslow): apparent area in mm2. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_area_fs(self, indexfast, indexslow) @@ -1347,7 +1288,7 @@ def get_pixel_area_sf(self, indexslow, indexfast): *args : double indexslow,double indexfast C prototype: int cbf_get_pixel_area_sf(cbf_detector detector, - double indexslow, double indexfast, double *area, + double indexslow, double indexfast, double *area, double *projected_area); CBFLib documentation: @@ -1365,7 +1306,7 @@ def get_pixel_area_sf(self, indexslow, indexfast): apparent area in mm2. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_area_sf(self, indexslow, indexfast) @@ -1377,8 +1318,8 @@ def get_pixel_coordinates(self, index1, index2): *args : double index1,double index2 C prototype: int cbf_get_pixel_coordinates (cbf_detector detector, - double indexslow, double indexfast, double *coordinate1, - double *coordinate2, double *coordinate3); + double indexslow, double indexfast, double *coordinate1, + double *coordinate2, double *coordinate3); CBFLib documentation: DESCRIPTION @@ -1395,7 +1336,7 @@ def get_pixel_coordinates(self, index1, index2): Pointer to the destination z component. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_coordinates(self, index1, index2) @@ -1407,8 +1348,8 @@ def get_pixel_coordinates_fs(self, indexfast, indexslow): *args : double indexfast,double indexslow C prototype: int cbf_get_pixel_coordinates_fs (cbf_detector detector, - double indexfast, double indexslow, double *coordinate1, - double *coordinate2, double *coordinate3); + double indexfast, double indexslow, double *coordinate1, + double *coordinate2, double *coordinate3); CBFLib documentation: DESCRIPTION @@ -1425,7 +1366,7 @@ def get_pixel_coordinates_fs(self, indexfast, indexslow): Pointer to the destination z component. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_coordinates_fs(self, indexfast, indexslow) @@ -1437,8 +1378,8 @@ def get_pixel_coordinates_sf(self, indexslow, indexfast): *args : double indexslow,double indexfast C prototype: int cbf_get_pixel_coordinates_sf (cbf_detector detector, - double indexslow, double indexfast, double *coordinate1, - double *coordinate2, double *coordinate3); + double indexslow, double indexfast, double *coordinate1, + double *coordinate2, double *coordinate3); CBFLib documentation: DESCRIPTION @@ -1455,7 +1396,7 @@ def get_pixel_coordinates_sf(self, indexslow, indexfast): Pointer to the destination z component. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_coordinates_sf(self, indexslow, indexfast) @@ -1467,7 +1408,7 @@ def get_pixel_normal(self, index1, index2): *args : double index1,double index2 C prototype: int cbf_get_pixel_normal (cbf_detector detector, - double indexslow, double indexfast, double *normal1, + double indexslow, double indexfast, double *normal1, double *normal2, double *normal3); CBFLib documentation: @@ -1478,14 +1419,14 @@ def get_pixel_normal(self, index1, index2): indexslow). The vector is normalized. Any of the destination pointers may be NULL. ARGUMENTS - detector Detector handle. indexslow Slow index. indexfast Fast - index. normal1 Pointer to the destination x component of the - normal vector. normal2 Pointer to the destination y component of - the normal vector. normal3 Pointer to the destination z component - of the normal vector. + detector Detector handle. indexslow Slow index. indexfast Fast + index. normal1 Pointer to the destination x component of the normal + vector. normal2 Pointer to the destination y component of the + normal vector. normal3 Pointer to the destination z component of + the normal vector. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_normal(self, index1, index2) @@ -1497,7 +1438,7 @@ def get_pixel_normal_fs(self, indexfast, indexslow): *args : double indexfast,double indexslow C prototype: int cbf_get_pixel_normal_fs (cbf_detector detector, - double indexfast, double indexslow, double *normal1, + double indexfast, double indexslow, double *normal1, double *normal2, double *normal3); CBFLib documentation: @@ -1508,14 +1449,14 @@ def get_pixel_normal_fs(self, indexfast, indexslow): indexslow). The vector is normalized. Any of the destination pointers may be NULL. ARGUMENTS - detector Detector handle. indexslow Slow index. indexfast Fast - index. normal1 Pointer to the destination x component of the - normal vector. normal2 Pointer to the destination y component of - the normal vector. normal3 Pointer to the destination z component - of the normal vector. + detector Detector handle. indexslow Slow index. indexfast Fast + index. normal1 Pointer to the destination x component of the normal + vector. normal2 Pointer to the destination y component of the + normal vector. normal3 Pointer to the destination z component of + the normal vector. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_get_pixel_normal_fs(self, indexfast, indexslow) @@ -1527,7 +1468,7 @@ def set_beam_center(self): *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_beam_center (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1574,14 +1515,14 @@ def set_beam_center(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_set_beam_center(self) @@ -1593,7 +1534,7 @@ def set_beam_center_fs(self): *args : double indexfast,double indexslow,double centerfast,double centerslow C prototype: int cbf_set_beam_center_fs (cbf_detector detector, - double *indexfast, double *indexslow, double *centerfast, + double *indexfast, double *indexslow, double *centerfast, double *centerslow); CBFLib documentation: @@ -1640,14 +1581,14 @@ def set_beam_center_fs(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_set_beam_center_fs(self) @@ -1659,7 +1600,7 @@ def set_beam_center_sf(self): *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_beam_center_sf (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1706,14 +1647,14 @@ def set_beam_center_sf(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_set_beam_center_sf(self) @@ -1725,7 +1666,7 @@ def set_reference_beam_center(self): *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_reference_beam_center (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1772,14 +1713,14 @@ def set_reference_beam_center(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_set_reference_beam_center(self) @@ -1791,7 +1732,7 @@ def set_reference_beam_center_fs(self): *args : double indexfast,double indexslow,double centerfast,double centerslow C prototype: int cbf_set_reference_beam_center_fs (cbf_detector detector, - double *indexfast, double *indexslow, double *centerfast, + double *indexfast, double *indexslow, double *centerfast, double *centerslow); CBFLib documentation: @@ -1838,14 +1779,14 @@ def set_reference_beam_center_fs(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_set_reference_beam_center_fs(self) @@ -1857,7 +1798,7 @@ def set_reference_beam_center_sf(self): *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_reference_beam_center_sf (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1904,21 +1845,20 @@ def set_reference_beam_center_sf(self): the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS - detector Detector handle. indexfast Pointer to the destination - fast index. indexslow Pointer to the destination slow index. + detector Detector handle. indexfast Pointer to the destination + fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_detector_struct_set_reference_beam_center_sf(self) # Register cbf_detector_struct in _pycbf: _pycbf.cbf_detector_struct_swigregister(cbf_detector_struct) - CBF_UNDEFNODE = _pycbf.CBF_UNDEFNODE CBF_LINK = _pycbf.CBF_LINK @@ -2006,7 +1946,7 @@ def construct_detector(self, element_number): *args : Integer element_number C prototype: int cbf_construct_detector (cbf_handle handle, - cbf_detector *detector, unsigned int element_number); + cbf_detector *detector, unsigned int element_number); CBFLib documentation: DESCRIPTION @@ -2020,13 +1960,13 @@ def construct_detector(self, element_number): similar, but try to force the creations of missing intermediate categories needed to construct a detector object. ARGUMENTS - handle CBF handle. detector Pointer to the - destination detector handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. + handle CBF handle. detector Pointer to the destination detector + handle. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_construct_detector(self, element_number) @@ -2038,7 +1978,7 @@ def construct_goniometer(self): *args : C prototype: int cbf_construct_goniometer (cbf_handle handle, - cbf_goniometer *goniometer); + cbf_goniometer *goniometer); CBFLib documentation: DESCRIPTION @@ -2050,7 +1990,7 @@ def construct_goniometer(self): goniometer handle. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_construct_goniometer(self) @@ -2062,7 +2002,7 @@ def construct_positioner(self, axis_id): *args : String axis_id C prototype: int cbf_construct_positioner (cbf_handle handle, - cbf_positioner *positioner, const char *axis_id); + cbf_positioner *positioner, const char *axis_id); CBFLib documentation: DESCRIPTION @@ -2079,7 +2019,7 @@ def construct_positioner(self, axis_id): category. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_construct_positioner(self, axis_id) @@ -2091,7 +2031,7 @@ def construct_reference_detector(self, element_number): *args : Integer element_number C prototype: int cbf_construct_reference_detector (cbf_handle handle, - cbf_detector *detector, unsigned int element_number); + cbf_detector *detector, unsigned int element_number); CBFLib documentation: DESCRIPTION @@ -2105,13 +2045,13 @@ def construct_reference_detector(self, element_number): similar, but try to force the creations of missing intermediate categories needed to construct a detector object. ARGUMENTS - handle CBF handle. detector Pointer to the - destination detector handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. + handle CBF handle. detector Pointer to the destination detector + handle. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_construct_reference_detector(self, element_number) @@ -2123,7 +2063,7 @@ def construct_reference_positioner(self, axis_id): *args : String axis_id C prototype: int cbf_construct_reference_positioner (cbf_handle handle, - cbf_positioner *positioner, const char *axis_id); + cbf_positioner *positioner, const char *axis_id); CBFLib documentation: DESCRIPTION @@ -2140,7 +2080,7 @@ def construct_reference_positioner(self, axis_id): category. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_construct_reference_positioner(self, axis_id) @@ -2152,7 +2092,7 @@ def count_axis_ancestors(self, axis_id): *args : String axis_id C prototype: int cbf_count_axis_ancestors (cbf_handle handle, - const char *axis_id, unsigned int *ancestors); + const char *axis_id, unsigned int *ancestors); CBFLib documentation: DESCRIPTION @@ -2181,29 +2121,9 @@ def count_axis_ancestors(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_count_axis_ancestors(self, axis_id) @@ -2291,7 +2211,7 @@ def count_elements(self): handle CBF handle. elements Pointer to the destination count. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_count_elements(self) @@ -2400,7 +2320,7 @@ def find_category_root(self, categoryname): *args : String categoryname C prototype: int cbf_find_category_root (cbf_handle handle, - const char* categoryname, const char** categoryroot); + const char* categoryname, const char** categoryroot); CBFLib documentation: DESCRIPTION @@ -2418,7 +2338,7 @@ def find_category_root(self, categoryname): root name. categoryroot_in input category root name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_find_category_root(self, categoryname) @@ -2531,7 +2451,7 @@ def find_tag_category(self, tagname): *args : String tagname C prototype: int cbf_find_tag_category (cbf_handle handle, - const char* tagname, const char** categoryname); + const char* tagname, const char** categoryname); CBFLib documentation: DESCRIPTION @@ -2545,7 +2465,7 @@ def find_tag_category(self, tagname): categoryname_in input category name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_find_tag_category(self, tagname) @@ -2557,7 +2477,7 @@ def find_tag_root(self, tagname): *args : String tagname C prototype: int cbf_find_tag_root (cbf_handle handle, const char* tagname, - const char** tagroot); + const char** tagroot); CBFLib documentation: DESCRIPTION @@ -2574,7 +2494,7 @@ def find_tag_root(self, tagname): tag root name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_find_tag_root(self, tagname) @@ -2586,7 +2506,7 @@ def force_new_category(self, arg): *args : C prototype: int cbf_force_new_category (cbf_handle handle, - const char *categoryname); + const char *categoryname); CBFLib documentation: DESCRIPTION @@ -2671,15 +2591,15 @@ def get_3d_image_as_string(self, element_number, elsize, elsign, ndimfast, ndimm int ndimfast C prototype: int cbf_get_3d_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimslow, size_t ndimmid, + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -2687,7 +2607,7 @@ def get_3d_image_as_string(self, element_number, elsize, elsign, ndimfast, ndimm always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -2702,7 +2622,32 @@ def get_3d_image_as_string(self, element_number, elsize, elsign, ndimfast, ndimm ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_3d_image_as_string(self, element_number, elsize, elsign, ndimfast, ndimmid, ndimslow) @@ -2715,15 +2660,15 @@ def get_3d_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, nd int ndimslow C prototype: int cbf_get_3d_image_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, int elsign, size_t ndimfast, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, int elsign, size_t ndimfast, size_t ndimmid, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -2731,7 +2676,7 @@ def get_3d_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, nd always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -2746,7 +2691,32 @@ def get_3d_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, nd ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_3d_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, ndimmid, ndimslow) @@ -2759,15 +2729,15 @@ def get_3d_image_sf_as_string(self, element_number, elsize, elsign, ndimfast, nd int ndimfast C prototype: int cbf_get_3d_image_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, int elsign, size_t ndimslow, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, int elsign, size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -2775,7 +2745,7 @@ def get_3d_image_sf_as_string(self, element_number, elsize, elsign, ndimfast, nd always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -2790,7 +2760,32 @@ def get_3d_image_sf_as_string(self, element_number, elsize, elsign, ndimfast, nd ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_3d_image_sf_as_string(self, element_number, elsize, elsign, ndimfast, ndimmid, ndimslow) @@ -2802,8 +2797,8 @@ def get_3d_image_size(self, element_number): *args : Integer element_number C prototype: int cbf_get_3d_image_size (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); + unsigned int reserved, unsigned int element_number, + size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); CBFLib documentation: DESCRIPTION @@ -2833,8 +2828,8 @@ def get_3d_image_size_sf(self, element_number): *args : Integer element_number C prototype: int cbf_get_3d_image_size_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); + unsigned int reserved, unsigned int element_number, + size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); CBFLib documentation: DESCRIPTION @@ -2860,7 +2855,7 @@ def get_axis_ancestor(self, axis_id, ancestor_index): *args : String axis_id,Integer ancestor_index C prototype: int cbf_get_axis_ancestor (cbf_handle handle, - const char *axis_id, const unsigned int ancestor_index, + const char *axis_id, const unsigned int ancestor_index, const char * *ancestor); CBFLib documentation: @@ -2890,29 +2885,9 @@ def get_axis_ancestor(self, axis_id, ancestor_index): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_ancestor(self, axis_id, ancestor_index) @@ -2924,7 +2899,7 @@ def get_axis_depends_on(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_depends_on (cbf_handle handle, - const char *axis_id, const char * *depends_on); + const char *axis_id, const char * *depends_on); CBFLib documentation: DESCRIPTION @@ -2953,29 +2928,9 @@ def get_axis_depends_on(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_depends_on(self, axis_id) @@ -2987,7 +2942,7 @@ def get_axis_equipment(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_equipment (cbf_handle handle, - const char *axis_id, const char * *equipment); + const char *axis_id, const char * *equipment); CBFLib documentation: DESCRIPTION @@ -3016,29 +2971,9 @@ def get_axis_equipment(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_equipment(self, axis_id) @@ -3050,7 +2985,7 @@ def get_axis_equipment_component(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_equipment_component (cbf_handle handle, - const char *axis_id, const char * *equipment_component); + const char *axis_id, const char * *equipment_component); CBFLib documentation: DESCRIPTION @@ -3079,29 +3014,9 @@ def get_axis_equipment_component(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_equipment_component(self, axis_id) @@ -3113,7 +3028,7 @@ def get_axis_offset(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_offset (cbf_handle handle, const char *axis_id, - double *offset1, double *offset2, double *offset3); + double *offset1, double *offset2, double *offset3); CBFLib documentation: DESCRIPTION @@ -3142,29 +3057,9 @@ def get_axis_offset(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_offset(self, axis_id) @@ -3177,10 +3072,10 @@ def get_axis_poise(self, ratio, axis_id, frame_id): *args : Float ratio,String axis_id,String frame_id C prototype: int cbf_get_axis_poise(cbf_handle handle, double ratio, - double * vector1, double * vector2, double * vector3, - double * offset1, double * offset2, double * offset3, + double * vector1, double * vector2, double * vector3, + double * offset1, double * offset2, double * offset3, double * angle, const char * axis_id, - const char * frame_id); + const char * frame_id); CBFLib documentation: DESCRIPTION @@ -3211,19 +3106,18 @@ def get_axis_poise(self, ratio, axis_id, frame_id): vector for axis axis_id unmodified by axis rotations. Any of the pointers may be specified as NULL. ARGUMENTS - handle CBF handle. ratio A number between 0 and 1 - indication how far into the frame to go vector1 Pointer to the - first component of the axis vector vector2 Pointer to the second - component of the axis vector vector3 Pointer to the third - component of the axis vector offset1 Pointer to the first - component of the axis offset offset2 Pointer to the second - component of the axis offset offset3 Pointer to the third - component of the axis offset angle Pointer to the rotation - angle axis_id The specified axis frame_id The specified + handle CBF handle. ratio A number between 0 and 1 indication how + far into the frame to go vector1 Pointer to the first component of + the axis vector vector2 Pointer to the second component of the axis + vector vector3 Pointer to the third component of the axis vector + offset1 Pointer to the first component of the axis offset offset2 + Pointer to the second component of the axis offset offset3 Pointer + to the third component of the axis offset angle Pointer to the + rotation angle axis_id The specified axis frame_id The specified frame positioner CBF goniometer RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_axis_poise(self, ratio, axis_id, frame_id) @@ -3236,8 +3130,8 @@ def get_axis_reference_poise(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_reference_poise(cbf_handle handle, - double * vector1, double * vector2, double * vector3, - double * offset1, double * offset2, double * offset3, + double * vector1, double * vector2, double * vector3, + double * offset1, double * offset2, double * offset3, const char * axis_id); CBFLib documentation: @@ -3269,19 +3163,18 @@ def get_axis_reference_poise(self, axis_id): vector for axis axis_id unmodified by axis rotations. Any of the pointers may be specified as NULL. ARGUMENTS - handle CBF handle. ratio A number between 0 and 1 - indication how far into the frame to go vector1 Pointer to the - first component of the axis vector vector2 Pointer to the second - component of the axis vector vector3 Pointer to the third - component of the axis vector offset1 Pointer to the first - component of the axis offset offset2 Pointer to the second - component of the axis offset offset3 Pointer to the third - component of the axis offset angle Pointer to the rotation - angle axis_id The specified axis frame_id The specified + handle CBF handle. ratio A number between 0 and 1 indication how + far into the frame to go vector1 Pointer to the first component of + the axis vector vector2 Pointer to the second component of the axis + vector vector3 Pointer to the third component of the axis vector + offset1 Pointer to the first component of the axis offset offset2 + Pointer to the second component of the axis offset offset3 Pointer + to the third component of the axis offset angle Pointer to the + rotation angle axis_id The specified axis frame_id The specified frame positioner CBF goniometer RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_axis_reference_poise(self, axis_id) @@ -3293,7 +3186,7 @@ def get_axis_rotation(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_rotation (cbf_handle handle, - const char *axis_id, double *rotation); + const char *axis_id, double *rotation); CBFLib documentation: DESCRIPTION @@ -3322,29 +3215,9 @@ def get_axis_rotation(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_rotation(self, axis_id) @@ -3356,7 +3229,7 @@ def get_axis_rotation_axis(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_rotation_axis (cbf_handle handle, - const char *axis_id, const char * *rotation_axis); + const char *axis_id, const char * *rotation_axis); CBFLib documentation: DESCRIPTION @@ -3385,29 +3258,9 @@ def get_axis_rotation_axis(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_rotation_axis(self, axis_id) @@ -3419,7 +3272,7 @@ def get_axis_setting(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_setting (cbf_handle handle, - unsigned int reserved, const char *axis_id, double *start, + unsigned int reserved, const char *axis_id, double *start, double *increment); CBFLib documentation: @@ -3449,29 +3302,9 @@ def get_axis_setting(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_setting(self, axis_id) @@ -3483,7 +3316,7 @@ def get_axis_type(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_type (cbf_handle handle, const char *axis_id, - cbf_axis_type *axis_type); + cbf_axis_type *axis_type); CBFLib documentation: DESCRIPTION @@ -3512,29 +3345,9 @@ def get_axis_type(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_type(self, axis_id) @@ -3546,7 +3359,7 @@ def get_axis_vector(self, axis_id): *args : String axis_id C prototype: int cbf_get_axis_vector (cbf_handle handle, const char *axis_id, - double *vector1, double *vector2, double *vector3); + double *vector1, double *vector2, double *vector3); CBFLib documentation: DESCRIPTION @@ -3575,29 +3388,9 @@ def get_axis_vector(self, axis_id): components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS - handle CBF handle. reserved Unused. Any - value other than 0 is invalid. axis_id Axis id. - ancestor_index Integer index of the desired ancestor, starting - with 0 for the current axis_id. ancestor Pointer to - destination ancestor name pointer. depends_on Pointer to - destination depends_on name pointer. equipment Pointer to - destination equipment name pointer. equipment_component Pointer to - destination equipment_component name pointer. offset1 - Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. - rotation Pointer to destination rotation value. - rotation_axis Pointer to destination rotation_axisn name - pointer. start Pointer to the destination start - value. increment Pointer to the destination increment - value. type Pointer to destination axis type of type - . vector1 Pointer to destination first vector component - value. vector2 Pointer to destination second vector - component value. vector3 Pointer to destination third - vector component value. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. axis_id Axis id. ancestor_index Integer index of the + desired ancestor, starting with 0 for the current axis_id. """ return _pycbf.cbf_handle_struct_get_axis_vector(self, axis_id) @@ -3609,7 +3402,7 @@ def get_bin_sizes(self, element_number): *args : Integer element_number C prototype: int cbf_get_bin_sizes(cbf_handle handle, - unsigned int element_number, double * slowbinsize, + unsigned int element_number, double * slowbinsize, double * fastbinsize); CBFLib documentation: @@ -3629,9 +3422,9 @@ def get_bin_sizes(self, element_number): In order to allow for software binning involving fractions of pixels, the bin sizes are doubles rather than ints. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. slowbinsize Pointer to the + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. slowbinsize Pointer to the returned number of pixels composing one array element in the dimension that changes at the second-fastest rate. fastbinsize Pointer to the returned number of pixels composing one array element @@ -3642,7 +3435,7 @@ def get_bin_sizes(self, element_number): at the fastest rate. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_bin_sizes(self, element_number) @@ -3669,7 +3462,7 @@ def get_crystal_id(self): value pointer. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_crystal_id(self) @@ -3682,8 +3475,8 @@ def get_datestamp(self): *args : C prototype: int cbf_get_datestamp (cbf_handle handle, unsigned int reserved, - int *year, int *month, int *day, int *hour, int *minute, - double *second, int *timezone); + int *year, int *month, int *day, int *hour, int *minute, + double *second, int *timezone); CBFLib documentation: DESCRIPTION @@ -3693,17 +3486,17 @@ def get_datestamp(self): parameter < i>reserved is presently unused and should be set to 0. Any of the destination pointers may be NULL. ARGUMENTS - handle CBF handle. reserved Unused. Any value other than 0 is - invalid. year Pointer to the destination timestamp year. month - Pointer to the destination timestamp month (1-12). day - Pointer to the destination timestamp day (1-31). hour Pointer - to the destination timestamp hour (0-23). minute Pointer to the - destination timestamp minute (0-59). second Pointer to the + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. year Pointer to the destination timestamp year. month + Pointer to the destination timestamp month (1-12). day Pointer to + the destination timestamp day (1-31). hour Pointer to the + destination timestamp hour (0-23). minute Pointer to the + destination timestamp minute (0-59). second Pointer to the destination timestamp second (0-60.0). timezone Pointer to the destination timezone difference from UTC in minutes. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_datestamp(self) @@ -3731,7 +3524,7 @@ def get_dictionary(self): dictionary. dictionary_in CBF handle of dcitionary. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_dictionary(self) @@ -3761,7 +3554,7 @@ def get_diffrn_id(self): value pointer. default_id Character string default value. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_diffrn_id(self) @@ -3773,7 +3566,7 @@ def get_divergence(self): *args : C prototype: int cbf_get_divergence (cbf_handle handle, double *div_x_source, - double *div_y_source, double *div_x_y_source); + double *div_y_source, double *div_x_y_source); CBFLib documentation: DESCRIPTION @@ -3787,7 +3580,7 @@ def get_divergence(self): div_x_y_source. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_divergence(self) @@ -3825,7 +3618,7 @@ def get_element_id(self, element_number): *args : Integer element_number C prototype: int cbf_get_element_id (cbf_handle handle, - unsigned int element_number, const char **element_id); + unsigned int element_number, const char **element_id); CBFLib documentation: DESCRIPTION @@ -3847,15 +3640,15 @@ def get_element_id(self, element_number): been set to a new value. The element_id must not be modified by the program in any way. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. element_id Pointer to the + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. element_id Pointer to the destination string for cbf_get_element_id, but the string itself for - cbf_get_element_number. array_id The optional array id or - NULL. array_section_id The optional array_section_id or NULL. + cbf_get_element_number. array_id The optional array id or NULL. + array_section_id The optional array_section_id or NULL. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_element_id(self, element_number) @@ -3871,7 +3664,7 @@ def get_gain(self, element_number): *args : C prototype: int cbf_get_gain (cbf_handle handle, unsigned int element_number, - double *gain, double *gain_esd); + double *gain, double *gain_esd); CBFLib documentation: DESCRIPTION @@ -3879,14 +3672,13 @@ def get_gain(self, element_number): parameters for element number element_number. Either of the destination pointers may be NULL. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. gain Pointer to the - destination gain. gain_esd Pointer to the destination - gain_esd. + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. gain Pointer to the destination + gain. gain_esd Pointer to the destination gain_esd. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_gain(self, element_number) @@ -3898,14 +3690,14 @@ def get_image_as_string(self, element_number, elsize, elsign, ndimslow, ndimfast *args : int element_number,int elsize,int elsign,int ndimslow,int ndimfast C prototype: int cbf_get_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimslow, size_t ndimfast); + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3913,7 +3705,7 @@ def get_image_as_string(self, element_number, elsize, elsign, ndimslow, ndimfast always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3928,7 +3720,32 @@ def get_image_as_string(self, element_number, elsize, elsign, ndimslow, ndimfast ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_image_as_string(self, element_number, elsize, elsign, ndimslow, ndimfast) @@ -3940,14 +3757,14 @@ def get_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, ndims *args : int element_number,int elsize,int elsign,int ndimfast,int ndimslow C prototype: int cbf_get_image_fs (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimfast, size_t ndimslow); + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3955,7 +3772,7 @@ def get_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, ndims always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3970,7 +3787,32 @@ def get_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, ndims ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_image_fs_as_string(self, element_number, elsize, elsign, ndimfast, ndimslow) @@ -3982,14 +3824,14 @@ def get_image_sf_as_string(self, element_number, elsize, elsign, ndimslow, ndimf *args : int element_number,int elsize,int elsign,int ndimslow,int ndimfast C prototype: int cbf_get_image_sf (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimslow, size_t ndimfast); + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3997,7 +3839,7 @@ def get_image_sf_as_string(self, element_number, elsize, elsign, ndimslow, ndimf always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -4012,7 +3854,32 @@ def get_image_sf_as_string(self, element_number, elsize, elsign, ndimslow, ndimf ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_image_sf_as_string(self, element_number, elsize, elsign, ndimslow, ndimfast) @@ -4024,7 +3891,7 @@ def get_image_size(self, element_number): *args : Integer element_number C prototype: int cbf_get_image_size (cbf_handle handle, unsigned int reserved, - unsigned int element_number, size_t *ndimslow, + unsigned int element_number, size_t *ndimslow, size_t *ndimfast); CBFLib documentation: @@ -4051,7 +3918,7 @@ def get_image_size_fs(self, element_number): *args : Integer element_number C prototype: int cbf_get_image_size_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, + unsigned int reserved, unsigned int element_number, size_t *ndimfast, size_t *ndimslow); CBFLib documentation: @@ -4078,7 +3945,7 @@ def get_image_size_sf(self, element_number): *args : Integer element_number C prototype: int cbf_get_image_size_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, + unsigned int reserved, unsigned int element_number, size_t *ndimslow, size_t *ndimfast); CBFLib documentation: @@ -4105,8 +3972,8 @@ def get_integerarray_as_string(self): *args : C prototype: int cbf_get_integerarray (cbf_handle handle, int *binary_id, - void *array, size_t elsize, int elsigned, size_t elements, - size_t *elements_read); + void *array, size_t elsize, int elsigned, size_t elements, + size_t *elements_read); CBFLib documentation: DESCRIPTION @@ -4140,13 +4007,12 @@ def get_integerarray_as_string(self): For cbf_get_realarray, only IEEE format is supported. No conversion to other floating point formats is done at this time. ARGUMENTS - handle CBF handle. binary_id Pointer to the - destination integer binary identifier. array Pointer to the - destination array. elsize Size in bytes of each destination - array element. elsigned Set to non-0 if the destination array - elements are signed. elements The number of elements to read. - elements_read Pointer to the destination number of elements - actually read. + handle CBF handle. binary_id Pointer to the destination integer + binary identifier. array Pointer to the destination array. elsize + Size in bytes of each destination array element. elsigned Set to + non-0 if the destination array elements are signed. elements The + number of elements to read. elements_read Pointer to the + destination number of elements actually read. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -4200,19 +4066,19 @@ def get_integerarrayparameters(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -4229,11 +4095,11 @@ def get_integerarrayparameters_wdims(self): *args : C prototype: int cbf_get_integerarrayparameters_wdims (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, + unsigned int *compression, int *binary_id, size_t *elsize, int *elsigned, int *elunsigned, size_t *elements, int *minelement, int *maxelement, const char **byteorder, size_t *dimfast, size_t *dimmid, size_t *dimslow, - size_t *padding); + size_t *padding); CBFLib documentation: DESCRIPTION @@ -4270,19 +4136,19 @@ def get_integerarrayparameters_wdims(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -4299,11 +4165,11 @@ def get_integerarrayparameters_wdims_fs(self): *args : C prototype: int cbf_get_integerarrayparameters_wdims_fs (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - int *elsigned, int *elunsigned, size_t *elements, - int *minelement, int *maxelement, const char **byteorder, - size_t *dimfast, size_t *dimmid, size_t *dimslow, - size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + int *elsigned, int *elunsigned, size_t *elements, + int *minelement, int *maxelement, const char **byteorder, + size_t *dimfast, size_t *dimmid, size_t *dimslow, + size_t *padding); CBFLib documentation: DESCRIPTION @@ -4340,19 +4206,19 @@ def get_integerarrayparameters_wdims_fs(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -4369,11 +4235,11 @@ def get_integerarrayparameters_wdims_sf(self): *args : C prototype: int cbf_get_integerarrayparameters_wdims_sf (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - int *elsigned, int *elunsigned, size_t *elements, - int *minelement, int *maxelement, const char **byteorder, - size_t *dimslow, size_t *dimmid, size_t *dimfast, - size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + int *elsigned, int *elunsigned, size_t *elements, + int *minelement, int *maxelement, const char **byteorder, + size_t *dimslow, size_t *dimmid, size_t *dimfast, + size_t *padding); CBFLib documentation: DESCRIPTION @@ -4410,19 +4276,19 @@ def get_integerarrayparameters_wdims_sf(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -4463,7 +4329,7 @@ def get_integration_time(self): *args : C prototype: int cbf_get_integration_time (cbf_handle handle, - unsigned int reserved, double *time); + unsigned int reserved, double *time); CBFLib documentation: DESCRIPTION @@ -4475,7 +4341,7 @@ def get_integration_time(self): invalid. time Pointer to the destination time. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_integration_time(self) @@ -4489,7 +4355,7 @@ def get_orientation_matrix(self): *args : C prototype: int cbf_get_orientation_matrix (cbf_handle handle, - double ub_matrix[9]); + double ub_matrix[9]); CBFLib documentation: DESCRIPTION @@ -4502,11 +4368,11 @@ def get_orientation_matrix(self): cbf_set_orientation_matrix sets the values in the "diffrn " category to the values pointed to by ub_matrix. ARGUMENTS - handle CBF handle. ubmatric Source or destination array of 9 + handle CBF handle. ubmatric Source or destination array of 9 doubles giving the orientation matrix parameters. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_orientation_matrix(self) @@ -4518,20 +4384,20 @@ def get_overload(self, element_number): *args : Integer element_number C prototype: int cbf_get_overload (cbf_handle handle, - unsigned int element_number, double *overload); + unsigned int element_number, double *overload); CBFLib documentation: DESCRIPTION cbf_get_overload sets *overload to the overload value for element number element_number. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. overload Pointer to the + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. overload Pointer to the destination overload. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_overload(self, element_number) @@ -4543,7 +4409,7 @@ def get_pixel_size(self, element_number, axis_number): *args : Int element_number,Int axis_number C prototype: int cbf_get_pixel_size (cbf_handle handle, - unsigned int element_number, int axis_number, + unsigned int element_number, int axis_number, double *psize); CBFLib documentation: @@ -4561,15 +4427,15 @@ def get_pixel_size(self, element_number, axis_number): If the pixel size is not given explcitly in the "array_element_size " category, the function returns CBF_NOTFOUND. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. axis_number The number of the + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. axis_number The number of the axis, starting from 1 for the fastest for cbf_get_pixel_size and cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf. - psize Pointer to the destination pixel size. + psize Pointer to the destination pixel size. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_pixel_size(self, element_number, axis_number) @@ -4581,7 +4447,7 @@ def get_pixel_size_fs(self, element_number, axis_number): *args : Int element_number,Int axis_number C prototype: int cbf_get_pixel_size_fs(cbf_handle handle, - unsigned int element_number, int axis_number, + unsigned int element_number, int axis_number, double *psize); CBFLib documentation: @@ -4599,15 +4465,15 @@ def get_pixel_size_fs(self, element_number, axis_number): If the pixel size is not given explcitly in the "array_element_size " category, the function returns CBF_NOTFOUND. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. axis_number The number of the + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. axis_number The number of the axis, starting from 1 for the fastest for cbf_get_pixel_size and cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf. - psize Pointer to the destination pixel size. + psize Pointer to the destination pixel size. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_pixel_size_fs(self, element_number, axis_number) @@ -4619,7 +4485,7 @@ def get_pixel_size_sf(self, element_number, axis_number): *args : Int element_number,Int axis_number C prototype: int cbf_get_pixel_size_sf(cbf_handle handle, - unsigned int element_number, int axis_number, + unsigned int element_number, int axis_number, double *psize); CBFLib documentation: @@ -4637,15 +4503,15 @@ def get_pixel_size_sf(self, element_number, axis_number): If the pixel size is not given explcitly in the "array_element_size " category, the function returns CBF_NOTFOUND. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. axis_number The number of the + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. axis_number The number of the axis, starting from 1 for the fastest for cbf_get_pixel_size and cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf. - psize Pointer to the destination pixel size. + psize Pointer to the destination pixel size. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_pixel_size_sf(self, element_number, axis_number) @@ -4657,7 +4523,7 @@ def get_polarization(self): *args : C prototype: int cbf_get_polarization (cbf_handle handle, - double *polarizn_source_ratio, + double *polarizn_source_ratio, double *polarizn_source_norm); CBFLib documentation: @@ -4667,12 +4533,12 @@ def get_polarization(self): parameters. Either destination pointer may be NULL. ARGUMENTS - handle CBF handle. polarizn_source_ratio Pointer - to the destination polarizn_source_ratio. polarizn_source_norm - Pointer to the destination polarizn_source_norm. + handle CBF handle. polarizn_source_ratio Pointer to the + destination polarizn_source_ratio. polarizn_source_norm Pointer to + the destination polarizn_source_norm. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_polarization(self) @@ -4684,15 +4550,15 @@ def get_real_3d_image_as_string(self, element_number, elsize, ndimslow, ndimmid, *args : int element_number,int elsize,int ndimslow,int ndimmid,int ndimfast C prototype: int cbf_get_real_3d_image (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimslow, size_t ndimmid, + size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -4700,7 +4566,7 @@ def get_real_3d_image_as_string(self, element_number, elsize, ndimslow, ndimmid, always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -4715,7 +4581,32 @@ def get_real_3d_image_as_string(self, element_number, elsize, ndimslow, ndimmid, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_real_3d_image_as_string(self, element_number, elsize, ndimslow, ndimmid, ndimfast) @@ -4727,15 +4618,15 @@ def get_real_3d_image_fs_as_string(self, element_number, elsize, ndimfast, ndimm *args : int element_number,int elsize,int ndimfast,int ndimmid,int ndimslow C prototype: int cbf_get_real_3d_image_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimfast, - size_t ndimmid, size_t ndimslow); + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimfast, size_t ndimmid, + size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -4743,7 +4634,7 @@ def get_real_3d_image_fs_as_string(self, element_number, elsize, ndimfast, ndimm always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -4758,7 +4649,32 @@ def get_real_3d_image_fs_as_string(self, element_number, elsize, ndimfast, ndimm ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_real_3d_image_fs_as_string(self, element_number, elsize, ndimfast, ndimmid, ndimslow) @@ -4770,15 +4686,15 @@ def get_real_3d_image_sf_as_string(self, element_number, elsize, ndimslow, ndimm *args : int element_number,int elsize,int ndimslow,int ndimmid,int ndimfast C prototype: int cbf_get_real_3d_image_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimslow, size_t ndimmid, + size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -4786,7 +4702,7 @@ def get_real_3d_image_sf_as_string(self, element_number, elsize, ndimslow, ndimm always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -4801,7 +4717,32 @@ def get_real_3d_image_sf_as_string(self, element_number, elsize, ndimslow, ndimm ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_real_3d_image_sf_as_string(self, element_number, elsize, ndimslow, ndimmid, ndimfast) @@ -4813,14 +4754,14 @@ def get_real_image_as_string(self, element_number, elsize, ndimslow, ndimfast): *args : int element_number,int elsize,int ndimslow,int ndimfast C prototype: int cbf_get_real_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - size_t ndimslow, size_t ndimfast); + unsigned int element_number, void *array, size_t elsize, + size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -4828,7 +4769,7 @@ def get_real_image_as_string(self, element_number, elsize, ndimslow, ndimfast): always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -4843,7 +4784,32 @@ def get_real_image_as_string(self, element_number, elsize, ndimslow, ndimfast): ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_real_image_as_string(self, element_number, elsize, ndimslow, ndimfast) @@ -4855,15 +4821,15 @@ def get_real_image_fs_as_string(self, element_number, elsize, ndimfast, ndimslow *args : int element_number,int elsize,int ndimfast,int ndimslow C prototype: int cbf_get_real_image_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimfast, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -4871,7 +4837,7 @@ def get_real_image_fs_as_string(self, element_number, elsize, ndimfast, ndimslow always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -4886,7 +4852,32 @@ def get_real_image_fs_as_string(self, element_number, elsize, ndimfast, ndimslow ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_real_image_fs_as_string(self, element_number, elsize, ndimfast, ndimslow) @@ -4898,15 +4889,15 @@ def get_real_image_sf_as_string(self, element_number, elsize, ndimslow, ndimfast *args : int element_number,int elsize,int ndimslow,int ndimfast C prototype: int cbf_get_real_image_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimslow, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array - consists of ndimslow×ndimfast elements of elsize bytes each, starting + consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -4914,7 +4905,7 @@ def get_real_image_sf_as_string(self, element_number, elsize, ndimslow, ndimfast always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of - ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at + ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -4929,7 +4920,32 @@ def get_real_image_sf_as_string(self, element_number, elsize, ndimslow, ndimfast ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, - ndimslow and ndimmid should be the + ndimslow and ndimmid should be the array dimensions and ndimfast + should be set to 1 both in the call and in the imgCIF data being + processed. + If any element in the binary data cant fit into the destination + element, the destination is set the nearest possible value. + If the value is not binary, the function returns CBF_ASCII. + If the requested number of elements cant be read, the function will + read as many as it can and then return CBF_ENDOFDATA. + Currently, the destination array must consist of chars, shorts or + ints (signed or unsigned) for cbf_get_image, or IEEE doubles or + floats for cbf_get_real_image. If elsize is not equal to sizeof + (char), sizeof (short), sizeof (int), sizeof(double) or + sizeof(float), the function returns CBF_ARGUMENT. + The parameter reserved is presently unused and should be set to 0. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. array Pointer to the destination array. elsize Size in + bytes of each destination array element. elsigned Set to non-0 if + the destination array elements are signed. ndimslow Slowest array + dimension. ndimmid Next faster array dimension. ndimfast Fastest + array dimension. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_real_image_sf_as_string(self, element_number, elsize, ndimslow, ndimfast) @@ -4976,13 +4992,12 @@ def get_realarray_as_string(self): For cbf_get_realarray, only IEEE format is supported. No conversion to other floating point formats is done at this time. ARGUMENTS - handle CBF handle. binary_id Pointer to the - destination integer binary identifier. array Pointer to the - destination array. elsize Size in bytes of each destination - array element. elsigned Set to non-0 if the destination array - elements are signed. elements The number of elements to read. - elements_read Pointer to the destination number of elements - actually read. + handle CBF handle. binary_id Pointer to the destination integer + binary identifier. array Pointer to the destination array. elsize + Size in bytes of each destination array element. elsigned Set to + non-0 if the destination array elements are signed. elements The + number of elements to read. elements_read Pointer to the + destination number of elements actually read. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5034,19 +5049,19 @@ def get_realarrayparameters(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5063,8 +5078,8 @@ def get_realarrayparameters_wdims(self): C prototype: int cbf_get_realarrayparameters_wdims (cbf_handle handle, unsigned int *compression, int *binary_id, size_t *elsize, - size_t *elements, const char **byteorder, size_t *dimfast, - size_t *dimmid, size_t *dimslow, size_t *padding); + size_t *elements, const char **byteorder, size_t *dimfast, + size_t *dimmid, size_t *dimslow, size_t *padding); CBFLib documentation: DESCRIPTION @@ -5101,19 +5116,19 @@ def get_realarrayparameters_wdims(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5129,9 +5144,9 @@ def get_realarrayparameters_wdims_fs(self): *args : C prototype: int cbf_get_realarrayparameters_wdims_fs (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - size_t *elements, const char **byteorder, size_t *dimfast, - size_t *dimmid, size_t *dimslow, size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + size_t *elements, const char **byteorder, size_t *dimfast, + size_t *dimmid, size_t *dimslow, size_t *padding); CBFLib documentation: DESCRIPTION @@ -5168,19 +5183,19 @@ def get_realarrayparameters_wdims_fs(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5196,9 +5211,9 @@ def get_realarrayparameters_wdims_sf(self): *args : C prototype: int cbf_get_realarrayparameters_wdims_sf (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - size_t *elements, const char **byteorder, size_t *dimslow, - size_t *dimmid, size_t *dimfast, size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + size_t *elements, const char **byteorder, size_t *dimslow, + size_t *dimmid, size_t *dimfast, size_t *padding); CBFLib documentation: DESCRIPTION @@ -5235,19 +5250,19 @@ def get_realarrayparameters_wdims_sf(self): count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS - handle CBF handle. compression Compression method used. - elsize Size in bytes of each array element. binary_id - Pointer to the destination integer binary identifier. elsigned - Pointer to an integer. Set to 1 if the elements can be read as signed - integers. elunsigned Pointer to an integer. Set to 1 if the - elements can be read as unsigned integers. elements Pointer to - the destination number of elements. minelement Pointer to the - destination smallest element. maxelement Pointer to the - destination largest element. byteorder Pointer to the destination - byte order. dimfast Pointer to the destination fastest - dimension. dimmid Pointer to the destination second fastest - dimension. dimslow Pointer to the destination third fastest - dimension. padding Pointer to the destination padding size. + handle CBF handle. compression Compression method used. elsize + Size in bytes of each array element. binary_id Pointer to the + destination integer binary identifier. elsigned Pointer to an + integer. Set to 1 if the elements can be read as signed integers. + elunsigned Pointer to an integer. Set to 1 if the elements can be + read as unsigned integers. elements Pointer to the destination + number of elements. minelement Pointer to the destination smallest + element. maxelement Pointer to the destination largest element. + byteorder Pointer to the destination byte order. dimfast Pointer + to the destination fastest dimension. dimmid Pointer to the + destination second fastest dimension. dimslow Pointer to the + destination third fastest dimension. padding Pointer to the + destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5263,18 +5278,18 @@ def get_reciprocal_cell(self): *args : C prototype: int cbf_get_reciprocal_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_get_reciprocal_cell sets cell[0:2] to the double values of the - reciprocal cell edge lengths a^*, b^* and c^* in Ångstroms^-1, - cell[3:5] to the double values of the reciprocal cell angles α^*, β^* - and γ^* in degrees, cell_esd[0:2] to the double values of the + reciprocal cell edge lengths a^*, b^* and c^* in ngstroms^-1, + cell[3:5] to the double values of the reciprocal cell angles a^*, b^* + and g^* in degrees, cell_esd[0:2] to the double values of the estimated strandard deviations of the reciprocal cell edge lengths - a^*, b^* and c^* in Ångstroms^-1, cell_esd[3:5] to the double values + a^*, b^* and c^* in ngstroms^-1, cell_esd[3:5] to the double values of the estimated standard deviations of the the reciprocal cell - angles α^*, β^* and γ^* in degrees. + angles a^*, b^* and g^* in degrees. The values returned are retrieved from the first row of the "cell " category. The value of "_cell.entry_id " is ignored. cell or cell_esd may be NULL. @@ -5284,9 +5299,9 @@ def get_reciprocal_cell(self): If the "cell " category is present, but some of the values are missing, zeros are returned for the missing values. ARGUMENTS - handle CBF handle. cell Pointer to the destination array of - 6 doubles for the reciprocal cell parameters. cell_esd Pointer to - the destination array of 6 doubles for the reciprocal cell parameter + handle CBF handle. cell Pointer to the destination array of 6 + doubles for the reciprocal cell parameters. cell_esd Pointer to the + destination array of 6 doubles for the reciprocal cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. No errors is @@ -5307,7 +5322,7 @@ def get_timestamp(self): *args : C prototype: int cbf_get_timestamp (cbf_handle handle, unsigned int reserved, - double *time, int *timezone); + double *time, int *timezone); CBFLib documentation: DESCRIPTION @@ -5322,7 +5337,7 @@ def get_timestamp(self): timezone Pointer to the destination timezone difference. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_timestamp(self) @@ -5359,7 +5374,7 @@ def get_typeofvalue(self): string "null ". The typeofvalue must not be modified by the program in any way. ARGUMENTS - handle CBF handle. typeofvalue Pointer to the destination + handle CBF handle. typeofvalue Pointer to the destination type-of-value string pointer. RETURN VALUE Returns an error code on failure or 0 for success. @@ -5375,16 +5390,16 @@ def get_unit_cell(self): *args : C prototype: int cbf_get_unit_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_get_unit_cell sets cell[0:2] to the double values of the cell - edge lengths a, b and c in Ångstroms, cell[3:5] to the double values - of the cell angles α, β and γ in degrees, cell_esd[0:2] to the double + edge lengths a, b and c in ngstroms, cell[3:5] to the double values + of the cell angles a, b and g in degrees, cell_esd[0:2] to the double values of the estimated strandard deviations of the cell edge lengths - a, b and c in Ångstroms, cell_esd[3:5] to the double values of the - estimated standard deviations of the the cell angles α, β and γ in + a, b and c in ngstroms, cell_esd[3:5] to the double values of the + estimated standard deviations of the the cell angles a, b and g in degrees. The values returned are retrieved from the first row of the "cell " category. The value of "_cell.entry_id " is ignored. @@ -5394,8 +5409,8 @@ def get_unit_cell(self): If the "cell " category is present, but some of the values are missing, zeros are returned for the missing values. ARGUMENTS - handle CBF handle. cell Pointer to the destination array of - 6 doubles for the cell parameters. cell_esd Pointer to the + handle CBF handle. cell Pointer to the destination array of 6 + doubles for the cell parameters. cell_esd Pointer to the destination array of 6 doubles for the cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. No errors is @@ -5448,12 +5463,12 @@ def get_wavelength(self): CBFLib documentation: DESCRIPTION - cbf_get_wavelength sets *wavelength to the current wavelength in Å. + cbf_get_wavelength sets *wavelength to the current wavelength in . ARGUMENTS handle CBF handle. wavelength Pointer to the destination. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_get_wavelength(self) @@ -5741,47 +5756,46 @@ def read_file(self, filename, headers): flags controls the interpretation of binary section headers, the parsing of brackets constructs and the parsing of treble-quoted strings. - MSG_DIGEST: Instructs CBFlib to check that the digest - of the binary section matches any header digest value. If the digests - do not match, the call will return CBF_FORMAT. This evaluation and - comparison is delayed (a "lazy " evaluation) to ensure maximal - processing efficiency. If an immediately evaluation is required, see - MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to - check that the digest of the binary section matches any header - digeste value. If the digests do not match, the call will return - CBF_FORMAT. This evaluation and comparison is performed during - initial parsing of the section to ensure timely error reporting at - the expense of processing efficiency. If a more efficient delayed ( - "lazy ") evaluation is required, see MSG_DIGEST, above. - MSG_DIGESTWARN: Instructs CBFlib to check that the digest - of the binary section matches any header digeste value. If the - digests do not match, a warning message will be sent to stderr, but - processing will attempt to continue. This evaluation and comparison - is first performed during initial parsing of the section to ensure - timely error reporting at the expense of processing efficiency. An - mismatch of the message digest usually indicates a serious error, but - it is sometimes worth continuing processing to try to isolate the - cause of the error. Use this option with caution. MSG_NODIGEST: - Do not check the digest (default). PARSE_BRACKETS: - Accept DDLm bracket-delimited [item,item,...item] or - {item,item,...item} or (item,item,...item) constructs as valid, + MSG_DIGEST: Instructs CBFlib to check that the digest of the binary + section matches any header digest value. If the digests do not match, + the call will return CBF_FORMAT. This evaluation and comparison is + delayed (a "lazy " evaluation) to ensure maximal processing + efficiency. If an immediately evaluation is required, see + MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to check that + the digest of the binary section matches any header digeste value. If + the digests do not match, the call will return CBF_FORMAT. This + evaluation and comparison is performed during initial parsing of the + section to ensure timely error reporting at the expense of processing + efficiency. If a more efficient delayed ( "lazy ") evaluation is + required, see MSG_DIGEST, above. MSG_DIGESTWARN: Instructs CBFlib + to check that the digest of the binary section matches any header + digeste value. If the digests do not match, a warning message will be + sent to stderr, but processing will attempt to continue. This + evaluation and comparison is first performed during initial parsing + of the section to ensure timely error reporting at the expense of + processing efficiency. An mismatch of the message digest usually + indicates a serious error, but it is sometimes worth continuing + processing to try to isolate the cause of the error. Use this option + with caution. MSG_NODIGEST: Do not check the digest (default). + PARSE_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] + or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple lines. PARSE_LIBERAL_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping embedded non-quoted, non-separating whitespace and comments. These constructs may span multiple lines. In this case, whitespace may be used as an - alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm + alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm triple-quoted " " "item,item,...item " " " or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' will not be interpreted as a quoted apoptrophe and " " " will not be interpreted as a quoted double - quote mark and PARSE_NOBRACKETS: Do not accept DDLm + quote mark and PARSE_NOBRACKETS: Do not accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple - lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted " + lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted " " "item,item,...item " " " or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' @@ -5790,7 +5804,7 @@ def read_file(self, filename, headers): CBFlib defers reading binary sections as long as possible. In the current version of CBFlib, this means that: 1. The file must be a random-access file opened in binary mode (fopen - ( , + ( """ return _pycbf.cbf_handle_struct_read_file(self, filename, headers) @@ -5813,7 +5827,7 @@ def read_template(self, filename): descriptor. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_read_template(self, filename) @@ -5841,47 +5855,46 @@ def read_widefile(self, filename, headers): flags controls the interpretation of binary section headers, the parsing of brackets constructs and the parsing of treble-quoted strings. - MSG_DIGEST: Instructs CBFlib to check that the digest - of the binary section matches any header digest value. If the digests - do not match, the call will return CBF_FORMAT. This evaluation and - comparison is delayed (a "lazy " evaluation) to ensure maximal - processing efficiency. If an immediately evaluation is required, see - MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to - check that the digest of the binary section matches any header - digeste value. If the digests do not match, the call will return - CBF_FORMAT. This evaluation and comparison is performed during - initial parsing of the section to ensure timely error reporting at - the expense of processing efficiency. If a more efficient delayed ( - "lazy ") evaluation is required, see MSG_DIGEST, above. - MSG_DIGESTWARN: Instructs CBFlib to check that the digest - of the binary section matches any header digeste value. If the - digests do not match, a warning message will be sent to stderr, but - processing will attempt to continue. This evaluation and comparison - is first performed during initial parsing of the section to ensure - timely error reporting at the expense of processing efficiency. An - mismatch of the message digest usually indicates a serious error, but - it is sometimes worth continuing processing to try to isolate the - cause of the error. Use this option with caution. MSG_NODIGEST: - Do not check the digest (default). PARSE_BRACKETS: - Accept DDLm bracket-delimited [item,item,...item] or - {item,item,...item} or (item,item,...item) constructs as valid, + MSG_DIGEST: Instructs CBFlib to check that the digest of the binary + section matches any header digest value. If the digests do not match, + the call will return CBF_FORMAT. This evaluation and comparison is + delayed (a "lazy " evaluation) to ensure maximal processing + efficiency. If an immediately evaluation is required, see + MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to check that + the digest of the binary section matches any header digeste value. If + the digests do not match, the call will return CBF_FORMAT. This + evaluation and comparison is performed during initial parsing of the + section to ensure timely error reporting at the expense of processing + efficiency. If a more efficient delayed ( "lazy ") evaluation is + required, see MSG_DIGEST, above. MSG_DIGESTWARN: Instructs CBFlib + to check that the digest of the binary section matches any header + digeste value. If the digests do not match, a warning message will be + sent to stderr, but processing will attempt to continue. This + evaluation and comparison is first performed during initial parsing + of the section to ensure timely error reporting at the expense of + processing efficiency. An mismatch of the message digest usually + indicates a serious error, but it is sometimes worth continuing + processing to try to isolate the cause of the error. Use this option + with caution. MSG_NODIGEST: Do not check the digest (default). + PARSE_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] + or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple lines. PARSE_LIBERAL_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping embedded non-quoted, non-separating whitespace and comments. These constructs may span multiple lines. In this case, whitespace may be used as an - alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm + alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm triple-quoted " " "item,item,...item " " " or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' will not be interpreted as a quoted apoptrophe and " " " will not be interpreted as a quoted double - quote mark and PARSE_NOBRACKETS: Do not accept DDLm + quote mark and PARSE_NOBRACKETS: Do not accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple - lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted " + lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted " " "item,item,...item " " " or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' @@ -5890,7 +5903,7 @@ def read_widefile(self, filename, headers): CBFlib defers reading binary sections as long as possible. In the current version of CBFlib, this means that: 1. The file must be a random-access file opened in binary mode (fopen - ( , + ( """ return _pycbf.cbf_handle_struct_read_widefile(self, filename, headers) @@ -6065,7 +6078,7 @@ def require_column_doublevalue(self, columnname, defaultvalue): *args : String columnname,Float Value C prototype: int cbf_require_column_doublevalue (cbf_handle handle, - const char *columnname, double *number, + const char *columnname, double *number, const double defaultvalue); CBFLib documentation: @@ -6076,10 +6089,10 @@ def require_column_doublevalue(self, columnname, defaultvalue): number, or to the number given by defaultvalue if the item cannot be found. ARGUMENTS - handle CBF handle. columnname Name of the column - containing the number. number pointer to the location to - receive the floating-point value. defaultvalue Value to use if the - requested column and value cannot be found. + handle CBF handle. columnname Name of the column containing the + number. number pointer to the location to receive the + floating-point value. defaultvalue Value to use if the requested + column and value cannot be found. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -6094,7 +6107,7 @@ def require_column_integervalue(self, columnname, defaultvalue): *args : String Columnvalue,Int default C prototype: int cbf_require_column_integervalue (cbf_handle handle, - const char *columnname, int *number, + const char *columnname, int *number, const int defaultvalue); CBFLib documentation: @@ -6104,10 +6117,10 @@ def require_column_integervalue(self, columnname, defaultvalue): *columnname, with the value interpreted as an integer number, or to the number given by defaultvalue if the item cannot be found. ARGUMENTS - handle CBF handle. columnname Name of the column - containing the number. number pointer to the location to - receive the integer value. defaultvalue Value to use if the - requested column and value cannot be found. + handle CBF handle. columnname Name of the column containing the + number. number pointer to the location to receive the integer + value. defaultvalue Value to use if the requested column and value + cannot be found. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -6122,7 +6135,7 @@ def require_column_value(self, columnname, defaultvalue): *args : String columnnanme,String Default C prototype: int cbf_require_column_value (cbf_handle handle, - const char *columnname, const char **value, + const char *columnname, const char **value, const char *defaultvalue); CBFLib documentation: @@ -6131,10 +6144,10 @@ def require_column_value(self, columnname, defaultvalue): current row for the column given with the name given by *columnname, or to the string given by defaultvalue if the item cannot be found. ARGUMENTS - handle CBF handle. columnname Name of the column - containing the number. value pointer to the location to - receive the value. defaultvalue Value to use if the requested - column and value cannot be found. + handle CBF handle. columnname Name of the column containing the + number. value pointer to the location to receive the value. + defaultvalue Value to use if the requested column and value cannot + be found. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -6149,7 +6162,7 @@ def require_datablock(self, arg): *args : C prototype: int cbf_require_datablock (cbf_handle handle, - const char *datablockname); + const char *datablockname); CBFLib documentation: DESCRIPTION @@ -6228,7 +6241,7 @@ def require_reference_detector(self, element_number): *args : Integer element_number C prototype: int cbf_require_reference_detector (cbf_handle handle, - cbf_detector *detector, unsigned int element_number); + cbf_detector *detector, unsigned int element_number); CBFLib documentation: DESCRIPTION @@ -6242,13 +6255,13 @@ def require_reference_detector(self, element_number): similar, but try to force the creations of missing intermediate categories needed to construct a detector object. ARGUMENTS - handle CBF handle. detector Pointer to the - destination detector handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. + handle CBF handle. detector Pointer to the destination detector + handle. element_number The number of the detector element counting + from 0 by order of appearance in the "diffrn_data_frame " + category. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_require_reference_detector(self, element_number) @@ -6260,7 +6273,7 @@ def require_tag_root(self, tagname): *args : String tagname C prototype: int cbf_require_tag_root (cbf_handle handle, const char* tagname, - const char** tagroot); + const char** tagroot); CBFLib documentation: DESCRIPTION @@ -6277,7 +6290,7 @@ def require_tag_root(self, tagname): tag root name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_require_tag_root(self, tagname) @@ -6289,7 +6302,7 @@ def require_value(self, defaultvalue): *args : String defaultvalue C prototype: int cbf_require_value (cbf_handle handle, const char **value, - const char *defaultvalue ); + const char *defaultvalue ); CBFLib documentation: DESCRIPTION @@ -6678,27 +6691,27 @@ def set_3d_image(self, element_number, compression, data, elsize, elsign, ndimsl int elsign,int dimslow,int dimmid,int dimfast C prototype: int cbf_set_3d_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, + size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -6708,35 +6721,6 @@ def set_3d_image(self, element_number, compression, data, elsize, elsign, ndimsl array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_3d_image(self, element_number, compression, data, elsize, elsign, ndimslow, ndimmid, ndimfast) @@ -6749,27 +6733,27 @@ def set_3d_image_fs(self, element_number, compression, data, elsize, elsign, ndi int elsign,int dimfast,int dimmid,int dimslow C prototype: int cbf_set_3d_image_fs(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimfast, - size_t ndimmid, size_t ndimslow); + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimfast, + size_t ndimmid, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -6779,35 +6763,6 @@ def set_3d_image_fs(self, element_number, compression, data, elsize, elsign, ndi array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_3d_image_fs(self, element_number, compression, data, elsize, elsign, ndimfast, ndimmid, ndimslow) @@ -6820,27 +6775,27 @@ def set_3d_image_sf(self, element_number, compression, data, elsize, elsign, ndi int elsign,int dimslow,int dimmid,int dimfast C prototype: int cbf_set_3d_image_sf(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, + size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -6850,35 +6805,6 @@ def set_3d_image_sf(self, element_number, compression, data, elsize, elsign, ndi array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_3d_image_sf(self, element_number, compression, data, elsize, elsign, ndimslow, ndimmid, ndimfast) @@ -6890,7 +6816,7 @@ def set_axis_setting(self, axis_id, start, increment): *args : String axis_id,Float start,Float increment C prototype: int cbf_set_axis_setting (cbf_handle handle, - unsigned int reserved, const char *axis_id, double start, + unsigned int reserved, const char *axis_id, double start, double increment); CBFLib documentation: @@ -6904,7 +6830,7 @@ def set_axis_setting(self, axis_id, start, increment): Increment value. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_axis_setting(self, axis_id, start, increment) @@ -6916,7 +6842,7 @@ def set_bin_sizes(self, element_number, slowbinsize_in, fastbinsize_in): *args : Integer element_number,Float slowbinsize_in,Float fastbinsize_in C prototype: int cbf_set_bin_sizes(cbf_handle handle, - unsigned int element_number, double slowbinsize_in, + unsigned int element_number, double slowbinsize_in, double fastbinsize_in); CBFLib documentation: @@ -6936,9 +6862,9 @@ def set_bin_sizes(self, element_number, slowbinsize_in, fastbinsize_in): In order to allow for software binning involving fractions of pixels, the bin sizes are doubles rather than ints. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. slowbinsize Pointer to the + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. slowbinsize Pointer to the returned number of pixels composing one array element in the dimension that changes at the second-fastest rate. fastbinsize Pointer to the returned number of pixels composing one array element @@ -6949,7 +6875,7 @@ def set_bin_sizes(self, element_number, slowbinsize_in, fastbinsize_in): at the fastest rate. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_bin_sizes(self, element_number, slowbinsize_in, fastbinsize_in) @@ -6961,7 +6887,7 @@ def set_category_root(self, categoryname, categoryroot): *args : String categoryname,String categoryroot C prototype: int cbf_set_category_root (cbf_handle handle, - const char* categoryname_in, const char*categoryroot); + const char* categoryname_in, const char*categoryroot); CBFLib documentation: DESCRIPTION @@ -6979,7 +6905,7 @@ def set_category_root(self, categoryname, categoryroot): root name. categoryroot_in input category root name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_category_root(self, categoryname, categoryroot) @@ -7001,7 +6927,7 @@ def set_crystal_id(self, arg): handle CBF handle. crystal_id ASCII value. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_crystal_id(self, arg) @@ -7013,7 +6939,7 @@ def set_current_timestamp(self, timezone): *args : Integer timezone C prototype: int cbf_set_current_timestamp (cbf_handle handle, - unsigned int reserved, int timezone); + unsigned int reserved, int timezone); CBFLib documentation: DESCRIPTION @@ -7029,7 +6955,7 @@ def set_current_timestamp(self, timezone): CBF_NOTIMEZONE. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_current_timestamp(self, timezone) @@ -7041,7 +6967,7 @@ def set_datablockname(self, arg): *args : C prototype: int cbf_set_datablockname (cbf_handle handle, - const char *datablockname); + const char *datablockname); CBFLib documentation: DESCRIPTION @@ -7068,14 +6994,27 @@ def set_datestamp(self, year, month, day, hour, minute, second, timezone, precis int timezone,Float precision C prototype: int cbf_set_datestamp (cbf_handle handle, unsigned int reserved, - int year, int month, int day, int hour, int minute, - double second, int timezone, double precision); + int year, int month, int day, int hour, int minute, + double second, int timezone, double precision); CBFLib documentation: DESCRIPTION cbf_set_datestamp sets the collection timestamp in seconds since January 1 1970 to the value specified by time. The timezone - difference from UTC + difference from UTC in minutes is set to timezone. If no timezone is + desired, timezone should be CBF_NOTIM EZONE. The parameter reserved + is presently unused and should be set to 0. + The precision of the new timestamp is specified by the value + precision in seconds. If precision is 0, the saved timestamp is + assumed accurate to 1 second. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. time Timestamp in seconds since January 1 1970. + timezone Timezone difference from UTC in minutes or CBF_NOTIMEZONE. + precision Timestamp precision in seconds. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_datestamp(self, year, month, day, hour, minute, second, timezone, precision) @@ -7103,7 +7042,7 @@ def set_dictionary(self, other): dictionary. dictionary_in CBF handle of dcitionary. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_dictionary(self, other) @@ -7127,7 +7066,7 @@ def set_diffrn_id(self, arg): handle CBF handle. diffrn_id ASCII value. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_diffrn_id(self, arg) @@ -7139,7 +7078,7 @@ def set_divergence(self, div_x_source, div_y_source, div_x_y_source): *args : Float div_x_source,Float div_y_source,Float div_x_y_source C prototype: int cbf_set_divergence (cbf_handle handle, double div_x_source, - double div_y_source, double div_x_y_source); + double div_y_source, double div_x_y_source); CBFLib documentation: DESCRIPTION @@ -7151,7 +7090,7 @@ def set_divergence(self, div_x_source, div_y_source, div_x_y_source): div_x_y_source New value of div_x_y_source. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_divergence(self, div_x_source, div_y_source, div_x_y_source) @@ -7187,20 +7126,20 @@ def set_gain(self, element_number, gain, gain_esd): *args : Float gain,Float gain_esd C prototype: int cbf_set_gain (cbf_handle handle, unsigned int element_number, - double gain, double gain_esd); + double gain, double gain_esd); CBFLib documentation: DESCRIPTION cbf_set_gain sets the gain of element number element_number to the values specified by gain and gain_esd. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. gain New gain value. - gain_esd New gain_esd value. + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. gain New gain value. gain_esd + New gain_esd value. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_gain(self, element_number, gain, gain_esd) @@ -7213,27 +7152,27 @@ def set_image(self, element_number, compression, data, elsize, elsign, ndimslow, int elsign,int dimslow,int dimfast C prototype: int cbf_set_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7243,35 +7182,6 @@ def set_image(self, element_number, compression, data, elsize, elsign, ndimslow, array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_image(self, element_number, compression, data, elsize, elsign, ndimslow, ndimfast) @@ -7284,27 +7194,27 @@ def set_image_fs(self, element_number, compression, data, elsize, elsign, ndimfa int elsign,int dimfast,int dimslow C prototype: int cbf_set_image_fs(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimfast, + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7314,35 +7224,6 @@ def set_image_fs(self, element_number, compression, data, elsize, elsign, ndimfa array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_image_fs(self, element_number, compression, data, elsize, elsign, ndimfast, ndimslow) @@ -7355,27 +7236,27 @@ def set_image_sf(self, element_number, compression, data, elsize, elsign, ndimsl int elsign,int dimslow,int dimfast C prototype: int cbf_set_image_sf(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7385,35 +7266,6 @@ def set_image_sf(self, element_number, compression, data, elsize, elsign, ndimsl array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_image_sf(self, element_number, compression, data, elsize, elsign, ndimslow, ndimfast) @@ -7426,8 +7278,8 @@ def set_integerarray(self, compression, binary_id, data, elsize, elsigned, eleme int elsigned,int elements C prototype: int cbf_set_integerarray (cbf_handle handle, - unsigned int compression, int binary_id, void *array, - size_t elsize, int elsigned, size_t elements); + unsigned int compression, int binary_id, void *array, + size_t elsize, int elsigned, size_t elements); CBFLib documentation: DESCRIPTION @@ -7448,32 +7300,17 @@ def set_integerarray(self, compression, binary_id, data, elsize, elsigned, eleme the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_integerarray(self, compression, binary_id, data, elsize, elsigned, elements) @@ -7511,32 +7348,17 @@ def set_integerarray_wdims(self, compression, binary_id, data, elsize, elsigned, the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_integerarray_wdims(self, compression, binary_id, data, elsize, elsigned, elements, bo, dimfast, dimmid, dimslow, padding) @@ -7574,32 +7396,17 @@ def set_integerarray_wdims_fs(self, compression, binary_id, data, elsize, elsign the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_integerarray_wdims_fs(self, compression, binary_id, data, elsize, elsigned, elements, bo, dimfast, dimmid, dimslow, padding) @@ -7637,32 +7444,17 @@ def set_integerarray_wdims_sf(self, compression, binary_id, data, elsize, elsign the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_integerarray_wdims_sf(self, compression, binary_id, data, elsize, elsigned, elements, bo, dimslow, dimmid, dimfast, padding) @@ -7695,7 +7487,7 @@ def set_integration_time(self, time): *args : Float time C prototype: int cbf_set_integration_time (cbf_handle handle, - unsigned int reserved, double time); + unsigned int reserved, double time); CBFLib documentation: DESCRIPTION @@ -7707,7 +7499,7 @@ def set_integration_time(self, time): other than 0 is invalid. time Integration time in seconds. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_integration_time(self, time) @@ -7721,7 +7513,7 @@ def set_orientation_matrix(self, m0, m1, m2, m3, m4, m5, m6, m7, m8): Float matrix_8 C prototype: int cbf_set_orientation_matrix (cbf_handle handle, - double ub_matrix[9]); + double ub_matrix[9]); CBFLib documentation: DESCRIPTION @@ -7734,11 +7526,11 @@ def set_orientation_matrix(self, m0, m1, m2, m3, m4, m5, m6, m7, m8): cbf_set_orientation_matrix sets the values in the "diffrn " category to the values pointed to by ub_matrix. ARGUMENTS - handle CBF handle. ubmatric Source or destination array of 9 + handle CBF handle. ubmatric Source or destination array of 9 doubles giving the orientation matrix parameters. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_orientation_matrix(self, m0, m1, m2, m3, m4, m5, m6, m7, m8) @@ -7750,19 +7542,19 @@ def set_overload(self, element_number, overload): *args : Integer element_number,Float overload C prototype: int cbf_set_overload (cbf_handle handle, - unsigned int element_number, double overload); + unsigned int element_number, double overload); CBFLib documentation: DESCRIPTION cbf_set_overload sets the overload value of element number element_number to overload. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. overload New overload value. + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. overload New overload value. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_overload(self, element_number, overload) @@ -7774,23 +7566,22 @@ def set_pixel_size(self, element_number, axis_number, psize): *args : Int element_number,Int axis_number,Float pixel size C prototype: int cbf_set_pixel_size (cbf_handle handle, - unsigned int element_number, int axis_number, - double psize); + unsigned int element_number, int axis_number, double psize); CBFLib documentation: DESCRIPTION cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the - "size " column of the "array_structure_list " category at the - row which matches axis axis_number of the detector element + "e;size"e; column of the "array_structure_list " category + at the row which matches axis axis_number of the detector element element_number converting the double pixel size psize from meters to millimeters in storing it in the "size " column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the slowest axis. - cbf_set_pixel_size_fs sets the item in the "size " column of the - "array_structure_list " category at the row which matches axis - axis_number of the detector element element_number converting the - double pixel size psize from meters to millimeters in storing it in - the "size " column for the axis axis_number of the detector + cbf_set_pixel_size_fs sets the item in the "e;size"e; column + of the "array_structure_list " category at the row which matches + axis axis_number of the detector element element_number converting + the double pixel size psize from meters to millimeters in storing it + in the "size " column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the fastest axis. If a negative axis number is given, the order of axes is reversed, so @@ -7803,10 +7594,14 @@ def set_pixel_size(self, element_number, axis_number, psize): If the pixel size is not given explcitly in the "array_element_size category ", the function returns CBF_NOTFOUND. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. axis_number The number of the - axis, fastest first, starting from 1. + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. axis_number The number of the + axis, fastest first, starting from 1. psize The pixel size in + millimeters. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_pixel_size(self, element_number, axis_number, psize) @@ -7818,23 +7613,22 @@ def set_pixel_size_fs(self, element_number, axis_number, psize): *args : Int element_number,Int axis_number,Float pixel size C prototype: int cbf_set_pixel_size_fs(cbf_handle handle, - unsigned int element_number, int axis_number, - double psize); + unsigned int element_number, int axis_number, double psize); CBFLib documentation: DESCRIPTION cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the - "size " column of the "array_structure_list " category at the - row which matches axis axis_number of the detector element + "e;size"e; column of the "array_structure_list " category + at the row which matches axis axis_number of the detector element element_number converting the double pixel size psize from meters to millimeters in storing it in the "size " column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the slowest axis. - cbf_set_pixel_size_fs sets the item in the "size " column of the - "array_structure_list " category at the row which matches axis - axis_number of the detector element element_number converting the - double pixel size psize from meters to millimeters in storing it in - the "size " column for the axis axis_number of the detector + cbf_set_pixel_size_fs sets the item in the "e;size"e; column + of the "array_structure_list " category at the row which matches + axis axis_number of the detector element element_number converting + the double pixel size psize from meters to millimeters in storing it + in the "size " column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the fastest axis. If a negative axis number is given, the order of axes is reversed, so @@ -7847,10 +7641,14 @@ def set_pixel_size_fs(self, element_number, axis_number, psize): If the pixel size is not given explcitly in the "array_element_size category ", the function returns CBF_NOTFOUND. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. axis_number The number of the - axis, fastest first, starting from 1. + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. axis_number The number of the + axis, fastest first, starting from 1. psize The pixel size in + millimeters. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_pixel_size_fs(self, element_number, axis_number, psize) @@ -7862,23 +7660,22 @@ def set_pixel_size_sf(self, element_number, axis_number, psize): *args : Int element_number,Int axis_number,Float pixel size C prototype: int cbf_set_pixel_size_sf(cbf_handle handle, - unsigned int element_number, int axis_number, - double psize); + unsigned int element_number, int axis_number, double psize); CBFLib documentation: DESCRIPTION cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the - "size " column of the "array_structure_list " category at the - row which matches axis axis_number of the detector element + "e;size"e; column of the "array_structure_list " category + at the row which matches axis axis_number of the detector element element_number converting the double pixel size psize from meters to millimeters in storing it in the "size " column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the slowest axis. - cbf_set_pixel_size_fs sets the item in the "size " column of the - "array_structure_list " category at the row which matches axis - axis_number of the detector element element_number converting the - double pixel size psize from meters to millimeters in storing it in - the "size " column for the axis axis_number of the detector + cbf_set_pixel_size_fs sets the item in the "e;size"e; column + of the "array_structure_list " category at the row which matches + axis axis_number of the detector element element_number converting + the double pixel size psize from meters to millimeters in storing it + in the "size " column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the fastest axis. If a negative axis number is given, the order of axes is reversed, so @@ -7891,10 +7688,14 @@ def set_pixel_size_sf(self, element_number, axis_number, psize): If the pixel size is not given explcitly in the "array_element_size category ", the function returns CBF_NOTFOUND. ARGUMENTS - handle CBF handle. element_number The number of the - detector element counting from 0 by order of appearance in the - "diffrn_data_frame " category. axis_number The number of the - axis, fastest first, starting from 1. + handle CBF handle. element_number The number of the detector + element counting from 0 by order of appearance in the + "diffrn_data_frame " category. axis_number The number of the + axis, fastest first, starting from 1. psize The pixel size in + millimeters. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_pixel_size_sf(self, element_number, axis_number, psize) @@ -7906,8 +7707,7 @@ def set_polarization(self, polarizn_source_ratio, polarizn_source_norm): *args : Float polarizn_source_ratio,Float polarizn_source_norm C prototype: int cbf_set_polarization (cbf_handle handle, - double polarizn_source_ratio, - double polarizn_source_norm); + double polarizn_source_ratio, double polarizn_source_norm); CBFLib documentation: DESCRIPTION @@ -7919,7 +7719,7 @@ def set_polarization(self, polarizn_source_ratio, polarizn_source_norm): polarizn_source_norm. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_polarization(self, polarizn_source_ratio, polarizn_source_norm) @@ -7932,27 +7732,27 @@ def set_real_3d_image(self, element_number, compression, data, elsize, ndimslow, int dimslow,int dimmid,int dimfast C prototype: int cbf_set_real_3d_image (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, - size_t ndimslow, size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, + size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7962,35 +7762,6 @@ def set_real_3d_image(self, element_number, compression, data, elsize, ndimslow, array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_real_3d_image(self, element_number, compression, data, elsize, ndimslow, ndimmid, ndimfast) @@ -8003,27 +7774,27 @@ def set_real_3d_image_fs(self, element_number, compression, data, elsize, ndimfa int dimfast,int dimmid,int dimslow C prototype: int cbf_set_real_3d_image_fs(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, - size_t ndimfast, size_t ndimmid, size_t ndimslow); + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, + size_t ndimfast, size_t ndimmid, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -8033,35 +7804,6 @@ def set_real_3d_image_fs(self, element_number, compression, data, elsize, ndimfa array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_real_3d_image_fs(self, element_number, compression, data, elsize, ndimfast, ndimmid, ndimslow) @@ -8074,27 +7816,27 @@ def set_real_3d_image_sf(self, element_number, compression, data, elsize, ndimsl int dimslow,int dimmid,int dimfast C prototype: int cbf_set_real_3d_image_sf(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, - size_t ndimslow, size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, + size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -8104,35 +7846,6 @@ def set_real_3d_image_sf(self, element_number, compression, data, elsize, ndimsl array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_real_3d_image_sf(self, element_number, compression, data, elsize, ndimslow, ndimmid, ndimfast) @@ -8145,27 +7858,27 @@ def set_real_image(self, element_number, compression, data, elsize, ndimslow, nd int dimslow,int dimfast C prototype: int cbf_set_real_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array,size_t elsize, size_t ndimslow, + unsigned int element_number, unsigned int compression, + void *array,size_t elsize, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -8175,35 +7888,6 @@ def set_real_image(self, element_number, compression, data, elsize, ndimslow, nd array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_real_image(self, element_number, compression, data, elsize, ndimslow, ndimfast) @@ -8216,27 +7900,27 @@ def set_real_image_fs(self, element_number, compression, data, elsize, ndimfast, int dimfast,int dimslow C prototype: int cbf_set_real_image_fs(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -8246,35 +7930,6 @@ def set_real_image_fs(self, element_number, compression, data, elsize, ndimfast, array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_real_image_fs(self, element_number, compression, data, elsize, ndimfast, ndimslow) @@ -8287,27 +7942,27 @@ def set_real_image_sf(self, element_number, compression, data, elsize, ndimslow, int dimslow,int dimfast C prototype: int cbf_set_real_image_sf(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of - ndimfast×ndimslow elements of elsize bytes each, starting at array. + ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array - consists of ndimfast×ndimslow IEEE double or float elements of elsize + consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow + element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number - element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE + element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -8317,35 +7972,6 @@ def set_real_image_sf(self, element_number, compression, data, elsize, ndimslow, array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. - The array will be compressed using the compression scheme specifed by - compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - The values compressed are limited to 64 bits. If any element in the - array is larger than 64 bits, the value compressed is the nearest - 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned)for cbf_set_image, or IEEE doubles or floats for - cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof - (int), sizeof(double) or sizeof(float), the function returns - CBF_ARGUMENT. - The parameter reserved is presently unused and should be set to 0. - ARGUMENTS - handle CBF handle. reserved Unused. Any value other - than 0 is invalid. element_number The number of the detector - element counting from 0 by order of appearance in the - "diffrn_data_frame " category. compression Compression type. - array Pointer to the image array. elsize Size in - bytes of each image array element. elsigned Set to non-0 if - the image array elements are signed. ndimslow Slowest array - dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. - RETURN VALUE - Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- """ return _pycbf.cbf_handle_struct_set_real_image_sf(self, element_number, compression, data, elsize, ndimslow, ndimfast) @@ -8380,32 +8006,17 @@ def set_realarray(self, compression, binary_id, data, elsize, elements): the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_realarray(self, compression, binary_id, data, elsize, elements) @@ -8419,10 +8030,10 @@ def set_realarray_wdims(self, compression, binary_id, data, elsize, elements, bo int padding C prototype: int cbf_set_realarray_wdims (cbf_handle handle, - unsigned int compression, int binary_id, void *array, - size_t elsize, size_t elements, const char *byteorder, - size_t dimfast, size_t dimmid, size_t dimslow, - size_t padding); + unsigned int compression, int binary_id, void *array, + size_t elsize, size_t elements, const char *byteorder, + size_t dimfast, size_t dimmid, size_t dimslow, + size_t padding); CBFLib documentation: DESCRIPTION @@ -8443,32 +8054,17 @@ def set_realarray_wdims(self, compression, binary_id, data, elsize, elements, bo the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_realarray_wdims(self, compression, binary_id, data, elsize, elements, bo, dimfast, dimmid, dimslow, padding) @@ -8483,9 +8079,9 @@ def set_realarray_wdims_fs(self, compression, binary_id, data, elsize, elements, C prototype: int cbf_set_realarray_wdims_fs (cbf_handle handle, unsigned int compression, int binary_id, void *array, - size_t elsize, size_t elements, const char *byteorder, - size_t dimfast, size_t dimmid, size_t dimslow, - size_t padding); + size_t elsize, size_t elements, const char *byteorder, + size_t dimfast, size_t dimmid, size_t dimslow, + size_t padding); CBFLib documentation: DESCRIPTION @@ -8506,32 +8102,17 @@ def set_realarray_wdims_fs(self, compression, binary_id, data, elsize, elements, the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_realarray_wdims_fs(self, compression, binary_id, data, elsize, elements, bo, dimfast, dimmid, dimslow, padding) @@ -8546,9 +8127,9 @@ def set_realarray_wdims_sf(self, compression, binary_id, data, elsize, elements, C prototype: int cbf_set_realarray_wdims_sf (cbf_handle handle, unsigned int compression, int binary_id, void *array, - size_t elsize, size_t elements, const char *byteorder, - size_t dimslow, size_t dimmid, size_t dimfast, - size_t padding); + size_t elsize, size_t elements, const char *byteorder, + size_t dimslow, size_t dimmid, size_t dimfast, + size_t padding); CBFLib documentation: DESCRIPTION @@ -8569,32 +8150,17 @@ def set_realarray_wdims_sf(self, compression, binary_id, data, elsize, elements, the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: - CBF_CANONICAL Canonical-code compression (section 3.3.1) - CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple "byte_offset " compression. CBF_NIBBLE_OFFSET Simple - "nibble_offset " compression. CBF_NONE No compression. - NOTE: This scheme is by far the slowest of the four and uses much - more disk space. It is intended for routine use with small arrays - only. With large arrays (like images) it should be used only for - debugging. + CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style + packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple + "byte_offset " compression. CBF_NIBBLE_OFFSET Simple + "nibble_offset " compression. CBF_NONE No compression. NOTE: This + scheme is by far the slowest of the four and uses much more disk + space. It is intended for routine use with small arrays only. With + large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. - Currently, the source array must consist of chars, shorts or ints - (signed or unsigned), for cbf_set_integerarray, or IEEE doubles or - floats for cbf_set_realarray. If elsize is not equal to sizeof - (char), sizeof (short) or sizeof (int), the function returns - CBF_ARGUMENT. - ARGUMENTS - handle CBF handle. compression Compression method to use. - binary_id Integer binary identifier. array Pointer to the - source array. elsize Size in bytes of each source array - element. elsigned Set to non-0 if the source array elements are - signed. elements: The number of elements in the array. - RETURN VALUE - Returns an error code on failure or 0 for success. - SEE ALSO """ return _pycbf.cbf_handle_struct_set_realarray_wdims_sf(self, compression, binary_id, data, elsize, elements, bo, dimslow, dimmid, dimfast, padding) @@ -8606,19 +8172,19 @@ def set_reciprocal_cell(self, cell): *args : double cell[6] C prototype: int cbf_set_reciprocal_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_reciprocal_cell sets the reciprocal cell parameters to the double values given in cell[0:2] for the reciprocal cell edge lengths - a^*, b^* and c^* in Ångstroms^-1, the double values given in - cell[3:5] for the reciprocal cell angles α^*, β^* and γ^* in degrees, - the double values given in cell_esd[0:2] for the estimated strandard + a^*, b^* and c^* in ngstroms^-1, the double values given in cell[3:5] + for the reciprocal cell angles a^*, b^* and g^* in degrees, the + double values given in cell_esd[0:2] for the estimated strandard deviations of the reciprocal cell edge lengths a^*, b^* and c^* in - Ångstroms, and the double values given in cell_esd[3:5] for the - estimated standard deviations of the reciprocal cell angles α^*, β^* - and γ^* in degrees. + ngstroms, and the double values given in cell_esd[3:5] for the + estimated standard deviations of the reciprocal cell angles a^*, b^* + and g^* in degrees. The values are placed in the first row of the "cell " category. If no value has been given for "_cell.entry_id ", it is set to the value of the "diffrn.id " entry of the current data block. @@ -8628,9 +8194,9 @@ def set_reciprocal_cell(self, cell): If the "cell " category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS - handle CBF handle. cell Pointer to the array of 6 doubles - for the reciprocal cell parameters. cell_esd Pointer to the array - of 6 doubles for the reciprocal cell parameter esds. + handle CBF handle. cell Pointer to the array of 6 doubles for the + reciprocal cell parameters. cell_esd Pointer to the array of 6 + doubles for the reciprocal cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8645,19 +8211,19 @@ def set_reciprocal_cell_esd(self, cell_esd): *args : double cell_esd[6] C prototype: int cbf_set_reciprocal_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_reciprocal_cell sets the reciprocal cell parameters to the double values given in cell[0:2] for the reciprocal cell edge lengths - a^*, b^* and c^* in Ångstroms^-1, the double values given in - cell[3:5] for the reciprocal cell angles α^*, β^* and γ^* in degrees, - the double values given in cell_esd[0:2] for the estimated strandard + a^*, b^* and c^* in ngstroms^-1, the double values given in cell[3:5] + for the reciprocal cell angles a^*, b^* and g^* in degrees, the + double values given in cell_esd[0:2] for the estimated strandard deviations of the reciprocal cell edge lengths a^*, b^* and c^* in - Ångstroms, and the double values given in cell_esd[3:5] for the - estimated standard deviations of the reciprocal cell angles α^*, β^* - and γ^* in degrees. + ngstroms, and the double values given in cell_esd[3:5] for the + estimated standard deviations of the reciprocal cell angles a^*, b^* + and g^* in degrees. The values are placed in the first row of the "cell " category. If no value has been given for "_cell.entry_id ", it is set to the value of the "diffrn.id " entry of the current data block. @@ -8667,9 +8233,9 @@ def set_reciprocal_cell_esd(self, cell_esd): If the "cell " category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS - handle CBF handle. cell Pointer to the array of 6 doubles - for the reciprocal cell parameters. cell_esd Pointer to the array - of 6 doubles for the reciprocal cell parameter esds. + handle CBF handle. cell Pointer to the array of 6 doubles for the + reciprocal cell parameters. cell_esd Pointer to the array of 6 + doubles for the reciprocal cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8684,7 +8250,7 @@ def set_saveframename(self, arg): *args : C prototype: int cbf_set_saveframename (cbf_handle handle, - const char *saveframename); + const char *saveframename); CBFLib documentation: DESCRIPTION @@ -8710,7 +8276,7 @@ def set_tag_category(self, tagname, categoryname_in): *args : String tagname,String categoryname_in C prototype: int cbf_set_tag_category (cbf_handle handle, const char* tagname, - const char* categoryname_in); + const char* categoryname_in); CBFLib documentation: DESCRIPTION @@ -8724,7 +8290,7 @@ def set_tag_category(self, tagname, categoryname_in): categoryname_in input category name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_tag_category(self, tagname, categoryname_in) @@ -8736,7 +8302,7 @@ def set_tag_root(self, tagname, tagroot_in): *args : String tagname,String tagroot_in C prototype: int cbf_set_tag_root (cbf_handle handle, const char* tagname, - const char*tagroot_in); + const char*tagroot_in); CBFLib documentation: DESCRIPTION @@ -8753,7 +8319,7 @@ def set_tag_root(self, tagname, tagroot_in): tag root name. RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_tag_root(self, tagname, tagroot_in) @@ -8765,13 +8331,26 @@ def set_timestamp(self, time, timezone, precision): *args : Float time,Integer timezone,Float precision C prototype: int cbf_set_timestamp (cbf_handle handle, unsigned int reserved, - double time, int timezone, double precision); + double time, int timezone, double precision); CBFLib documentation: DESCRIPTION cbf_set_timestamp sets the collection timestamp in seconds since January 1 1970 to the value specified by time. The timezone - difference from UTC + difference from UTC in minutes is set to timezone. If no timezone is + desired, timezone should be CBF_NOTIM EZONE. The parameter reserved + is presently unused and should be set to 0. + The precision of the new timestamp is specified by the value + precision in seconds. If precision is 0, the saved timestamp is + assumed accurate to 1 second. + ARGUMENTS + handle CBF handle. reserved Unused. Any value other than 0 is + invalid. time Timestamp in seconds since January 1 1970. + timezone Timezone difference from UTC in minutes or + CBF_NOTIMEZONE. precision Timestamp precision in seconds. + RETURN VALUE + Returns an error code on failure or 0 for success. + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_timestamp(self, time, timezone, precision) @@ -8827,18 +8406,17 @@ def set_unit_cell(self, cell): *args : double cell[6] C prototype: int cbf_set_unit_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_unit_cell sets the cell parameters to the double values given - in cell[0:2] for the cell edge lengths a, b and c in Ångstroms, the - double values given in cell[3:5] for the cell angles α, β and γ in + in cell[0:2] for the cell edge lengths a, b and c in ngstroms, the + double values given in cell[3:5] for the cell angles a, b and g in degrees, the double values given in cell_esd[0:2] for the estimated - strandard deviations of the cell edge lengths a, b and c in - Ångstroms, and the double values given in cell_esd[3:5] for the - estimated standard deviations of the the cell angles α, β and γ in - degrees. + strandard deviations of the cell edge lengths a, b and c in ngstroms, + and the double values given in cell_esd[3:5] for the estimated + standard deviations of the the cell angles a, b and g in degrees. The values are placed in the first row of the "cell " category. If no value has been given for "_cell.entry_id ", it is set to the value of the "diffrn.id " entry of the current data block. @@ -8848,9 +8426,9 @@ def set_unit_cell(self, cell): If the "cell " category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS - handle CBF handle. cell Pointer to the array of 6 doubles - for the cell parameters. cell_esd Pointer to the array of 6 doubles - for the cell parameter esds. + handle CBF handle. cell Pointer to the array of 6 doubles for the + cell parameters. cell_esd Pointer to the array of 6 doubles for the + cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8865,18 +8443,17 @@ def set_unit_cell_esd(self, cell_esd): *args : double cell_esd[6] C prototype: int cbf_set_unit_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_unit_cell sets the cell parameters to the double values given - in cell[0:2] for the cell edge lengths a, b and c in Ångstroms, the - double values given in cell[3:5] for the cell angles α, β and γ in + in cell[0:2] for the cell edge lengths a, b and c in ngstroms, the + double values given in cell[3:5] for the cell angles a, b and g in degrees, the double values given in cell_esd[0:2] for the estimated - strandard deviations of the cell edge lengths a, b and c in - Ångstroms, and the double values given in cell_esd[3:5] for the - estimated standard deviations of the the cell angles α, β and γ in - degrees. + strandard deviations of the cell edge lengths a, b and c in ngstroms, + and the double values given in cell_esd[3:5] for the estimated + standard deviations of the the cell angles a, b and g in degrees. The values are placed in the first row of the "cell " category. If no value has been given for "_cell.entry_id ", it is set to the value of the "diffrn.id " entry of the current data block. @@ -8886,9 +8463,9 @@ def set_unit_cell_esd(self, cell_esd): If the "cell " category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS - handle CBF handle. cell Pointer to the array of 6 doubles - for the cell parameters. cell_esd Pointer to the array of 6 doubles - for the cell parameter esds. + handle CBF handle. cell Pointer to the array of 6 doubles for the + cell parameters. cell_esd Pointer to the array of 6 doubles for the + cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8927,12 +8504,12 @@ def set_wavelength(self, wavelength): CBFLib documentation: DESCRIPTION - cbf_set_wavelength sets the current wavelength in Å to wavelength. + cbf_set_wavelength sets the current wavelength in to wavelength. ARGUMENTS - handle CBF handle. wavelength Wavelength in Å. + handle CBF handle. wavelength Wavelength in . RETURN VALUE Returns an error code on failure or 0 for success. - ---------------------------------------------------------------------- + __________________________________________________________________ """ return _pycbf.cbf_handle_struct_set_wavelength(self, wavelength) @@ -8961,6 +8538,54 @@ def write_file(self, filename, ciforcbf, headers, encoding): non-0 to indicate to CBFlib that the file can be used as a buffer to conserve disk space. If the file is not random-access or not readable, readable must be 0. + If readable is non-0, CBFlib will close the file when it is no longer + required, otherwise this is the responsibility of the program. + ciforcbf selects the format in which the binary sections are written: + CIF Write an imgCIF file. CBF Write a CBF file (default). + flags selects the type of header used in CBF binary sections, selects + whether message digests are generated, and controls the style of + output. The value of flags can be a logical OR of any of: + MIME_HEADERS Use MIME-type headers (default). MIME_NOHEADERS Use + a simple ASCII headers. MSG_DIGEST Generate message digests for + binary data validation. MSG_NODIGEST Do not generate message + digests (default). PARSE_BRACKETS Do not convert bracketed strings + to text fields (default). PARSE_LIBERAL_BRACKETS Do not convert + bracketed strings to text fields (default). PARSE_NOBRACKETS + Convert bracketed strings to text fields (default). + PARSE_TRIPLE_QUOTES Do not convert triple-quoted strings to text + fields (default). PARSE_NOTRIPLE_QUOTES Convert triple-quoted + strings to text fields (default). PAD_1K Pad binary sections with + 1023 nulls. PAD_2K Pad binary sections with 2047 nulls. PAD_4K + Pad binary sections with 4095 nulls. + Note that on output, the types "prns&, "brcs " and "bkts " + will be converted to "text " fields if PARSE_NOBRACKETS has been + set flags, and that the types "tsqs " and "tdqs " will be + converted to "text " fields if the flag PARSE_NOTRIPLE_QUOTES has + been set in the flags. It is an error to set PARSE_NOBRACKETS and to + set either PARSE_BRACKETS or PARSE_LIBERAL_BRACKETS. It is an error + to set both PARSE_NOTRIPLE_QUOTES and PARSE_TRIPLE_QUOTES. + encoding selects the type of encoding used for binary sections and + the type of line-termination in imgCIF files. The value can be a + logical OR of any of: + ENC_BASE64 Use BASE64 encoding (default). ENC_QP Use + QUOTED-PRINTABLE encoding. ENC_BASE8 Use BASE8 (octal) encoding. + ENC_BASE10 Use BASE10 (decimal) encoding. ENC_BASE16 Use BASE16 + (hexadecimal) encoding. ENC_FORWARD For BASE8, BASE10 or BASE16 + encoding, map bytes to words forward (1234) (default on little-endian + machines). ENC_BACKWARD Map bytes to words backward (4321) (default + on big-endian machines). ENC_CRTERM Terminate lines with CR. + ENC_LFTERM Terminate lines with LF (default). + ARGUMENTS + handle CBF handle. file Pointer to a file descriptor. readable + If non-0: this file is random-access and readable and can be used as + a buffer. ciforcbf Selects the format in which the binary sections + are written (CIF/CBF). headers Selects the type of header in CBF + binary sections and message digest generation. encoding Selects the + type of encoding used for binary sections and the type of + line-termination in imgCIF files. + RETURN VALUE + Returns an error code on failure or 0 for success. + SEE ALSO """ return _pycbf.cbf_handle_struct_write_file(self, filename, ciforcbf, headers, encoding) @@ -8972,7 +8597,7 @@ def write_widefile(self, filename, ciforcbf, headers, encoding): *args : String filename,Integer ciforcbf,Integer Headers,Integer encoding C prototype: int cbf_write_widefile (cbf_handle handle, FILE *file, - int readable, int ciforcbf, int flags, int encoding); + int readable, int ciforcbf, int flags, int encoding); CBFLib documentation: DESCRIPTION @@ -8989,6 +8614,54 @@ def write_widefile(self, filename, ciforcbf, headers, encoding): non-0 to indicate to CBFlib that the file can be used as a buffer to conserve disk space. If the file is not random-access or not readable, readable must be 0. + If readable is non-0, CBFlib will close the file when it is no longer + required, otherwise this is the responsibility of the program. + ciforcbf selects the format in which the binary sections are written: + CIF Write an imgCIF file. CBF Write a CBF file (default). + flags selects the type of header used in CBF binary sections, selects + whether message digests are generated, and controls the style of + output. The value of flags can be a logical OR of any of: + MIME_HEADERS Use MIME-type headers (default). MIME_NOHEADERS Use + a simple ASCII headers. MSG_DIGEST Generate message digests for + binary data validation. MSG_NODIGEST Do not generate message + digests (default). PARSE_BRACKETS Do not convert bracketed strings + to text fields (default). PARSE_LIBERAL_BRACKETS Do not convert + bracketed strings to text fields (default). PARSE_NOBRACKETS + Convert bracketed strings to text fields (default). + PARSE_TRIPLE_QUOTES Do not convert triple-quoted strings to text + fields (default). PARSE_NOTRIPLE_QUOTES Convert triple-quoted + strings to text fields (default). PAD_1K Pad binary sections with + 1023 nulls. PAD_2K Pad binary sections with 2047 nulls. PAD_4K + Pad binary sections with 4095 nulls. + Note that on output, the types "prns&, "brcs " and "bkts " + will be converted to "text " fields if PARSE_NOBRACKETS has been + set flags, and that the types "tsqs " and "tdqs " will be + converted to "text " fields if the flag PARSE_NOTRIPLE_QUOTES has + been set in the flags. It is an error to set PARSE_NOBRACKETS and to + set either PARSE_BRACKETS or PARSE_LIBERAL_BRACKETS. It is an error + to set both PARSE_NOTRIPLE_QUOTES and PARSE_TRIPLE_QUOTES. + encoding selects the type of encoding used for binary sections and + the type of line-termination in imgCIF files. The value can be a + logical OR of any of: + ENC_BASE64 Use BASE64 encoding (default). ENC_QP Use + QUOTED-PRINTABLE encoding. ENC_BASE8 Use BASE8 (octal) encoding. + ENC_BASE10 Use BASE10 (decimal) encoding. ENC_BASE16 Use BASE16 + (hexadecimal) encoding. ENC_FORWARD For BASE8, BASE10 or BASE16 + encoding, map bytes to words forward (1234) (default on little-endian + machines). ENC_BACKWARD Map bytes to words backward (4321) (default + on big-endian machines). ENC_CRTERM Terminate lines with CR. + ENC_LFTERM Terminate lines with LF (default). + ARGUMENTS + handle CBF handle. file Pointer to a file descriptor. readable + If non-0: this file is random-access and readable and can be used as + a buffer. ciforcbf Selects the format in which the binary sections + are written (CIF/CBF). headers Selects the type of header in CBF + binary sections and message digest generation. encoding Selects the + type of encoding used for binary sections and the type of + line-termination in imgCIF files. + RETURN VALUE + Returns an error code on failure or 0 for success. + SEE ALSO """ return _pycbf.cbf_handle_struct_write_widefile(self, filename, ciforcbf, headers, encoding) @@ -8996,7 +8669,6 @@ def write_widefile(self, filename, ciforcbf, headers, encoding): # Register cbf_handle_struct in _pycbf: _pycbf.cbf_handle_struct_swigregister(cbf_handle_struct) - cvar = _pycbf.cvar HAS_SWIG_PYTHON_STRICT_BYTE_CHAR = cvar.HAS_SWIG_PYTHON_STRICT_BYTE_CHAR diff --git a/swig/cbfdetectorwrappers.i b/swig/cbfdetectorwrappers.i index 88b24f5..2b71b1e 100644 --- a/swig/cbfdetectorwrappers.i +++ b/swig/cbfdetectorwrappers.i @@ -38,7 +38,7 @@ Returns : double index1,double index2,double center1,double center2 *args : C prototype: int cbf_get_beam_center (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -85,14 +85,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_beam_center; %apply double *OUTPUT {double *index1, double *index2, @@ -107,7 +107,7 @@ Returns : double indexfast,double indexslow,double centerfast,double centerslow *args : C prototype: int cbf_get_beam_center_fs (cbf_detector detector, - double *indexfast, double *indexslow, double *centerfast, + double *indexfast, double *indexslow, double *centerfast, double *centerslow); CBFLib documentation: @@ -154,14 +154,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_beam_center_fs; %apply double *OUTPUT {double *indexfast, double *indexslow, @@ -176,7 +176,7 @@ Returns : double indexslow,double indexfast,double centerslow,double centerfast *args : C prototype: int cbf_get_beam_center_sf (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -223,14 +223,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_beam_center_sf; %apply double *OUTPUT {double *indexslow, double *indexfast, @@ -246,8 +246,8 @@ Returns : double slowaxis1,double slowaxis2,double slowaxis3,double fastaxis1, *args : C prototype: int cbf_get_detector_axes (cbf_detector detector, - double *slowaxis1, double *slowaxis2, double *slowaxis3, - double *fastaxis1, double *fastaxis2, double *fastaxis3); + double *slowaxis1, double *slowaxis2, double *slowaxis3, + double *fastaxis1, double *fastaxis2, double *fastaxis3); CBFLib documentation: DESCRIPTION @@ -266,20 +266,19 @@ and *axis_id2 to the names of the two surface axes of the detector or \". \", Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. slowaxis1 Pointer to the destination x +detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the -fast axis vector. axis_id1 Pointer to the destination first -surface axis name. axis_id1 Pointer to the destination first -surface axis name. axis_id2 Pointer to the destination second -surface axis name. +fast axis vector. axis_id1 Pointer to the destination first surface +axis name. axis_id1 Pointer to the destination first surface axis +name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_detector_axes; %apply double *OUTPUT {double *slowaxis1, double *slowaxis2, double *slowaxis3, @@ -297,8 +296,8 @@ Returns : double fastaxis1,double fastaxis2,double fastaxis3,double slowaxis1, *args : C prototype: int cbf_get_detector_axes_fs (cbf_detector detector, - double *fastaxis1, double *fastaxis2, double *fastaxis3, - double *slowaxis1, double *slowaxis2, double *slowaxis3); + double *fastaxis1, double *fastaxis2, double *fastaxis3, + double *slowaxis1, double *slowaxis2, double *slowaxis3); CBFLib documentation: DESCRIPTION @@ -317,20 +316,19 @@ and *axis_id2 to the names of the two surface axes of the detector or \". \", Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. slowaxis1 Pointer to the destination x +detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the -fast axis vector. axis_id1 Pointer to the destination first -surface axis name. axis_id1 Pointer to the destination first -surface axis name. axis_id2 Pointer to the destination second -surface axis name. +fast axis vector. axis_id1 Pointer to the destination first surface +axis name. axis_id1 Pointer to the destination first surface axis +name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_detector_axes; %apply double *OUTPUT {double *slowaxis1, double *slowaxis2, double *slowaxis3, @@ -348,8 +346,8 @@ Returns : double slowaxis1,double slowaxis2,double slowaxis3,double fastaxis1, *args : C prototype: int cbf_get_detector_axes_sf (cbf_detector detector, - double *slowaxis1, double *slowaxis2, double *slowaxis3, - double *fastaxis1, double *fastaxis2, double *fastaxis3); + double *slowaxis1, double *slowaxis2, double *slowaxis3, + double *fastaxis1, double *fastaxis2, double *fastaxis3); CBFLib documentation: DESCRIPTION @@ -368,20 +366,19 @@ and *axis_id2 to the names of the two surface axes of the detector or \". \", Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. slowaxis1 Pointer to the destination x +detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the -fast axis vector. axis_id1 Pointer to the destination first -surface axis name. axis_id1 Pointer to the destination first -surface axis name. axis_id2 Pointer to the destination second -surface axis name. +fast axis vector. axis_id1 Pointer to the destination first surface +axis name. axis_id1 Pointer to the destination first surface axis +name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_detector_axes_sf; %apply double *OUTPUT {double *slowaxis1, double *slowaxis2, double *slowaxis3, @@ -398,7 +395,7 @@ Returns : double fastaxis1,double fastaxis2,double fastaxis3 *args : C prototype: int cbf_get_detector_axis_fast (cbf_detector detector, - double *fastaxis1, double *fastaxis2, double *fastaxis3); + double *fastaxis1, double *fastaxis2, double *fastaxis3); CBFLib documentation: DESCRIPTION @@ -417,20 +414,19 @@ and *axis_id2 to the names of the two surface axes of the detector or \". \", Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. slowaxis1 Pointer to the destination x +detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the -fast axis vector. axis_id1 Pointer to the destination first -surface axis name. axis_id1 Pointer to the destination first -surface axis name. axis_id2 Pointer to the destination second -surface axis name. +fast axis vector. axis_id1 Pointer to the destination first surface +axis name. axis_id1 Pointer to the destination first surface axis +name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_detector_axis_fast; %apply double *OUTPUT {double *fastaxis1, double *fastaxis2, double *fastaxis3}; @@ -444,7 +440,7 @@ Returns : double slowaxis1,double slowaxis2,double slowaxis3 *args : C prototype: int cbf_get_detector_axis_slow (cbf_detector detector, - double *slowaxis1, double *slowaxis2, double *slowaxis3); + double *slowaxis1, double *slowaxis2, double *slowaxis3); CBFLib documentation: DESCRIPTION @@ -463,20 +459,19 @@ and *axis_id2 to the names of the two surface axes of the detector or \". \", Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. slowaxis1 Pointer to the destination x +detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the -fast axis vector. axis_id1 Pointer to the destination first -surface axis name. axis_id1 Pointer to the destination first -surface axis name. axis_id2 Pointer to the destination second -surface axis name. +fast axis vector. axis_id1 Pointer to the destination first surface +axis name. axis_id1 Pointer to the destination first surface axis +name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_detector_axis_slow; %apply double *OUTPUT {double *slowaxis1, double *slowaxis2, double *slowaxis3}; @@ -490,7 +485,7 @@ Returns : double distance *args : C prototype: int cbf_get_detector_distance (cbf_detector detector, - double *distance); + double *distance); CBFLib documentation: DESCRIPTION @@ -501,7 +496,7 @@ detector Detector handle. distance Pointer to the destination distance. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_detector_distance; %apply double *OUTPUT {double *distance}; @@ -513,7 +508,7 @@ Returns : double normal1,double normal2,double normal3 *args : C prototype: int cbf_get_detector_normal (cbf_detector detector, - double *normal1, double *normal2, double *normal3); + double *normal1, double *normal2, double *normal3); CBFLib documentation: DESCRIPTION @@ -522,13 +517,13 @@ cbf_get_detector_normal sets *normal1, *normal2, and *normal3 to the vector is normalized. Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. normal1 Pointer to the destination x -component of the normal vector. normal2 Pointer to the destination -y component of the normal vector. normal3 Pointer to the +detector Detector handle. normal1 Pointer to the destination x +component of the normal vector. normal2 Pointer to the destination +y component of the normal vector. normal3 Pointer to the destination z component of the normal vector. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_detector_normal; %apply double *OUTPUT {double *normal1, double *normal2, double *normal3}; @@ -543,7 +538,7 @@ Returns : String *args : Integer index C prototype: int cbf_get_detector_surface_axes(cbf_detector detector, - const char * * axis_id1, const char * * axis_id2); + const char * * axis_id1, const char * * axis_id2); CBFLib documentation: DESCRIPTION @@ -562,20 +557,19 @@ and *axis_id2 to the names of the two surface axes of the detector or \". \", Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. slowaxis1 Pointer to the destination x +detector Detector handle. slowaxis1 Pointer to the destination x component of the slow axis vector. slowaxis2 Pointer to the destination y component of the slow axis vector. slowaxis3 Pointer to the destination z component of the slow axis vector. fastaxis1 Pointer to the destination x component of the fast axis vector. fastaxis2 Pointer to the destination y component of the fast axis vector. fastaxis3 Pointer to the destination z component of the -fast axis vector. axis_id1 Pointer to the destination first -surface axis name. axis_id1 Pointer to the destination first -surface axis name. axis_id2 Pointer to the destination second -surface axis name. +fast axis vector. axis_id1 Pointer to the destination first surface +axis name. axis_id1 Pointer to the destination first surface axis +name. axis_id2 Pointer to the destination second surface axis name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")cbf_get_detector_surface_axes; const char * get_detector_surface_axes (int index ){ @@ -594,7 +588,7 @@ Returns : Float pixel size *args : Int axis_number C prototype: int cbf_get_inferred_pixel_size (cbf_detector detector, - int axis_number, double *psize); + int axis_number, double *psize); CBFLib documentation: DESCRIPTION @@ -606,16 +600,6 @@ cbf_get_inferred_pixel_size_fs sets *psize to point to the double value in millimeters of the pixel size for the axis axis_number value. The fast index is treated as axis 1 and the next slower index is treated as axis 2. -If the axis number is negative, the axes are used in the reverse -order so that an axis_number of -1 indicates the fast axes in a call -to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and -indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs. -ARGUMENTS -detector Detector handle. axis_number The number of the axis. -area Pointer to the destination pizel size in mm. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")get_inferred_pixel_size; %apply double *OUTPUT { double *psize } get_inferred_pixel_size; @@ -627,7 +611,7 @@ Returns : Float pixel size *args : Int axis_number C prototype: int cbf_get_inferred_pixel_size_fs(cbf_detector detector, - int axis_number, double *psize); + int axis_number, double *psize); CBFLib documentation: DESCRIPTION @@ -639,16 +623,6 @@ cbf_get_inferred_pixel_size_fs sets *psize to point to the double value in millimeters of the pixel size for the axis axis_number value. The fast index is treated as axis 1 and the next slower index is treated as axis 2. -If the axis number is negative, the axes are used in the reverse -order so that an axis_number of -1 indicates the fast axes in a call -to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and -indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs. -ARGUMENTS -detector Detector handle. axis_number The number of the axis. -area Pointer to the destination pizel size in mm. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")get_inferred_pixel_size_fs; %apply double *OUTPUT { double *psize } get_inferred_pixel_size; @@ -660,7 +634,7 @@ Returns : Float pixel size *args : Int axis_number C prototype: int cbf_get_inferred_pixel_size_sf(cbf_detector detector, - int axis_number, double *psize); + int axis_number, double *psize); CBFLib documentation: DESCRIPTION @@ -672,16 +646,6 @@ cbf_get_inferred_pixel_size_fs sets *psize to point to the double value in millimeters of the pixel size for the axis axis_number value. The fast index is treated as axis 1 and the next slower index is treated as axis 2. -If the axis number is negative, the axes are used in the reverse -order so that an axis_number of -1 indicates the fast axes in a call -to cbf_get_inferred_pixel_size or cbf_get_inferred_pixel_size_sf and -indicates the fast axis in a call to cbf_get_inferred_pixel_size_fs. -ARGUMENTS -detector Detector handle. axis_number The number of the axis. -area Pointer to the destination pizel size in mm. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")get_inferred_pixel_size_sf; %apply double *OUTPUT { double *psize } get_inferred_pixel_size; @@ -693,7 +657,7 @@ Returns : double area,double projected_area *args : double index1,double index2 C prototype: int cbf_get_pixel_area (cbf_detector detector, double indexslow, - double indexfast, double *area, double *projected_area); + double indexfast, double *area, double *projected_area); CBFLib documentation: DESCRIPTION @@ -710,7 +674,7 @@ destination area in mm2. projected_area Pointer to the destination apparent area in mm2. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_area; %apply double *OUTPUT{double *area,double *projected_area}; @@ -724,7 +688,7 @@ Returns : double area,double projected_area *args : double indexfast,double indexslow C prototype: int cbf_get_pixel_area_fs(cbf_detector detector, - double indexfast, double indexslow, double *area, + double indexfast, double indexslow, double *area, double *projected_area); CBFLib documentation: @@ -742,7 +706,7 @@ destination area in mm2. projected_area Pointer to the destination apparent area in mm2. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_area_fs; %apply double *OUTPUT{double *area,double *projected_area}; @@ -756,7 +720,7 @@ Returns : double area,double projected_area *args : double indexslow,double indexfast C prototype: int cbf_get_pixel_area_sf(cbf_detector detector, - double indexslow, double indexfast, double *area, + double indexslow, double indexfast, double *area, double *projected_area); CBFLib documentation: @@ -774,7 +738,7 @@ destination area in mm2. projected_area Pointer to the destination apparent area in mm2. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_area_sf; %apply double *OUTPUT{double *area,double *projected_area}; @@ -788,8 +752,8 @@ Returns : double coordinate1,double coordinate2,double coordinate3 *args : double index1,double index2 C prototype: int cbf_get_pixel_coordinates (cbf_detector detector, - double indexslow, double indexfast, double *coordinate1, - double *coordinate2, double *coordinate3); + double indexslow, double indexfast, double *coordinate1, + double *coordinate2, double *coordinate3); CBFLib documentation: DESCRIPTION @@ -806,7 +770,7 @@ coordinate2 Pointer to the destination y component. coordinate3 Pointer to the destination z component. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_coordinates; %apply double *OUTPUT {double *coordinate1, @@ -823,8 +787,8 @@ Returns : double coordinate1,double coordinate2,double coordinate3 *args : double indexfast,double indexslow C prototype: int cbf_get_pixel_coordinates_fs (cbf_detector detector, - double indexfast, double indexslow, double *coordinate1, - double *coordinate2, double *coordinate3); + double indexfast, double indexslow, double *coordinate1, + double *coordinate2, double *coordinate3); CBFLib documentation: DESCRIPTION @@ -841,7 +805,7 @@ coordinate2 Pointer to the destination y component. coordinate3 Pointer to the destination z component. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_coordinates_fs; %apply double *OUTPUT {double *coordinate1, @@ -857,8 +821,8 @@ Returns : double coordinate1,double coordinate2,double coordinate3 *args : double indexslow,double indexfast C prototype: int cbf_get_pixel_coordinates_sf (cbf_detector detector, - double indexslow, double indexfast, double *coordinate1, - double *coordinate2, double *coordinate3); + double indexslow, double indexfast, double *coordinate1, + double *coordinate2, double *coordinate3); CBFLib documentation: DESCRIPTION @@ -875,7 +839,7 @@ coordinate2 Pointer to the destination y component. coordinate3 Pointer to the destination z component. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_coordinates_sf; %apply double *OUTPUT {double *coordinate1, @@ -891,7 +855,7 @@ Returns : double normal1,double normal2,double normal3 *args : double index1,double index2 C prototype: int cbf_get_pixel_normal (cbf_detector detector, - double indexslow, double indexfast, double *normal1, + double indexslow, double indexfast, double *normal1, double *normal2, double *normal3); CBFLib documentation: @@ -902,14 +866,14 @@ components of the of the normal vector to the pixel at (indexfast, indexslow). The vector is normalized. Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. indexslow Slow index. indexfast Fast -index. normal1 Pointer to the destination x component of the -normal vector. normal2 Pointer to the destination y component of -the normal vector. normal3 Pointer to the destination z component -of the normal vector. +detector Detector handle. indexslow Slow index. indexfast Fast +index. normal1 Pointer to the destination x component of the normal +vector. normal2 Pointer to the destination y component of the +normal vector. normal3 Pointer to the destination z component of +the normal vector. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_normal; %apply double *OUTPUT {double *normal1, double *normal2, double *normal3}; @@ -924,7 +888,7 @@ Returns : double normal1,double normal2,double normal3 *args : double indexfast,double indexslow C prototype: int cbf_get_pixel_normal_fs (cbf_detector detector, - double indexfast, double indexslow, double *normal1, + double indexfast, double indexslow, double *normal1, double *normal2, double *normal3); CBFLib documentation: @@ -935,14 +899,14 @@ components of the of the normal vector to the pixel at (indexfast, indexslow). The vector is normalized. Any of the destination pointers may be NULL. ARGUMENTS -detector Detector handle. indexslow Slow index. indexfast Fast -index. normal1 Pointer to the destination x component of the -normal vector. normal2 Pointer to the destination y component of -the normal vector. normal3 Pointer to the destination z component -of the normal vector. +detector Detector handle. indexslow Slow index. indexfast Fast +index. normal1 Pointer to the destination x component of the normal +vector. normal2 Pointer to the destination y component of the +normal vector. normal3 Pointer to the destination z component of +the normal vector. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_normal_fs; %apply double *OUTPUT {double *normal1, double *normal2, double *normal3}; @@ -957,7 +921,7 @@ Returns : *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_beam_center (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1004,14 +968,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_beam_center; void set_beam_center(double *indexslow, double *indexfast, @@ -1024,7 +988,7 @@ Returns : *args : double indexfast,double indexslow,double centerfast,double centerslow C prototype: int cbf_set_beam_center_fs (cbf_detector detector, - double *indexfast, double *indexslow, double *centerfast, + double *indexfast, double *indexslow, double *centerfast, double *centerslow); CBFLib documentation: @@ -1071,14 +1035,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_beam_center_fs; void set_beam_center_fs(double *indexfast, double *indexslow, @@ -1091,7 +1055,7 @@ Returns : *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_beam_center_sf (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1138,14 +1102,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_beam_center_sf; void set_beam_center_sf(double *indexslow, double *indexfast, @@ -1158,7 +1122,7 @@ Returns : *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_reference_beam_center (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1205,14 +1169,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_reference_beam_center; void set_reference_beam_center(double *indexslow, double *indexfast, @@ -1225,7 +1189,7 @@ Returns : *args : double indexfast,double indexslow,double centerfast,double centerslow C prototype: int cbf_set_reference_beam_center_fs (cbf_detector detector, - double *indexfast, double *indexslow, double *centerfast, + double *indexfast, double *indexslow, double *centerfast, double *centerslow); CBFLib documentation: @@ -1272,14 +1236,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_reference_beam_center_fs; void set_reference_beam_center_fs(double *indexfast, double *indexslow, @@ -1292,7 +1256,7 @@ Returns : *args : double indexslow,double indexfast,double centerslow,double centerfast C prototype: int cbf_set_reference_beam_center_sf (cbf_detector detector, - double *indexslow, double *indexfast, double *centerslow, + double *indexslow, double *indexfast, double *centerslow, double *centerfast); CBFLib documentation: @@ -1339,14 +1303,14 @@ and _diffrn_detector_element.reference_center_slow in millimetres and the value of _diffrn_detector_element.reference_units will be set to 'mm'. ARGUMENTS -detector Detector handle. indexfast Pointer to the destination -fast index. indexslow Pointer to the destination slow index. +detector Detector handle. indexfast Pointer to the destination +fast index. indexslow Pointer to the destination slow index. centerfast Pointer to the destination displacement along the fast axis. centerslow Pointer to the destination displacement along the slow axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_reference_beam_center_sf; void set_reference_beam_center_sf(double *indexslow, double *indexfast, diff --git a/swig/cbfgenericwrappers.i b/swig/cbfgenericwrappers.i index f2051cc..0bb462e 100644 --- a/swig/cbfgenericwrappers.i +++ b/swig/cbfgenericwrappers.i @@ -7,14 +7,14 @@ %feature("autodoc","1"); /* cfunc cbf_airy_disk pyfunc airy_disk - arg double x arg double y arg double cenx arg double ceny arg double volume arg double fwhm arg double * value */ + arg double x arg double y arg double cenx arg double ceny arg double volume arg double fwhm arg double * value */ %feature("autodoc", " Returns : Float value *args : double x,double y,double cenx,double ceny,double volume,double fwhm C prototype: int cbf_airy_disk(double x, double y, double cenx, double ceny, - double volume, double fwhm, double * value); + double volume, double fwhm, double * value); CBFLib documentation: DESCRIPTION @@ -31,22 +31,21 @@ The Airy function used is an 8-digit approximation up to the first minimum, after which it is forced to zero, so it cannot be used to simulate diffraction rings. ARGUMENTS -x the x-coordinate of a point in the real plane y -the y-coordinate of a point in the real plane xlo the -x-coordinate of a point in the real plane marking the left bound of -integration ylo the y-coordinate of a point in the real plane -marking the bottom bound of integration xhi the x-coordinate -of a point in the real plane marking the right bound of integration -yhi the y-coordinate of a point in the real plane marking the -top bound of integration cenx the x-coordinate of a point in -the real plane marking the PSF center ceny the y-coordinate of -a point in the real plane marking the PSF center volume the -total volume of the PSF fwhm the full-width at half max of the -PSF value Pointer to the value of the Airy function volumeout -Pointer to the value of the integral/TR> +x the x-coordinate of a point in the real plane y the +y-coordinate of a point in the real plane xlo the x-coordinate of a +point in the real plane marking the left bound of integration ylo +the y-coordinate of a point in the real plane marking the bottom +bound of integration xhi the x-coordinate of a point in the real +plane marking the right bound of integration yhi the y-coordinate +of a point in the real plane marking the top bound of integration +cenx the x-coordinate of a point in the real plane marking the PSF +center ceny the y-coordinate of a point in the real plane marking +the PSF center volume the total volume of the PSF fwhm the +full-width at half max of the PSF value Pointer to the value of the +Airy function volumeout Pointer to the value of the integral/TR> RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")airy_disk; %apply double *OUTPUT {double *value}; @@ -59,7 +58,7 @@ cbf_failnez(cbf_airy_disk(x,y,cenx,ceny,volume,fwhm,value)); /* cfunc cbf_airy_disk_volume pyfunc airy_disk_volume - arg double xlo arg double ylo arg double xhi arg double yhi arg double cenx arg double ceny arg double volume arg double fwhm arg double * volumeout */ + arg double xlo arg double ylo arg double xhi arg double yhi arg double cenx arg double ceny arg double volume arg double fwhm arg double * volumeout */ %feature("autodoc", " Returns : Float volumeout @@ -67,8 +66,8 @@ Returns : Float volumeout double volume,double fwhm C prototype: int cbf_airy_disk_volume(double xlo, double ylo, double xhi, - double yhi, double cenx, double ceny, double volume, - double fwhm, double * volumeout); + double yhi, double cenx, double ceny, double volume, + double fwhm, double * volumeout); CBFLib documentation: DESCRIPTION @@ -85,22 +84,21 @@ The Airy function used is an 8-digit approximation up to the first minimum, after which it is forced to zero, so it cannot be used to simulate diffraction rings. ARGUMENTS -x the x-coordinate of a point in the real plane y -the y-coordinate of a point in the real plane xlo the -x-coordinate of a point in the real plane marking the left bound of -integration ylo the y-coordinate of a point in the real plane -marking the bottom bound of integration xhi the x-coordinate -of a point in the real plane marking the right bound of integration -yhi the y-coordinate of a point in the real plane marking the -top bound of integration cenx the x-coordinate of a point in -the real plane marking the PSF center ceny the y-coordinate of -a point in the real plane marking the PSF center volume the -total volume of the PSF fwhm the full-width at half max of the -PSF value Pointer to the value of the Airy function volumeout -Pointer to the value of the integral/TR> +x the x-coordinate of a point in the real plane y the +y-coordinate of a point in the real plane xlo the x-coordinate of a +point in the real plane marking the left bound of integration ylo +the y-coordinate of a point in the real plane marking the bottom +bound of integration xhi the x-coordinate of a point in the real +plane marking the right bound of integration yhi the y-coordinate +of a point in the real plane marking the top bound of integration +cenx the x-coordinate of a point in the real plane marking the PSF +center ceny the y-coordinate of a point in the real plane marking +the PSF center volume the total volume of the PSF fwhm the +full-width at half max of the PSF value Pointer to the value of the +Airy function volumeout Pointer to the value of the integral/TR> RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")airy_disk_volume; %apply double *OUTPUT {double *volumeout}; @@ -125,8 +123,8 @@ CBFLib documentation: DESCRIPTION cbf_compute_cell_volume sets *volume to point to the volume of the unit cell computed from the double values in cell[0:2] for the cell -edge lengths a, b and c in Ångstroms and the double values given in -cell[3:5] for the cell angles α, β and γ in degrees. +edge lengths a, b and c in ngstroms and the double values given in +cell[3:5] for the cell angles a, b and g in degrees. ARGUMENTS cell Pointer to the array of 6 doubles giving the cell parameters. volume Pointer to the doubles for cell volume. @@ -158,17 +156,16 @@ CBFLib documentation: DESCRIPTION cbf_compute_reciprocal_cell sets rcell to point to the array of reciprocal cell parameters computed from the double values cell[0:2] -giving the cell edge lengths a, b and c in Ångstroms, and the double -values cell[3:5] giving the cell angles α, β and γ in degrees. The +giving the cell edge lengths a, b and c in ngstroms, and the double +values cell[3:5] giving the cell angles a, b and g in degrees. The double values rcell[0:2] will be set to the reciprocal cell lengths -a^*, b^* and c^* in Ångstroms^-1 and the double values rcell[3:5] -will be set to the reciprocal cell angles α^*, β^* and γ^* in -degrees. +a^*, b^* and c^* in ngstroms^-1 and the double values rcell[3:5] will +be set to the reciprocal cell angles a^*, b^* and g^* in degrees. ARGUMENTS -cell Pointer to the array of 6 doubles giving the cell -parameters. rcell Pointer to the destination array of 6 doubles -giving the reciprocal cell parameters. volume Pointer to the -doubles for cell volume. +cell Pointer to the array of 6 doubles giving the cell parameters. +rcell Pointer to the destination array of 6 doubles giving the +reciprocal cell parameters. volume Pointer to the doubles for cell +volume. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -221,7 +218,7 @@ byte_order pointer to the returned string real_format pointer to the returned string RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_local_integer_byte_order; %cstring_output_allocate_size(char **bo, int *bolen, free(*$1)); @@ -267,7 +264,7 @@ byte_order pointer to the returned string real_format pointer to the returned string RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_local_real_byte_order; %cstring_output_allocate_size(char **bo, int *bolen, free(*$1)); @@ -313,7 +310,7 @@ byte_order pointer to the returned string real_format pointer to the returned string RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_local_real_format; %cstring_output_allocate_size(char **rf, int *rflen, free(*$1)); diff --git a/swig/cbfgoniometerwrappers.i b/swig/cbfgoniometerwrappers.i index aea70e2..c68e0d2 100644 --- a/swig/cbfgoniometerwrappers.i +++ b/swig/cbfgoniometerwrappers.i @@ -49,8 +49,8 @@ Returns : Float vector1,Float vector2,Float vector3,Float offset1,Float offset2, *args : Float ratio C prototype: int cbf_get_goniometer_poise(cbf_goniometer goniometer, - double ratio, double * vector1, double * vector2, - double * vector3, double * offset1, double * offset2, + double ratio, double * vector1, double * vector2, + double * vector3, double * offset1, double * offset2, double * offset3, double * angle); CBFLib documentation: @@ -82,19 +82,18 @@ offset2, offset3 to point to the components of the axis base offset vector for axis axis_id unmodified by axis rotations. Any of the pointers may be specified as NULL. ARGUMENTS -handle CBF handle. ratio A number between 0 and 1 -indication how far into the frame to go vector1 Pointer to the -first component of the axis vector vector2 Pointer to the second -component of the axis vector vector3 Pointer to the third -component of the axis vector offset1 Pointer to the first -component of the axis offset offset2 Pointer to the second -component of the axis offset offset3 Pointer to the third -component of the axis offset angle Pointer to the rotation -angle axis_id The specified axis frame_id The specified +handle CBF handle. ratio A number between 0 and 1 indication how +far into the frame to go vector1 Pointer to the first component of +the axis vector vector2 Pointer to the second component of the axis +vector vector3 Pointer to the third component of the axis vector +offset1 Pointer to the first component of the axis offset offset2 +Pointer to the second component of the axis offset offset3 Pointer +to the third component of the axis offset angle Pointer to the +rotation angle axis_id The specified axis frame_id The specified frame positioner CBF goniometer RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_goniometer_poise; %apply double *OUTPUT {double * vector1, double * vector2, double * vector3, double * offset1, double * offset2, double * offset3, @@ -114,10 +113,10 @@ Returns : double reciprocal1,double reciprocal2,double reciprocal3 *args : double ratio,double wavelength,double real1,double real2,double real3 C prototype: int cbf_get_reciprocal (cbf_goniometer goniometer, - unsigned int reserved, double ratio, double wavelength, - double real1, double real2, double real3, + unsigned int reserved, double ratio, double wavelength, + double real1, double real2, double real3, double *reciprocal1, double *reciprocal2, - double *reciprocal3); + double *reciprocal3); CBFLib documentation: DESCRIPTION @@ -126,25 +125,24 @@ reciprocal3 to the 3 components of the of the reciprocal-space vector corresponding to the real-space vector (real1, real2, real3). The reciprocal-space vector is oriented to correspond to the goniometer setting with all axes at 0. The value wavelength is the wavlength in -Å and the value ratio specifies the current goniometer setting and +and the value ratio specifies the current goniometer setting and varies from 0.0 at the beginning of the exposur e to 1.0 at the end, irrespective of the actual rotation range. Any of the destination pointers may be NULL. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -goniometer Goniometer handle. reserved Unused. Any value -other than 0 is invalid. ratio Goniometer setting. 0 = -beginning of exposure, 1 = end. wavelength Wavelength in Å. real1 - x component of the real-space vector. real2 y -component of the real-space vector. real3 z component of the -real-space vector. reciprocal1 Pointer to the destination x -component of the reciprocal-space vector. reciprocal2 Pointer to -the destination y component of the reciprocal-space vector. -reciprocal3 Pointer to the destination z component of the -reciprocal-space vector. +goniometer Goniometer handle. reserved Unused. Any value other +than 0 is invalid. ratio Goniometer setting. 0 = beginning of +exposure, 1 = end. wavelength Wavelength in . real1 x component +of the real-space vector. real2 y component of the real-space +vector. real3 z component of the real-space vector. reciprocal1 +Pointer to the destination x component of the reciprocal-space +vector. reciprocal2 Pointer to the destination y component of the +reciprocal-space vector. reciprocal3 Pointer to the destination z +component of the reciprocal-space vector. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_reciprocal; %apply double *OUTPUT {double *reciprocal1, double *reciprocal2, @@ -165,7 +163,7 @@ Returns : double vector1,double vector2,double vector3 *args : C prototype: int cbf_get_rotation_axis (cbf_goniometer goniometer, - unsigned int reserved, double *vector1, double *vector2, + unsigned int reserved, double *vector1, double *vector2, double *vector3); CBFLib documentation: @@ -175,14 +173,14 @@ components of the goniometer rotation axis used for the exposure. Any of the destination pointers may be NULL. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -goniometer Goniometer handle. reserved Unused. Any value other -than 0 is invalid. vector1 Pointer to the destination x -component of the rotation axis. vector2 Pointer to the -destination y component of the rotation axis. vector3 Pointer to -the destination z component of the rotation axis. +goniometer Goniometer handle. reserved Unused. Any value other +than 0 is invalid. vector1 Pointer to the destination x component +of the rotation axis. vector2 Pointer to the destination y +component of the rotation axis. vector3 Pointer to the destination +z component of the rotation axis. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_rotation_axis; %apply double *OUTPUT {double *vector1, double *vector2, double *vector3}; @@ -198,7 +196,7 @@ Returns : Float start,Float increment *args : C prototype: int cbf_get_rotation_range (cbf_goniometer goniometer, - unsigned int reserved, double *start, double *increment); + unsigned int reserved, double *start, double *increment); CBFLib documentation: DESCRIPTION @@ -213,7 +211,7 @@ than 0 is invalid. start Pointer to the destination start value. increment Pointer to the destination increment value. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_rotation_range; %apply double *OUTPUT {double *start,double *increment}; @@ -228,8 +226,8 @@ Returns : double final1,double final2,double final3 *args : double ratio,double initial1,double initial2,double initial3 C prototype: int cbf_rotate_vector (cbf_goniometer goniometer, - unsigned int reserved, double ratio, double initial1, - double initial2, double initial3, double *final1, + unsigned int reserved, double ratio, double initial1, + double initial2, double initial3, double *final1, double *final2, double *final3); CBFLib documentation: @@ -253,7 +251,7 @@ the destination y component of the final vector. vector3 Pointer to the destination z component of the final vector. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")rotate_vector; diff --git a/swig/cbfhandlewrappers.i b/swig/cbfhandlewrappers.i index f2e4bc7..869807c 100644 --- a/swig/cbfhandlewrappers.i +++ b/swig/cbfhandlewrappers.i @@ -110,7 +110,7 @@ Returns : pycbf detector object *args : Integer element_number C prototype: int cbf_construct_detector (cbf_handle handle, - cbf_detector *detector, unsigned int element_number); + cbf_detector *detector, unsigned int element_number); CBFLib documentation: DESCRIPTION @@ -124,13 +124,13 @@ the reference settings of the axes. cbf_require_reference_detector is similar, but try to force the creations of missing intermediate categories needed to construct a detector object. ARGUMENTS -handle CBF handle. detector Pointer to the -destination detector handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. +handle CBF handle. detector Pointer to the destination detector +handle. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")construct_detector; cbf_detector construct_detector(unsigned int element_number){ @@ -143,7 +143,7 @@ Returns : pycbf goniometer object *args : C prototype: int cbf_construct_goniometer (cbf_handle handle, - cbf_goniometer *goniometer); + cbf_goniometer *goniometer); CBFLib documentation: DESCRIPTION @@ -155,7 +155,7 @@ handle CBF handle. goniometer Pointer to the destination goniometer handle. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")construct_goniometer; cbf_goniometer construct_goniometer(){ @@ -168,7 +168,7 @@ Returns : pycbf positioner object *args : String axis_id C prototype: int cbf_construct_positioner (cbf_handle handle, - cbf_positioner *positioner, const char *axis_id); + cbf_positioner *positioner, const char *axis_id); CBFLib documentation: DESCRIPTION @@ -185,7 +185,7 @@ handle. axis_id The identifier of the axis in the \"axis \" category. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")construct_positioner; cbf_positioner construct_positioner(const char* axis_id){ @@ -198,7 +198,7 @@ Returns : pycbf detector object *args : Integer element_number C prototype: int cbf_construct_reference_detector (cbf_handle handle, - cbf_detector *detector, unsigned int element_number); + cbf_detector *detector, unsigned int element_number); CBFLib documentation: DESCRIPTION @@ -212,13 +212,13 @@ the reference settings of the axes. cbf_require_reference_detector is similar, but try to force the creations of missing intermediate categories needed to construct a detector object. ARGUMENTS -handle CBF handle. detector Pointer to the -destination detector handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. +handle CBF handle. detector Pointer to the destination detector +handle. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")construct_reference_detector; cbf_detector construct_reference_detector(unsigned int element_number){ @@ -231,7 +231,7 @@ Returns : pycbf positioner object *args : String axis_id C prototype: int cbf_construct_reference_positioner (cbf_handle handle, - cbf_positioner *positioner, const char *axis_id); + cbf_positioner *positioner, const char *axis_id); CBFLib documentation: DESCRIPTION @@ -248,7 +248,7 @@ handle. axis_id The identifier of the axis in the \"axis \" category. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")construct_reference_positioner; cbf_positioner construct_reference_positioner(const char* axis_id){ @@ -261,7 +261,7 @@ Returns : Integer *args : String axis_id C prototype: int cbf_count_axis_ancestors (cbf_handle handle, - const char *axis_id, unsigned int *ancestors); + const char *axis_id, unsigned int *ancestors); CBFLib documentation: DESCRIPTION @@ -290,29 +290,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")count_axis_ancestors; %apply int *OUTPUT {int *ancestors} count_axis_ancestors; @@ -416,7 +396,7 @@ ARGUMENTS handle CBF handle. elements Pointer to the destination count. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")count_elements; unsigned int count_elements(void){ unsigned int result; @@ -532,7 +512,7 @@ Returns : String categoryroot *args : String categoryname C prototype: int cbf_find_category_root (cbf_handle handle, - const char* categoryname, const char** categoryroot); + const char* categoryname, const char** categoryroot); CBFLib documentation: DESCRIPTION @@ -550,7 +530,7 @@ may be an alias. categoryroot pointer to a returned category root name. categoryroot_in input category root name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")find_category_root; const char* find_category_root(const char* categoryname){ @@ -668,7 +648,7 @@ Returns : String categoryname *args : String tagname C prototype: int cbf_find_tag_category (cbf_handle handle, - const char* tagname, const char** categoryname); + const char* tagname, const char** categoryname); CBFLib documentation: DESCRIPTION @@ -682,7 +662,7 @@ categoryname pointer to a returned category name. categoryname_in input category name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")find_tag_category; @@ -696,7 +676,7 @@ Returns : String tagroot *args : String tagname C prototype: int cbf_find_tag_root (cbf_handle handle, const char* tagname, - const char** tagroot); + const char** tagroot); CBFLib documentation: DESCRIPTION @@ -713,7 +693,7 @@ tagroot pointer to a returned tag root name. tagroot_in input tag root name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")find_tag_root; const char * find_tag_root(const char* tagname){ @@ -723,14 +703,14 @@ const char * find_tag_root(const char* tagname){ } /* cfunc cbf_force_new_category pyfunc force_new_category - arg cbf_handle handle arg const char *categoryname */ + arg cbf_handle handle arg const char *categoryname */ %feature("autodoc", " Returns : string *args : C prototype: int cbf_force_new_category (cbf_handle handle, - const char *categoryname); + const char *categoryname); CBFLib documentation: DESCRIPTION @@ -814,15 +794,15 @@ Returns : (Binary)String int ndimfast C prototype: int cbf_get_3d_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimslow, size_t ndimmid, + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -830,7 +810,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -845,7 +825,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_3d_image_as_string; // Ensure we free the local temporary @@ -877,15 +882,15 @@ Returns : (Binary)String int ndimslow C prototype: int cbf_get_3d_image_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, int elsign, size_t ndimfast, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, int elsign, size_t ndimfast, size_t ndimmid, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -893,7 +898,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -908,7 +913,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_3d_image_fs_as_string; // Ensure we free the local temporary @@ -940,15 +970,15 @@ Returns : (Binary)String int ndimfast C prototype: int cbf_get_3d_image_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, int elsign, size_t ndimslow, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, int elsign, size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -956,7 +986,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -971,7 +1001,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_3d_image_sf_as_string; // Ensure we free the local temporary @@ -1002,8 +1057,8 @@ Returns : size_t ndimslow,size_t ndimmid,size_t ndimfast *args : Integer element_number C prototype: int cbf_get_3d_image_size (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); + unsigned int reserved, unsigned int element_number, + size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); CBFLib documentation: DESCRIPTION @@ -1035,8 +1090,8 @@ Returns : size_t ndimfast,size_t ndimmid,size_t ndimslow *args : Integer element_number C prototype: int cbf_get_3d_image_size_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - size_t *ndimfast, size_t *ndimmid, size_t *ndimslow); + unsigned int reserved, unsigned int element_number, + size_t *ndimfast, size_t *ndimmid, size_t *ndimslow); CBFLib documentation: DESCRIPTION @@ -1068,8 +1123,8 @@ Returns : size_t ndimslow,size_t ndimmid,size_t ndimfast *args : Integer element_number C prototype: int cbf_get_3d_image_size_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); + unsigned int reserved, unsigned int element_number, + size_t *ndimslow, size_t *ndimmid, size_t *ndimfast); CBFLib documentation: DESCRIPTION @@ -1101,7 +1156,7 @@ Returns : String *args : String axis_id,Integer ancestor_index C prototype: int cbf_get_axis_ancestor (cbf_handle handle, - const char *axis_id, const unsigned int ancestor_index, + const char *axis_id, const unsigned int ancestor_index, const char * *ancestor); CBFLib documentation: @@ -1131,29 +1186,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_ancestor; const char * get_axis_ancestor(const char *axis_id, @@ -1168,7 +1203,7 @@ Returns : String *args : String axis_id C prototype: int cbf_get_axis_depends_on (cbf_handle handle, - const char *axis_id, const char * *depends_on); + const char *axis_id, const char * *depends_on); CBFLib documentation: DESCRIPTION @@ -1197,29 +1232,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_depends_on; const char * get_axis_depends_on(const char *axis_id){ @@ -1233,7 +1248,7 @@ Returns : String *args : String axis_id C prototype: int cbf_get_axis_equipment (cbf_handle handle, - const char *axis_id, const char * *equipment); + const char *axis_id, const char * *equipment); CBFLib documentation: DESCRIPTION @@ -1262,29 +1277,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_equipment; const char * get_axis_equipment(const char *axis_id){ @@ -1298,7 +1293,7 @@ Returns : String *args : String axis_id C prototype: int cbf_get_axis_equipment_component (cbf_handle handle, - const char *axis_id, const char * *equipment_component); + const char *axis_id, const char * *equipment_component); CBFLib documentation: DESCRIPTION @@ -1327,29 +1322,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_equipment_component; const char * get_axis_equipment_component(const char *axis_id){ @@ -1363,7 +1338,7 @@ Returns : Float offset1,Float offset2,Float offset3 *args : String axis_id C prototype: int cbf_get_axis_offset (cbf_handle handle, const char *axis_id, - double *offset1, double *offset2, double *offset3); + double *offset1, double *offset2, double *offset3); CBFLib documentation: DESCRIPTION @@ -1392,29 +1367,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_offset; %apply double *OUTPUT {double *offset1, double *offset2, double offset3} get_axis_offset; @@ -1429,10 +1384,10 @@ Returns : Float vector1,Float vector2,Float vector3,Float offset1,Float offset2, *args : Float ratio,String axis_id,String frame_id C prototype: int cbf_get_axis_poise(cbf_handle handle, double ratio, - double * vector1, double * vector2, double * vector3, - double * offset1, double * offset2, double * offset3, + double * vector1, double * vector2, double * vector3, + double * offset1, double * offset2, double * offset3, double * angle, const char * axis_id, - const char * frame_id); + const char * frame_id); CBFLib documentation: DESCRIPTION @@ -1463,19 +1418,18 @@ offset2, offset3 to point to the components of the axis base offset vector for axis axis_id unmodified by axis rotations. Any of the pointers may be specified as NULL. ARGUMENTS -handle CBF handle. ratio A number between 0 and 1 -indication how far into the frame to go vector1 Pointer to the -first component of the axis vector vector2 Pointer to the second -component of the axis vector vector3 Pointer to the third -component of the axis vector offset1 Pointer to the first -component of the axis offset offset2 Pointer to the second -component of the axis offset offset3 Pointer to the third -component of the axis offset angle Pointer to the rotation -angle axis_id The specified axis frame_id The specified +handle CBF handle. ratio A number between 0 and 1 indication how +far into the frame to go vector1 Pointer to the first component of +the axis vector vector2 Pointer to the second component of the axis +vector vector3 Pointer to the third component of the axis vector +offset1 Pointer to the first component of the axis offset offset2 +Pointer to the second component of the axis offset offset3 Pointer +to the third component of the axis offset angle Pointer to the +rotation angle axis_id The specified axis frame_id The specified frame positioner CBF goniometer RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_axis_poise; %apply double *OUTPUT {double *vector1, double *vector2, double *vector3, @@ -1498,8 +1452,8 @@ Returns : Float vector1,Float vector2,Float vector3,Float offset1,Float offset2, *args : String axis_id C prototype: int cbf_get_axis_reference_poise(cbf_handle handle, - double * vector1, double * vector2, double * vector3, - double * offset1, double * offset2, double * offset3, + double * vector1, double * vector2, double * vector3, + double * offset1, double * offset2, double * offset3, const char * axis_id); CBFLib documentation: @@ -1531,19 +1485,18 @@ offset2, offset3 to point to the components of the axis base offset vector for axis axis_id unmodified by axis rotations. Any of the pointers may be specified as NULL. ARGUMENTS -handle CBF handle. ratio A number between 0 and 1 -indication how far into the frame to go vector1 Pointer to the -first component of the axis vector vector2 Pointer to the second -component of the axis vector vector3 Pointer to the third -component of the axis vector offset1 Pointer to the first -component of the axis offset offset2 Pointer to the second -component of the axis offset offset3 Pointer to the third -component of the axis offset angle Pointer to the rotation -angle axis_id The specified axis frame_id The specified +handle CBF handle. ratio A number between 0 and 1 indication how +far into the frame to go vector1 Pointer to the first component of +the axis vector vector2 Pointer to the second component of the axis +vector vector3 Pointer to the third component of the axis vector +offset1 Pointer to the first component of the axis offset offset2 +Pointer to the second component of the axis offset offset3 Pointer +to the third component of the axis offset angle Pointer to the +rotation angle axis_id The specified axis frame_id The specified frame positioner CBF goniometer RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_axis_reference_poise; %apply double *OUTPUT {double *vector1, double *vector2, double *vector3, @@ -1563,7 +1516,7 @@ Returns : Float *args : String axis_id C prototype: int cbf_get_axis_rotation (cbf_handle handle, - const char *axis_id, double *rotation); + const char *axis_id, double *rotation); CBFLib documentation: DESCRIPTION @@ -1592,29 +1545,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_rotation; %apply double *OUTPUT {double *rotation} get_axis_rotation; @@ -1628,7 +1561,7 @@ Returns : String *args : String axis_id C prototype: int cbf_get_axis_rotation_axis (cbf_handle handle, - const char *axis_id, const char * *rotation_axis); + const char *axis_id, const char * *rotation_axis); CBFLib documentation: DESCRIPTION @@ -1657,29 +1590,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_rotation_axis; const char * get_axis_rotation_axis(const char *axis_id){ @@ -1693,7 +1606,7 @@ Returns : Float start,Float increment *args : String axis_id C prototype: int cbf_get_axis_setting (cbf_handle handle, - unsigned int reserved, const char *axis_id, double *start, + unsigned int reserved, const char *axis_id, double *start, double *increment); CBFLib documentation: @@ -1723,29 +1636,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_setting; %apply double *OUTPUT {double *start, double *increment} get_axis_setting; @@ -1761,7 +1654,7 @@ Returns : String *args : String axis_id C prototype: int cbf_get_axis_type (cbf_handle handle, const char *axis_id, - cbf_axis_type *axis_type); + cbf_axis_type *axis_type); CBFLib documentation: DESCRIPTION @@ -1790,29 +1683,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_type; const char * get_axis_type(const char *axis_id){ @@ -1828,7 +1701,7 @@ Returns : Float vector1,Float vector2,Float vector3 *args : String axis_id C prototype: int cbf_get_axis_vector (cbf_handle handle, const char *axis_id, - double *vector1, double *vector2, double *vector3); + double *vector1, double *vector2, double *vector3); CBFLib documentation: DESCRIPTION @@ -1857,29 +1730,9 @@ cbf_get_axis_vector sets *vector1, *vector2 and *vector3 to the components of the vector of axis_id. The parameter reserved is presently unused and should be set to 0. ARGUMENTS -handle CBF handle. reserved Unused. Any -value other than 0 is invalid. axis_id Axis id. -ancestor_index Integer index of the desired ancestor, starting -with 0 for the current axis_id. ancestor Pointer to -destination ancestor name pointer. depends_on Pointer to -destination depends_on name pointer. equipment Pointer to -destination equipment name pointer. equipment_component Pointer to -destination equipment_component name pointer. offset1 -Pointer to destination first offset component value. offset2 - Pointer to destination second offset component value. offset3 - Pointer to destination third offset component value. -rotation Pointer to destination rotation value. -rotation_axis Pointer to destination rotation_axisn name -pointer. start Pointer to the destination start -value. increment Pointer to the destination increment -value. type Pointer to destination axis type of type -. vector1 Pointer to destination first vector component -value. vector2 Pointer to destination second vector -component value. vector3 Pointer to destination third -vector component value. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. axis_id Axis id. ancestor_index Integer index of the +desired ancestor, starting with 0 for the current axis_id. ")get_axis_vector; %apply double *OUTPUT {double *vector1, double *vector2, double vector3} get_axis_vector; @@ -1893,7 +1746,7 @@ Returns : Float slowbinsize,Float fastbinsize *args : Integer element_number C prototype: int cbf_get_bin_sizes(cbf_handle handle, - unsigned int element_number, double * slowbinsize, + unsigned int element_number, double * slowbinsize, double * fastbinsize); CBFLib documentation: @@ -1913,9 +1766,9 @@ element with the ordinal element_number. In order to allow for software binning involving fractions of pixels, the bin sizes are doubles rather than ints. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. slowbinsize Pointer to the +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. slowbinsize Pointer to the returned number of pixels composing one array element in the dimension that changes at the second-fastest rate. fastbinsize Pointer to the returned number of pixels composing one array element @@ -1926,7 +1779,7 @@ of pixels composing one array element in the dimension that changes at the fastest rate. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_bin_sizes; %apply double *OUTPUT {double *slowbinsize,double *fastbinsize}; @@ -1957,7 +1810,7 @@ handle CBF handle. crystal_id Pointer to the destination value pointer. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_crystal_id; const char* get_crystal_id(void){ const char* result; @@ -1969,8 +1822,8 @@ Returns : int year,int month,int day,int hour,int minute,double second, *args : C prototype: int cbf_get_datestamp (cbf_handle handle, unsigned int reserved, - int *year, int *month, int *day, int *hour, int *minute, - double *second, int *timezone); + int *year, int *month, int *day, int *hour, int *minute, + double *second, int *timezone); CBFLib documentation: DESCRIPTION @@ -1980,17 +1833,17 @@ cbf_get_datestamp sets *year, *month, *day, *hour, *minute and parameter < i>reserved is presently unused and should be set to 0. Any of the destination pointers may be NULL. ARGUMENTS -handle CBF handle. reserved Unused. Any value other than 0 is -invalid. year Pointer to the destination timestamp year. month - Pointer to the destination timestamp month (1-12). day -Pointer to the destination timestamp day (1-31). hour Pointer -to the destination timestamp hour (0-23). minute Pointer to the -destination timestamp minute (0-59). second Pointer to the +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. year Pointer to the destination timestamp year. month +Pointer to the destination timestamp month (1-12). day Pointer to +the destination timestamp day (1-31). hour Pointer to the +destination timestamp hour (0-23). minute Pointer to the +destination timestamp minute (0-59). second Pointer to the destination timestamp second (0-60.0). timezone Pointer to the destination timezone difference from UTC in minutes. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_datestamp; %apply int *OUTPUT {int *year, int *month, int *day, int *hour, @@ -2023,7 +1876,7 @@ handle CBF handle. dictionary Pointer to CBF handle of dictionary. dictionary_in CBF handle of dcitionary. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_dictionary; cbf_handle get_dictionary(){ @@ -2058,7 +1911,7 @@ handle CBF handle. diffrn_id Pointer to the destination value pointer. default_id Character string default value. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_diffrn_id; const char* get_diffrn_id(void){ const char* result; @@ -2069,7 +1922,7 @@ Returns : Float div_x_source,Float div_y_source,Float div_x_y_source *args : C prototype: int cbf_get_divergence (cbf_handle handle, double *div_x_source, - double *div_y_source, double *div_x_y_source); + double *div_y_source, double *div_x_y_source); CBFLib documentation: DESCRIPTION @@ -2083,7 +1936,7 @@ div_y_source. div_x_y_source Pointer to the destination div_x_y_source. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_divergence; %apply double *OUTPUT {double *div_x_source, double *div_y_source, @@ -2129,7 +1982,7 @@ Returns : String *args : Integer element_number C prototype: int cbf_get_element_id (cbf_handle handle, - unsigned int element_number, const char **element_id); + unsigned int element_number, const char **element_id); CBFLib documentation: DESCRIPTION @@ -2151,15 +2004,15 @@ The element_id will be valid as long as the item exists and has not been set to a new value. The element_id must not be modified by the program in any way. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. element_id Pointer to the +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. element_id Pointer to the destination string for cbf_get_element_id, but the string itself for -cbf_get_element_number. array_id The optional array id or -NULL. array_section_id The optional array_section_id or NULL. +cbf_get_element_number. array_id The optional array id or NULL. +array_section_id The optional array_section_id or NULL. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_element_id; const char * get_element_id(unsigned int element_number){ @@ -2169,7 +2022,7 @@ Returns an error code on failure or 0 for success. } /* cfunc cbf_get_element_number pyfunc get_element_number - arg cbf_handle handle arg const char *element_id arg const char *array_id arg const char *array_section_id arg unsigned int *element_number */ + arg cbf_handle handle arg const char *element_id arg const char *array_id arg const char *array_section_id arg unsigned int *element_number */ void get_element_number(void){ cbf_failnez(CBF_NOTIMPLEMENTED);} @@ -2178,7 +2031,7 @@ Returns : Float gain,Float gain_esd *args : C prototype: int cbf_get_gain (cbf_handle handle, unsigned int element_number, - double *gain, double *gain_esd); + double *gain, double *gain_esd); CBFLib documentation: DESCRIPTION @@ -2186,14 +2039,13 @@ cbf_get_gain sets *gain and *gain_esd to the corresponding gain parameters for element number element_number. Either of the destination pointers may be NULL. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. gain Pointer to the -destination gain. gain_esd Pointer to the destination -gain_esd. +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. gain Pointer to the destination +gain. gain_esd Pointer to the destination gain_esd. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_gain; %apply double *OUTPUT {double *gain, double *gain_esd} get_gain; @@ -2206,14 +2058,14 @@ Returns : (Binary)String *args : int element_number,int elsize,int elsign,int ndimslow,int ndimfast C prototype: int cbf_get_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimslow, size_t ndimfast); + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -2221,7 +2073,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -2236,7 +2088,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_image_as_string; // Ensure we free the local temporary @@ -2267,14 +2144,14 @@ Returns : (Binary)String *args : int element_number,int elsize,int elsign,int ndimfast,int ndimslow C prototype: int cbf_get_image_fs (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimfast, size_t ndimslow); + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -2282,7 +2159,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -2297,7 +2174,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_image_fs_as_string; // Ensure we free the local temporary @@ -2328,14 +2230,14 @@ Returns : (Binary)String *args : int element_number,int elsize,int elsign,int ndimslow,int ndimfast C prototype: int cbf_get_image_sf (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - int elsign, size_t ndimslow, size_t ndimfast); + unsigned int element_number, void *array, size_t elsize, + int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -2343,7 +2245,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -2358,7 +2260,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_image_sf_as_string; // Ensure we free the local temporary @@ -2389,7 +2316,7 @@ Returns : size_t ndim1,size_t ndim2 *args : Integer element_number C prototype: int cbf_get_image_size (cbf_handle handle, unsigned int reserved, - unsigned int element_number, size_t *ndimslow, + unsigned int element_number, size_t *ndimslow, size_t *ndimfast); CBFLib documentation: @@ -2421,7 +2348,7 @@ Returns : size_t ndimfast,size_t ndimslow *args : Integer element_number C prototype: int cbf_get_image_size_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, + unsigned int reserved, unsigned int element_number, size_t *ndimfast, size_t *ndimslow); CBFLib documentation: @@ -2453,7 +2380,7 @@ Returns : size_t ndimslow,size_t ndimfast *args : Integer element_number C prototype: int cbf_get_image_size_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, + unsigned int reserved, unsigned int element_number, size_t *ndimslow, size_t *ndimfast); CBFLib documentation: @@ -2485,8 +2412,8 @@ Returns : (Binary)String *args : C prototype: int cbf_get_integerarray (cbf_handle handle, int *binary_id, - void *array, size_t elsize, int elsigned, size_t elements, - size_t *elements_read); + void *array, size_t elsize, int elsigned, size_t elements, + size_t *elements_read); CBFLib documentation: DESCRIPTION @@ -2520,13 +2447,12 @@ decompressed. This restriction will be removed in a future release. For cbf_get_realarray, only IEEE format is supported. No conversion to other floating point formats is done at this time. ARGUMENTS -handle CBF handle. binary_id Pointer to the -destination integer binary identifier. array Pointer to the -destination array. elsize Size in bytes of each destination -array element. elsigned Set to non-0 if the destination array -elements are signed. elements The number of elements to read. -elements_read Pointer to the destination number of elements -actually read. +handle CBF handle. binary_id Pointer to the destination integer +binary identifier. array Pointer to the destination array. elsize +Size in bytes of each destination array element. elsigned Set to +non-0 if the destination array elements are signed. elements The +number of elements to read. elements_read Pointer to the +destination number of elements actually read. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO ")get_integerarray_as_string; @@ -2606,19 +2532,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -2648,11 +2574,11 @@ Returns : int compression,int binary_id,int elsize,int elsigned,int elunsigned, *args : C prototype: int cbf_get_integerarrayparameters_wdims (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, + unsigned int *compression, int *binary_id, size_t *elsize, int *elsigned, int *elunsigned, size_t *elements, int *minelement, int *maxelement, const char **byteorder, size_t *dimfast, size_t *dimmid, size_t *dimslow, - size_t *padding); + size_t *padding); CBFLib documentation: DESCRIPTION @@ -2689,19 +2615,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -2747,11 +2673,11 @@ Returns : int compression,int binary_id,int elsize,int elsigned,int elunsigned, *args : C prototype: int cbf_get_integerarrayparameters_wdims_fs (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - int *elsigned, int *elunsigned, size_t *elements, - int *minelement, int *maxelement, const char **byteorder, - size_t *dimfast, size_t *dimmid, size_t *dimslow, - size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + int *elsigned, int *elunsigned, size_t *elements, + int *minelement, int *maxelement, const char **byteorder, + size_t *dimfast, size_t *dimmid, size_t *dimslow, + size_t *padding); CBFLib documentation: DESCRIPTION @@ -2788,19 +2714,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -2846,11 +2772,11 @@ Returns : int compression,int binary_id,int elsize,int elsigned,int elunsigned, *args : C prototype: int cbf_get_integerarrayparameters_wdims_sf (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - int *elsigned, int *elunsigned, size_t *elements, - int *minelement, int *maxelement, const char **byteorder, - size_t *dimslow, size_t *dimmid, size_t *dimfast, - size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + int *elsigned, int *elunsigned, size_t *elements, + int *minelement, int *maxelement, const char **byteorder, + size_t *dimslow, size_t *dimmid, size_t *dimfast, + size_t *padding); CBFLib documentation: DESCRIPTION @@ -2887,19 +2813,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -2972,7 +2898,7 @@ Returns : Float time *args : C prototype: int cbf_get_integration_time (cbf_handle handle, - unsigned int reserved, double *time); + unsigned int reserved, double *time); CBFLib documentation: DESCRIPTION @@ -2984,7 +2910,7 @@ handle CBF handle. reserved Unused. Any value other than 0 is invalid. time Pointer to the destination time. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_integration_time; %apply double *OUTPUT {double *time} get_integration_time; @@ -3002,7 +2928,7 @@ Returns : Float matrix_0,Float matrix_1,Float matrix_2,Float matrix_3, *args : C prototype: int cbf_get_orientation_matrix (cbf_handle handle, - double ub_matrix[9]); + double ub_matrix[9]); CBFLib documentation: DESCRIPTION @@ -3015,11 +2941,11 @@ of columns: cbf_set_orientation_matrix sets the values in the \"diffrn \" category to the values pointed to by ub_matrix. ARGUMENTS -handle CBF handle. ubmatric Source or destination array of 9 +handle CBF handle. ubmatric Source or destination array of 9 doubles giving the orientation matrix parameters. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_orientation_matrix; %apply double *OUTPUT {double *m0,double *m1,double *m2, @@ -3039,20 +2965,20 @@ Returns : Float overload *args : Integer element_number C prototype: int cbf_get_overload (cbf_handle handle, - unsigned int element_number, double *overload); + unsigned int element_number, double *overload); CBFLib documentation: DESCRIPTION cbf_get_overload sets *overload to the overload value for element number element_number. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. overload Pointer to the +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. overload Pointer to the destination overload. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_overload; %apply double *OUTPUT {double *overload} get_overload; @@ -3064,7 +2990,7 @@ Returns : Float pixel_size *args : Int element_number,Int axis_number C prototype: int cbf_get_pixel_size (cbf_handle handle, - unsigned int element_number, int axis_number, + unsigned int element_number, int axis_number, double *psize); CBFLib documentation: @@ -3082,15 +3008,15 @@ fastest axis for cbf_get_pixel_size_sf. If the pixel size is not given explcitly in the \"array_element_size \" category, the function returns CBF_NOTFOUND. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. axis_number The number of the +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. axis_number The number of the axis, starting from 1 for the fastest for cbf_get_pixel_size and cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf. -psize Pointer to the destination pixel size. +psize Pointer to the destination pixel size. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_size; %apply double *OUTPUT {double *psize} get_pixel_size; @@ -3106,7 +3032,7 @@ Returns : Float pixel_size *args : Int element_number,Int axis_number C prototype: int cbf_get_pixel_size_fs(cbf_handle handle, - unsigned int element_number, int axis_number, + unsigned int element_number, int axis_number, double *psize); CBFLib documentation: @@ -3124,15 +3050,15 @@ fastest axis for cbf_get_pixel_size_sf. If the pixel size is not given explcitly in the \"array_element_size \" category, the function returns CBF_NOTFOUND. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. axis_number The number of the +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. axis_number The number of the axis, starting from 1 for the fastest for cbf_get_pixel_size and cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf. -psize Pointer to the destination pixel size. +psize Pointer to the destination pixel size. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_size_fs; %apply double *OUTPUT {double *psize} get_pixel_size; @@ -3148,7 +3074,7 @@ Returns : Float pixel_size *args : Int element_number,Int axis_number C prototype: int cbf_get_pixel_size_sf(cbf_handle handle, - unsigned int element_number, int axis_number, + unsigned int element_number, int axis_number, double *psize); CBFLib documentation: @@ -3166,15 +3092,15 @@ fastest axis for cbf_get_pixel_size_sf. If the pixel size is not given explcitly in the \"array_element_size \" category, the function returns CBF_NOTFOUND. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. axis_number The number of the +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. axis_number The number of the axis, starting from 1 for the fastest for cbf_get_pixel_size and cbf_get_pixel_size_fs and the slowest for cbf_get_pixel_size_sf. -psize Pointer to the destination pixel size. +psize Pointer to the destination pixel size. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_pixel_size_sf; %apply double *OUTPUT {double *psize} get_pixel_size; @@ -3190,7 +3116,7 @@ Returns : float polarizn_source_ratio,float polarizn_source_norm *args : C prototype: int cbf_get_polarization (cbf_handle handle, - double *polarizn_source_ratio, + double *polarizn_source_ratio, double *polarizn_source_norm); CBFLib documentation: @@ -3200,12 +3126,12 @@ cbf_get_polarization sets *polarizn_source_ratio and parameters. Either destination pointer may be NULL. ARGUMENTS -handle CBF handle. polarizn_source_ratio Pointer -to the destination polarizn_source_ratio. polarizn_source_norm -Pointer to the destination polarizn_source_norm. +handle CBF handle. polarizn_source_ratio Pointer to the +destination polarizn_source_ratio. polarizn_source_norm Pointer to +the destination polarizn_source_norm. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_polarization; /* Returns a pair of double values */ @@ -3218,15 +3144,15 @@ Returns : (Binary)String *args : int element_number,int elsize,int ndimslow,int ndimmid,int ndimfast C prototype: int cbf_get_real_3d_image (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimslow, size_t ndimmid, + size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3234,7 +3160,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3249,7 +3175,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_real_3d_image_as_string; // Ensure we free the local temporary @@ -3280,15 +3231,15 @@ Returns : (Binary)String *args : int element_number,int elsize,int ndimfast,int ndimmid,int ndimslow C prototype: int cbf_get_real_3d_image_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimfast, - size_t ndimmid, size_t ndimslow); + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimfast, size_t ndimmid, + size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3296,7 +3247,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3311,7 +3262,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_real_3d_image_fs_as_string; // Ensure we free the local temporary @@ -3342,15 +3318,15 @@ Returns : (Binary)String *args : int element_number,int elsize,int ndimslow,int ndimmid,int ndimfast C prototype: int cbf_get_real_3d_image_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimslow, size_t ndimmid, + size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3358,7 +3334,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3373,7 +3349,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_real_3d_image_sf_as_string; // Ensure we free the local temporary @@ -3404,14 +3405,14 @@ Returns : (Binary)String *args : int element_number,int elsize,int ndimslow,int ndimfast C prototype: int cbf_get_real_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, void *array, size_t elsize, - size_t ndimslow, size_t ndimfast); + unsigned int element_number, void *array, size_t elsize, + size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3419,7 +3420,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3434,7 +3435,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_real_image_as_string; // Ensure we free the local temporary @@ -3465,15 +3491,15 @@ Returns : (Binary)String *args : int element_number,int elsize,int ndimfast,int ndimslow C prototype: int cbf_get_real_image_fs (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimfast, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3481,7 +3507,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3496,7 +3522,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_real_image_fs_as_string; // Ensure we free the local temporary @@ -3527,15 +3578,15 @@ Returns : (Binary)String *args : int element_number,int elsize,int ndimslow,int ndimfast C prototype: int cbf_get_real_image_sf (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - void *array, size_t elsize, size_t ndimslow, + unsigned int reserved, unsigned int element_number, + void *array, size_t elsize, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_get_image, cbf_get_image_fs and cbf_get_image_sf read the image array for element number element_number into an array. The array -consists of ndimslow×ndimfast elements of elsize bytes each, starting +consists of ndimslowndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_image, cbf_get_real_image_fs and cbf_get_real_image_sf read the image array of IEEE doubles or floats @@ -3543,7 +3594,7 @@ for element number element_number into an array. A real array is always signed. cbf_get_3d_image, cbf_get_3d_image_fs and cbf_get_3d_image_sf read the 3D image array for element number element_number into an array. The array consists of -ndimslow×ndimmid×ndimfast elements of elsize bytes each, starting at +ndimslowndimmidndimfast elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_get_real_3d_image, cbf_get_real_3d_image_fs, cbf_get_real_3d_image_sf reads the 3D image array of IEEE doubles or @@ -3558,7 +3609,32 @@ ARRAY_STRUCTURE_LIST category. If the array is 1-dimensional, ndimslow should be the array size and ndimfast and, for the 3D calls, ndimmid, should be set to 1 both in the call and in the imgCIF data being processed. If the array is 2-dimensional and a 3D call is used, -ndimslow and ndimmid should be the +ndimslow and ndimmid should be the array dimensions and ndimfast +should be set to 1 both in the call and in the imgCIF data being +processed. +If any element in the binary data cant fit into the destination +element, the destination is set the nearest possible value. +If the value is not binary, the function returns CBF_ASCII. +If the requested number of elements cant be read, the function will +read as many as it can and then return CBF_ENDOFDATA. +Currently, the destination array must consist of chars, shorts or +ints (signed or unsigned) for cbf_get_image, or IEEE doubles or +floats for cbf_get_real_image. If elsize is not equal to sizeof +(char), sizeof (short), sizeof (int), sizeof(double) or +sizeof(float), the function returns CBF_ARGUMENT. +The parameter reserved is presently unused and should be set to 0. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. array Pointer to the destination array. elsize Size in +bytes of each destination array element. elsigned Set to non-0 if +the destination array elements are signed. ndimslow Slowest array +dimension. ndimmid Next faster array dimension. ndimfast Fastest +array dimension. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")get_real_image_sf_as_string; // Ensure we free the local temporary @@ -3624,13 +3700,12 @@ decompressed. This restriction will be removed in a future release. For cbf_get_realarray, only IEEE format is supported. No conversion to other floating point formats is done at this time. ARGUMENTS -handle CBF handle. binary_id Pointer to the -destination integer binary identifier. array Pointer to the -destination array. elsize Size in bytes of each destination -array element. elsigned Set to non-0 if the destination array -elements are signed. elements The number of elements to read. -elements_read Pointer to the destination number of elements -actually read. +handle CBF handle. binary_id Pointer to the destination integer +binary identifier. array Pointer to the destination array. elsize +Size in bytes of each destination array element. elsigned Set to +non-0 if the destination array elements are signed. elements The +number of elements to read. elements_read Pointer to the +destination number of elements actually read. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO ")get_realarray_as_string; @@ -3707,19 +3782,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -3746,8 +3821,8 @@ Returns : int compression,int binary_id,int elsize,int elements,char **bo, C prototype: int cbf_get_realarrayparameters_wdims (cbf_handle handle, unsigned int *compression, int *binary_id, size_t *elsize, - size_t *elements, const char **byteorder, size_t *dimfast, - size_t *dimmid, size_t *dimslow, size_t *padding); + size_t *elements, const char **byteorder, size_t *dimfast, + size_t *dimmid, size_t *dimslow, size_t *padding); CBFLib documentation: DESCRIPTION @@ -3784,19 +3859,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -3841,9 +3916,9 @@ Returns : int compression,int binary_id,int elsize,int elements,char **bo, *args : C prototype: int cbf_get_realarrayparameters_wdims_fs (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - size_t *elements, const char **byteorder, size_t *dimfast, - size_t *dimmid, size_t *dimslow, size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + size_t *elements, const char **byteorder, size_t *dimfast, + size_t *dimmid, size_t *dimslow, size_t *padding); CBFLib documentation: DESCRIPTION @@ -3880,19 +3955,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -3937,9 +4012,9 @@ Returns : int compression,int binary_id,int elsize,int elements,char **bo, *args : C prototype: int cbf_get_realarrayparameters_wdims_sf (cbf_handle handle, - unsigned int *compression, int *binary_id, size_t *elsize, - size_t *elements, const char **byteorder, size_t *dimslow, - size_t *dimmid, size_t *dimfast, size_t *padding); + unsigned int *compression, int *binary_id, size_t *elsize, + size_t *elements, const char **byteorder, size_t *dimslow, + size_t *dimmid, size_t *dimfast, size_t *padding); CBFLib documentation: DESCRIPTION @@ -3976,19 +4051,19 @@ if any and if specified in the data header. The value is given as a count of octets. If the value is not binary, the function returns CBF_ASCII. ARGUMENTS -handle CBF handle. compression Compression method used. -elsize Size in bytes of each array element. binary_id -Pointer to the destination integer binary identifier. elsigned -Pointer to an integer. Set to 1 if the elements can be read as signed -integers. elunsigned Pointer to an integer. Set to 1 if the -elements can be read as unsigned integers. elements Pointer to -the destination number of elements. minelement Pointer to the -destination smallest element. maxelement Pointer to the -destination largest element. byteorder Pointer to the destination -byte order. dimfast Pointer to the destination fastest -dimension. dimmid Pointer to the destination second fastest -dimension. dimslow Pointer to the destination third fastest -dimension. padding Pointer to the destination padding size. +handle CBF handle. compression Compression method used. elsize +Size in bytes of each array element. binary_id Pointer to the +destination integer binary identifier. elsigned Pointer to an +integer. Set to 1 if the elements can be read as signed integers. +elunsigned Pointer to an integer. Set to 1 if the elements can be +read as unsigned integers. elements Pointer to the destination +number of elements. minelement Pointer to the destination smallest +element. maxelement Pointer to the destination largest element. +byteorder Pointer to the destination byte order. dimfast Pointer +to the destination fastest dimension. dimmid Pointer to the +destination second fastest dimension. dimslow Pointer to the +destination third fastest dimension. padding Pointer to the +destination padding size. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -4033,18 +4108,18 @@ Returns : Float astar,Float bstar,Float cstar,Float alphastar,Float betastar, *args : C prototype: int cbf_get_reciprocal_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_get_reciprocal_cell sets cell[0:2] to the double values of the -reciprocal cell edge lengths a^*, b^* and c^* in Ångstroms^-1, -cell[3:5] to the double values of the reciprocal cell angles α^*, β^* -and γ^* in degrees, cell_esd[0:2] to the double values of the +reciprocal cell edge lengths a^*, b^* and c^* in ngstroms^-1, +cell[3:5] to the double values of the reciprocal cell angles a^*, b^* +and g^* in degrees, cell_esd[0:2] to the double values of the estimated strandard deviations of the reciprocal cell edge lengths -a^*, b^* and c^* in Ångstroms^-1, cell_esd[3:5] to the double values +a^*, b^* and c^* in ngstroms^-1, cell_esd[3:5] to the double values of the estimated standard deviations of the the reciprocal cell -angles α^*, β^* and γ^* in degrees. +angles a^*, b^* and g^* in degrees. The values returned are retrieved from the first row of the \"cell \" category. The value of \"_cell.entry_id \" is ignored. cell or cell_esd may be NULL. @@ -4054,9 +4129,9 @@ retrieved. If the \"cell \" category is present, but some of the values are missing, zeros are returned for the missing values. ARGUMENTS -handle CBF handle. cell Pointer to the destination array of -6 doubles for the reciprocal cell parameters. cell_esd Pointer to -the destination array of 6 doubles for the reciprocal cell parameter +handle CBF handle. cell Pointer to the destination array of 6 +doubles for the reciprocal cell parameters. cell_esd Pointer to the +destination array of 6 doubles for the reciprocal cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. No errors is @@ -4082,18 +4157,18 @@ Returns : doubleArray cell *args : C prototype: int cbf_get_reciprocal_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_get_reciprocal_cell sets cell[0:2] to the double values of the -reciprocal cell edge lengths a^*, b^* and c^* in Ångstroms^-1, -cell[3:5] to the double values of the reciprocal cell angles α^*, β^* -and γ^* in degrees, cell_esd[0:2] to the double values of the +reciprocal cell edge lengths a^*, b^* and c^* in ngstroms^-1, +cell[3:5] to the double values of the reciprocal cell angles a^*, b^* +and g^* in degrees, cell_esd[0:2] to the double values of the estimated strandard deviations of the reciprocal cell edge lengths -a^*, b^* and c^* in Ångstroms^-1, cell_esd[3:5] to the double values +a^*, b^* and c^* in ngstroms^-1, cell_esd[3:5] to the double values of the estimated standard deviations of the the reciprocal cell -angles α^*, β^* and γ^* in degrees. +angles a^*, b^* and g^* in degrees. The values returned are retrieved from the first row of the \"cell \" category. The value of \"_cell.entry_id \" is ignored. cell or cell_esd may be NULL. @@ -4103,9 +4178,9 @@ retrieved. If the \"cell \" category is present, but some of the values are missing, zeros are returned for the missing values. ARGUMENTS -handle CBF handle. cell Pointer to the destination array of -6 doubles for the reciprocal cell parameters. cell_esd Pointer to -the destination array of 6 doubles for the reciprocal cell parameter +handle CBF handle. cell Pointer to the destination array of 6 +doubles for the reciprocal cell parameters. cell_esd Pointer to the +destination array of 6 doubles for the reciprocal cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. No errors is @@ -4131,7 +4206,7 @@ Returns : Float time,Integer timezone *args : C prototype: int cbf_get_timestamp (cbf_handle handle, unsigned int reserved, - double *time, int *timezone); + double *time, int *timezone); CBFLib documentation: DESCRIPTION @@ -4146,7 +4221,7 @@ invalid. time Pointer to the destination collection timestamp. timezone Pointer to the destination timezone difference. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_timestamp; %apply double *OUTPUT {double *time} get_timestamp; @@ -4190,7 +4265,7 @@ no value has been set sets *typeofvalue to NULL rather than to the string \"null \". The typeofvalue must not be modified by the program in any way. ARGUMENTS -handle CBF handle. typeofvalue Pointer to the destination +handle CBF handle. typeofvalue Pointer to the destination type-of-value string pointer. RETURN VALUE Returns an error code on failure or 0 for success. @@ -4205,16 +4280,16 @@ Returns : Float a,Float b,Float c,Float alpha,Float beta,Float gamma *args : C prototype: int cbf_get_unit_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_get_unit_cell sets cell[0:2] to the double values of the cell -edge lengths a, b and c in Ångstroms, cell[3:5] to the double values -of the cell angles α, β and γ in degrees, cell_esd[0:2] to the double +edge lengths a, b and c in ngstroms, cell[3:5] to the double values +of the cell angles a, b and g in degrees, cell_esd[0:2] to the double values of the estimated strandard deviations of the cell edge lengths -a, b and c in Ångstroms, cell_esd[3:5] to the double values of the -estimated standard deviations of the the cell angles α, β and γ in +a, b and c in ngstroms, cell_esd[3:5] to the double values of the +estimated standard deviations of the the cell angles a, b and g in degrees. The values returned are retrieved from the first row of the \"cell \" category. The value of \"_cell.entry_id \" is ignored. @@ -4224,8 +4299,8 @@ If cell_esd is NULL, the cell parameter esds are not retrieved. If the \"cell \" category is present, but some of the values are missing, zeros are returned for the missing values. ARGUMENTS -handle CBF handle. cell Pointer to the destination array of -6 doubles for the cell parameters. cell_esd Pointer to the +handle CBF handle. cell Pointer to the destination array of 6 +doubles for the cell parameters. cell_esd Pointer to the destination array of 6 doubles for the cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. No errors is @@ -4251,16 +4326,16 @@ Returns : doubleArray cell *args : C prototype: int cbf_get_unit_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_get_unit_cell sets cell[0:2] to the double values of the cell -edge lengths a, b and c in Ångstroms, cell[3:5] to the double values -of the cell angles α, β and γ in degrees, cell_esd[0:2] to the double +edge lengths a, b and c in ngstroms, cell[3:5] to the double values +of the cell angles a, b and g in degrees, cell_esd[0:2] to the double values of the estimated strandard deviations of the cell edge lengths -a, b and c in Ångstroms, cell_esd[3:5] to the double values of the -estimated standard deviations of the the cell angles α, β and γ in +a, b and c in ngstroms, cell_esd[3:5] to the double values of the +estimated standard deviations of the the cell angles a, b and g in degrees. The values returned are retrieved from the first row of the \"cell \" category. The value of \"_cell.entry_id \" is ignored. @@ -4270,8 +4345,8 @@ If cell_esd is NULL, the cell parameter esds are not retrieved. If the \"cell \" category is present, but some of the values are missing, zeros are returned for the missing values. ARGUMENTS -handle CBF handle. cell Pointer to the destination array of -6 doubles for the cell parameters. cell_esd Pointer to the +handle CBF handle. cell Pointer to the destination array of 6 +doubles for the cell parameters. cell_esd Pointer to the destination array of 6 doubles for the cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. No errors is @@ -4336,12 +4411,12 @@ C prototype: int cbf_get_wavelength (cbf_handle handle, double *wavelength); CBFLib documentation: DESCRIPTION -cbf_get_wavelength sets *wavelength to the current wavelength in Å. +cbf_get_wavelength sets *wavelength to the current wavelength in . ARGUMENTS handle CBF handle. wavelength Pointer to the destination. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")get_wavelength; double get_wavelength(void){ double result; @@ -4655,47 +4730,46 @@ relationships specified in the dictionary. flags controls the interpretation of binary section headers, the parsing of brackets constructs and the parsing of treble-quoted strings. -MSG_DIGEST: Instructs CBFlib to check that the digest -of the binary section matches any header digest value. If the digests -do not match, the call will return CBF_FORMAT. This evaluation and -comparison is delayed (a \"lazy \" evaluation) to ensure maximal -processing efficiency. If an immediately evaluation is required, see -MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to -check that the digest of the binary section matches any header -digeste value. If the digests do not match, the call will return -CBF_FORMAT. This evaluation and comparison is performed during -initial parsing of the section to ensure timely error reporting at -the expense of processing efficiency. If a more efficient delayed ( -\"lazy \") evaluation is required, see MSG_DIGEST, above. -MSG_DIGESTWARN: Instructs CBFlib to check that the digest -of the binary section matches any header digeste value. If the -digests do not match, a warning message will be sent to stderr, but -processing will attempt to continue. This evaluation and comparison -is first performed during initial parsing of the section to ensure -timely error reporting at the expense of processing efficiency. An -mismatch of the message digest usually indicates a serious error, but -it is sometimes worth continuing processing to try to isolate the -cause of the error. Use this option with caution. MSG_NODIGEST: - Do not check the digest (default). PARSE_BRACKETS: -Accept DDLm bracket-delimited [item,item,...item] or -{item,item,...item} or (item,item,...item) constructs as valid, +MSG_DIGEST: Instructs CBFlib to check that the digest of the binary +section matches any header digest value. If the digests do not match, +the call will return CBF_FORMAT. This evaluation and comparison is +delayed (a \"lazy \" evaluation) to ensure maximal processing +efficiency. If an immediately evaluation is required, see +MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to check that +the digest of the binary section matches any header digeste value. If +the digests do not match, the call will return CBF_FORMAT. This +evaluation and comparison is performed during initial parsing of the +section to ensure timely error reporting at the expense of processing +efficiency. If a more efficient delayed ( \"lazy \") evaluation is +required, see MSG_DIGEST, above. MSG_DIGESTWARN: Instructs CBFlib +to check that the digest of the binary section matches any header +digeste value. If the digests do not match, a warning message will be +sent to stderr, but processing will attempt to continue. This +evaluation and comparison is first performed during initial parsing +of the section to ensure timely error reporting at the expense of +processing efficiency. An mismatch of the message digest usually +indicates a serious error, but it is sometimes worth continuing +processing to try to isolate the cause of the error. Use this option +with caution. MSG_NODIGEST: Do not check the digest (default). +PARSE_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] +or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple lines. PARSE_LIBERAL_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping embedded non-quoted, non-separating whitespace and comments. These constructs may span multiple lines. In this case, whitespace may be used as an -alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm +alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm triple-quoted \" \" \"item,item,...item \" \" \" or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' will not be interpreted as a quoted apoptrophe and \" \" \" will not be interpreted as a quoted double -quote mark and PARSE_NOBRACKETS: Do not accept DDLm +quote mark and PARSE_NOBRACKETS: Do not accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple -lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \" +lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \" \" \"item,item,...item \" \" \" or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' @@ -4704,7 +4778,7 @@ interpreted as a quoted double quote mark. CBFlib defers reading binary sections as long as possible. In the current version of CBFlib, this means that: 1. The file must be a random-access file opened in binary mode (fopen -( , +( ")read_file; void read_file(char* filename, int headers){ @@ -4734,7 +4808,7 @@ handle Pointer to a CBF handle. file Pointer to a file descriptor. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")read_template; void read_template(char* filename){ @@ -4769,47 +4843,46 @@ relationships specified in the dictionary. flags controls the interpretation of binary section headers, the parsing of brackets constructs and the parsing of treble-quoted strings. -MSG_DIGEST: Instructs CBFlib to check that the digest -of the binary section matches any header digest value. If the digests -do not match, the call will return CBF_FORMAT. This evaluation and -comparison is delayed (a \"lazy \" evaluation) to ensure maximal -processing efficiency. If an immediately evaluation is required, see -MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to -check that the digest of the binary section matches any header -digeste value. If the digests do not match, the call will return -CBF_FORMAT. This evaluation and comparison is performed during -initial parsing of the section to ensure timely error reporting at -the expense of processing efficiency. If a more efficient delayed ( -\"lazy \") evaluation is required, see MSG_DIGEST, above. -MSG_DIGESTWARN: Instructs CBFlib to check that the digest -of the binary section matches any header digeste value. If the -digests do not match, a warning message will be sent to stderr, but -processing will attempt to continue. This evaluation and comparison -is first performed during initial parsing of the section to ensure -timely error reporting at the expense of processing efficiency. An -mismatch of the message digest usually indicates a serious error, but -it is sometimes worth continuing processing to try to isolate the -cause of the error. Use this option with caution. MSG_NODIGEST: - Do not check the digest (default). PARSE_BRACKETS: -Accept DDLm bracket-delimited [item,item,...item] or -{item,item,...item} or (item,item,...item) constructs as valid, +MSG_DIGEST: Instructs CBFlib to check that the digest of the binary +section matches any header digest value. If the digests do not match, +the call will return CBF_FORMAT. This evaluation and comparison is +delayed (a \"lazy \" evaluation) to ensure maximal processing +efficiency. If an immediately evaluation is required, see +MSG_DIGESTNOW, below. MSG_DIGESTNOW: Instructs CBFlib to check that +the digest of the binary section matches any header digeste value. If +the digests do not match, the call will return CBF_FORMAT. This +evaluation and comparison is performed during initial parsing of the +section to ensure timely error reporting at the expense of processing +efficiency. If a more efficient delayed ( \"lazy \") evaluation is +required, see MSG_DIGEST, above. MSG_DIGESTWARN: Instructs CBFlib +to check that the digest of the binary section matches any header +digeste value. If the digests do not match, a warning message will be +sent to stderr, but processing will attempt to continue. This +evaluation and comparison is first performed during initial parsing +of the section to ensure timely error reporting at the expense of +processing efficiency. An mismatch of the message digest usually +indicates a serious error, but it is sometimes worth continuing +processing to try to isolate the cause of the error. Use this option +with caution. MSG_NODIGEST: Do not check the digest (default). +PARSE_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] +or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple lines. PARSE_LIBERAL_BRACKETS: Accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping embedded non-quoted, non-separating whitespace and comments. These constructs may span multiple lines. In this case, whitespace may be used as an -alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm +alternative to the comma. PARSE_TRIPLE_QUOTES: Accept DDLm triple-quoted \" \" \"item,item,...item \" \" \" or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' will not be interpreted as a quoted apoptrophe and \" \" \" will not be interpreted as a quoted double -quote mark and PARSE_NOBRACKETS: Do not accept DDLm +quote mark and PARSE_NOBRACKETS: Do not accept DDLm bracket-delimited [item,item,...item] or {item,item,...item} or (item,item,...item) constructs as valid, stripping non-quoted embedded whitespace and comments. These constructs may span multiple -lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \" +lines. PARSE_NOTRIPLE_QUOTES: No not accept DDLm triple-quoted \" \" \"item,item,...item \" \" \" or '''item,item,...item''' constructs as valid, stripping embedded whitespace and comments. These constructs may span multiple lines. If this flag is set, then ''' @@ -4818,7 +4891,7 @@ interpreted as a quoted double quote mark. CBFlib defers reading binary sections as long as possible. In the current version of CBFlib, this means that: 1. The file must be a random-access file opened in binary mode (fopen -( , +( ")read_widefile; void read_widefile(char* filename, int headers){ @@ -4977,7 +5050,7 @@ Returns : String categoryroot *args : String Categoryname C prototype: int cbf_require_category_root (cbf_handle handle, - const char* categoryname, const char** categoryroot); + const char* categoryname, const char** categoryroot); CBFLib documentation: DESCRIPTION @@ -4995,7 +5068,7 @@ may be an alias. categoryroot pointer to a returned category root name. categoryroot_in input category root name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")cbf_require_category_root; const char* require_category_root (const char* categoryname){ @@ -5034,7 +5107,7 @@ Returns : Float defaultvalue *args : String columnname,Float Value C prototype: int cbf_require_column_doublevalue (cbf_handle handle, - const char *columnname, double *number, + const char *columnname, double *number, const double defaultvalue); CBFLib documentation: @@ -5045,10 +5118,10 @@ item at the current row for the column given with the name given by number, or to the number given by defaultvalue if the item cannot be found. ARGUMENTS -handle CBF handle. columnname Name of the column -containing the number. number pointer to the location to -receive the floating-point value. defaultvalue Value to use if the -requested column and value cannot be found. +handle CBF handle. columnname Name of the column containing the +number. number pointer to the location to receive the +floating-point value. defaultvalue Value to use if the requested +column and value cannot be found. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5065,7 +5138,7 @@ Returns : Int Value *args : String Columnvalue,Int default C prototype: int cbf_require_column_integervalue (cbf_handle handle, - const char *columnname, int *number, + const char *columnname, int *number, const int defaultvalue); CBFLib documentation: @@ -5075,10 +5148,10 @@ item at the current row for the column given with the name given by *columnname, with the value interpreted as an integer number, or to the number given by defaultvalue if the item cannot be found. ARGUMENTS -handle CBF handle. columnname Name of the column -containing the number. number pointer to the location to -receive the integer value. defaultvalue Value to use if the -requested column and value cannot be found. +handle CBF handle. columnname Name of the column containing the +number. number pointer to the location to receive the integer +value. defaultvalue Value to use if the requested column and value +cannot be found. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5095,7 +5168,7 @@ Returns : String Name *args : String columnnanme,String Default C prototype: int cbf_require_column_value (cbf_handle handle, - const char *columnname, const char **value, + const char *columnname, const char **value, const char *defaultvalue); CBFLib documentation: @@ -5104,10 +5177,10 @@ cbf_require_column_doublevalue sets *value to the ASCII item at the current row for the column given with the name given by *columnname, or to the string given by defaultvalue if the item cannot be found. ARGUMENTS -handle CBF handle. columnname Name of the column -containing the number. value pointer to the location to -receive the value. defaultvalue Value to use if the requested -column and value cannot be found. +handle CBF handle. columnname Name of the column containing the +number. value pointer to the location to receive the value. +defaultvalue Value to use if the requested column and value cannot +be found. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -5122,14 +5195,14 @@ SEE ALSO } /* cfunc cbf_require_datablock pyfunc require_datablock - arg cbf_handle handle arg const char *datablockname */ + arg cbf_handle handle arg const char *datablockname */ %feature("autodoc", " Returns : string *args : C prototype: int cbf_require_datablock (cbf_handle handle, - const char *datablockname); + const char *datablockname); CBFLib documentation: DESCRIPTION @@ -5208,7 +5281,7 @@ Returns : pycbf detector object *args : Integer element_number C prototype: int cbf_require_reference_detector (cbf_handle handle, - cbf_detector *detector, unsigned int element_number); + cbf_detector *detector, unsigned int element_number); CBFLib documentation: DESCRIPTION @@ -5222,13 +5295,13 @@ the reference settings of the axes. cbf_require_reference_detector is similar, but try to force the creations of missing intermediate categories needed to construct a detector object. ARGUMENTS -handle CBF handle. detector Pointer to the -destination detector handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. +handle CBF handle. detector Pointer to the destination detector +handle. element_number The number of the detector element counting +from 0 by order of appearance in the \"diffrn_data_frame \" +category. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")require_reference_detector; cbf_detector require_reference_detector(unsigned int element_number){ @@ -5241,7 +5314,7 @@ Returns : String tagroot *args : String tagname C prototype: int cbf_require_tag_root (cbf_handle handle, const char* tagname, - const char** tagroot); + const char** tagroot); CBFLib documentation: DESCRIPTION @@ -5258,7 +5331,7 @@ tagroot pointer to a returned tag root name. tagroot_in input tag root name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")require_tag_root; const char* require_tag_root(const char* tagname){ @@ -5271,7 +5344,7 @@ Returns : String Value *args : String defaultvalue C prototype: int cbf_require_value (cbf_handle handle, const char **value, - const char *defaultvalue ); + const char *defaultvalue ); CBFLib documentation: DESCRIPTION @@ -5681,27 +5754,27 @@ Returns : int elsign,int dimslow,int dimmid,int dimfast C prototype: int cbf_set_3d_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, + size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -5711,35 +5784,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_3d_image; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -5770,27 +5814,27 @@ Returns : int elsign,int dimfast,int dimmid,int dimslow C prototype: int cbf_set_3d_image_fs(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimfast, - size_t ndimmid, size_t ndimslow); + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimfast, + size_t ndimmid, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -5800,35 +5844,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_3d_image_fs; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -5859,27 +5874,27 @@ Returns : int elsign,int dimslow,int dimmid,int dimfast C prototype: int cbf_set_3d_image_sf(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, - size_t ndimmid, size_t ndimfast); + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, + size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -5889,35 +5904,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_3d_image_sf; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -5947,7 +5933,7 @@ Returns : *args : String axis_id,Float start,Float increment C prototype: int cbf_set_axis_setting (cbf_handle handle, - unsigned int reserved, const char *axis_id, double start, + unsigned int reserved, const char *axis_id, double start, double increment); CBFLib documentation: @@ -5961,7 +5947,7 @@ invalid. axis_id Axis id. start Start value. increment Increment value. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_axis_setting; void set_axis_setting(const char *axis_id, @@ -5976,7 +5962,7 @@ Returns : *args : Integer element_number,Float slowbinsize_in,Float fastbinsize_in C prototype: int cbf_set_bin_sizes(cbf_handle handle, - unsigned int element_number, double slowbinsize_in, + unsigned int element_number, double slowbinsize_in, double fastbinsize_in); CBFLib documentation: @@ -5996,9 +5982,9 @@ element with the ordinal element_number. In order to allow for software binning involving fractions of pixels, the bin sizes are doubles rather than ints. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. slowbinsize Pointer to the +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. slowbinsize Pointer to the returned number of pixels composing one array element in the dimension that changes at the second-fastest rate. fastbinsize Pointer to the returned number of pixels composing one array element @@ -6009,7 +5995,7 @@ of pixels composing one array element in the dimension that changes at the fastest rate. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_bin_sizes; void set_bin_sizes( int element_number, double slowbinsize_in, double fastbinsize_in) { @@ -6020,7 +6006,7 @@ Returns : *args : String categoryname,String categoryroot C prototype: int cbf_set_category_root (cbf_handle handle, - const char* categoryname_in, const char*categoryroot); + const char* categoryname_in, const char*categoryroot); CBFLib documentation: DESCRIPTION @@ -6038,7 +6024,7 @@ may be an alias. categoryroot pointer to a returned category root name. categoryroot_in input category root name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_category_root; void set_category_root(const char* categoryname, const char* categoryroot){ @@ -6063,7 +6049,7 @@ ARGUMENTS handle CBF handle. crystal_id ASCII value. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_crystal_id; void set_crystal_id(const char* arg){ cbf_failnez(cbf_set_crystal_id(self,arg));} @@ -6072,7 +6058,7 @@ Returns : *args : Integer timezone C prototype: int cbf_set_current_timestamp (cbf_handle handle, - unsigned int reserved, int timezone); + unsigned int reserved, int timezone); CBFLib documentation: DESCRIPTION @@ -6088,7 +6074,7 @@ invalid. timezone Timezone difference from UTC in minutes or CBF_NOTIMEZONE. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_current_timestamp; void set_current_timestamp(int timezone){ @@ -6098,14 +6084,14 @@ Returns an error code on failure or 0 for success. } /* cfunc cbf_set_datablockname pyfunc set_datablockname - arg cbf_handle handle arg const char *datablockname */ + arg cbf_handle handle arg const char *datablockname */ %feature("autodoc", " Returns : string *args : C prototype: int cbf_set_datablockname (cbf_handle handle, - const char *datablockname); + const char *datablockname); CBFLib documentation: DESCRIPTION @@ -6129,14 +6115,27 @@ Returns : int timezone,Float precision C prototype: int cbf_set_datestamp (cbf_handle handle, unsigned int reserved, - int year, int month, int day, int hour, int minute, - double second, int timezone, double precision); + int year, int month, int day, int hour, int minute, + double second, int timezone, double precision); CBFLib documentation: DESCRIPTION cbf_set_datestamp sets the collection timestamp in seconds since January 1 1970 to the value specified by time. The timezone -difference from UTC +difference from UTC in minutes is set to timezone. If no timezone is +desired, timezone should be CBF_NOTIM EZONE. The parameter reserved +is presently unused and should be set to 0. +The precision of the new timestamp is specified by the value +precision in seconds. If precision is 0, the saved timestamp is +assumed accurate to 1 second. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. time Timestamp in seconds since January 1 1970. +timezone Timezone difference from UTC in minutes or CBF_NOTIMEZONE. +precision Timestamp precision in seconds. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")set_datestamp; void set_datestamp(int year, int month, int day, int hour, @@ -6168,7 +6167,7 @@ handle CBF handle. dictionary Pointer to CBF handle of dictionary. dictionary_in CBF handle of dcitionary. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_dictionary; void set_dictionary(cbf_handle other){ @@ -6195,7 +6194,7 @@ ARGUMENTS handle CBF handle. diffrn_id ASCII value. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_diffrn_id; void set_diffrn_id(const char* arg){ cbf_failnez(cbf_set_diffrn_id(self,arg));} @@ -6204,7 +6203,7 @@ Returns : *args : Float div_x_source,Float div_y_source,Float div_x_y_source C prototype: int cbf_set_divergence (cbf_handle handle, double div_x_source, - double div_y_source, double div_x_y_source); + double div_y_source, double div_x_y_source); CBFLib documentation: DESCRIPTION @@ -6216,7 +6215,7 @@ div_x_source. div_y_source New value of div_y_source. div_x_y_source New value of div_x_y_source. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_divergence; void set_divergence ( double div_x_source, double div_y_source, @@ -6251,20 +6250,20 @@ Returns : *args : Float gain,Float gain_esd C prototype: int cbf_set_gain (cbf_handle handle, unsigned int element_number, - double gain, double gain_esd); + double gain, double gain_esd); CBFLib documentation: DESCRIPTION cbf_set_gain sets the gain of element number element_number to the values specified by gain and gain_esd. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. gain New gain value. -gain_esd New gain_esd value. +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. gain New gain value. gain_esd +New gain_esd value. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_gain; void set_gain (unsigned int element_number, double gain, double gain_esd){ @@ -6276,27 +6275,27 @@ Returns : int elsign,int dimslow,int dimfast C prototype: int cbf_set_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -6306,35 +6305,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_image; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -6365,27 +6335,27 @@ Returns : int elsign,int dimfast,int dimslow C prototype: int cbf_set_image_fs(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimfast, + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -6395,35 +6365,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_image_fs; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -6454,27 +6395,27 @@ Returns : int elsign,int dimslow,int dimfast C prototype: int cbf_set_image_sf(cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array, size_t elsize, int elsign, size_t ndimslow, + unsigned int element_number, unsigned int compression, + void *array, size_t elsize, int elsign, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -6484,35 +6425,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_image_sf; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -6543,8 +6455,8 @@ Returns : int elsigned,int elements C prototype: int cbf_set_integerarray (cbf_handle handle, - unsigned int compression, int binary_id, void *array, - size_t elsize, int elsigned, size_t elements); + unsigned int compression, int binary_id, void *array, + size_t elsize, int elsigned, size_t elements); CBFLib documentation: DESCRIPTION @@ -6565,32 +6477,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_integerarray; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -6644,32 +6541,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_integerarray_wdims; /* CBFlib must NOT modify the data string nor the byteorder string @@ -6730,32 +6612,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_integerarray_wdims_fs; /* CBFlib must NOT modify the data string nor the byteorder string @@ -6816,32 +6683,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_integerarray_wdims_sf; /* CBFlib must NOT modify the data string nor the byteorder string @@ -6898,7 +6750,7 @@ Returns : *args : Float time C prototype: int cbf_set_integration_time (cbf_handle handle, - unsigned int reserved, double time); + unsigned int reserved, double time); CBFLib documentation: DESCRIPTION @@ -6910,7 +6762,7 @@ handle CBF handle. reserved Unused. Any value other than 0 is invalid. time Integration time in seconds. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_integration_time; void set_integration_time(double time){ @@ -6925,7 +6777,7 @@ Returns : Float matrix_8 C prototype: int cbf_set_orientation_matrix (cbf_handle handle, - double ub_matrix[9]); + double ub_matrix[9]); CBFLib documentation: DESCRIPTION @@ -6938,11 +6790,11 @@ of columns: cbf_set_orientation_matrix sets the values in the \"diffrn \" category to the values pointed to by ub_matrix. ARGUMENTS -handle CBF handle. ubmatric Source or destination array of 9 +handle CBF handle. ubmatric Source or destination array of 9 doubles giving the orientation matrix parameters. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_orientation_matrix; void set_orientation_matrix( double m0,double m1, @@ -6959,19 +6811,19 @@ Returns : *args : Integer element_number,Float overload C prototype: int cbf_set_overload (cbf_handle handle, - unsigned int element_number, double overload); + unsigned int element_number, double overload); CBFLib documentation: DESCRIPTION cbf_set_overload sets the overload value of element number element_number to overload. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. overload New overload value. +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. overload New overload value. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_overload; void set_overload(unsigned int element_number, double overload){ @@ -6982,23 +6834,22 @@ Returns : *args : Int element_number,Int axis_number,Float pixel size C prototype: int cbf_set_pixel_size (cbf_handle handle, - unsigned int element_number, int axis_number, - double psize); + unsigned int element_number, int axis_number, double psize); CBFLib documentation: DESCRIPTION cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the -\"size \" column of the \"array_structure_list \" category at the -row which matches axis axis_number of the detector element +"e;size"e; column of the \"array_structure_list \" category +at the row which matches axis axis_number of the detector element element_number converting the double pixel size psize from meters to millimeters in storing it in the \"size \" column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the slowest axis. -cbf_set_pixel_size_fs sets the item in the \"size \" column of the -\"array_structure_list \" category at the row which matches axis -axis_number of the detector element element_number converting the -double pixel size psize from meters to millimeters in storing it in -the \"size \" column for the axis axis_number of the detector +cbf_set_pixel_size_fs sets the item in the "e;size"e; column +of the \"array_structure_list \" category at the row which matches +axis axis_number of the detector element element_number converting +the double pixel size psize from meters to millimeters in storing it +in the \"size \" column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the fastest axis. If a negative axis number is given, the order of axes is reversed, so @@ -7011,10 +6862,14 @@ does not already exist, it is created. If the pixel size is not given explcitly in the \"array_element_size category \", the function returns CBF_NOTFOUND. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. axis_number The number of the -axis, fastest first, starting from 1. +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. axis_number The number of the +axis, fastest first, starting from 1. psize The pixel size in +millimeters. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")set_pixel_size; void set_pixel_size (unsigned int element_number, @@ -7029,23 +6884,22 @@ Returns : *args : Int element_number,Int axis_number,Float pixel size C prototype: int cbf_set_pixel_size_fs(cbf_handle handle, - unsigned int element_number, int axis_number, - double psize); + unsigned int element_number, int axis_number, double psize); CBFLib documentation: DESCRIPTION cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the -\"size \" column of the \"array_structure_list \" category at the -row which matches axis axis_number of the detector element +"e;size"e; column of the \"array_structure_list \" category +at the row which matches axis axis_number of the detector element element_number converting the double pixel size psize from meters to millimeters in storing it in the \"size \" column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the slowest axis. -cbf_set_pixel_size_fs sets the item in the \"size \" column of the -\"array_structure_list \" category at the row which matches axis -axis_number of the detector element element_number converting the -double pixel size psize from meters to millimeters in storing it in -the \"size \" column for the axis axis_number of the detector +cbf_set_pixel_size_fs sets the item in the "e;size"e; column +of the \"array_structure_list \" category at the row which matches +axis axis_number of the detector element element_number converting +the double pixel size psize from meters to millimeters in storing it +in the \"size \" column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the fastest axis. If a negative axis number is given, the order of axes is reversed, so @@ -7058,10 +6912,14 @@ does not already exist, it is created. If the pixel size is not given explcitly in the \"array_element_size category \", the function returns CBF_NOTFOUND. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. axis_number The number of the -axis, fastest first, starting from 1. +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. axis_number The number of the +axis, fastest first, starting from 1. psize The pixel size in +millimeters. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")set_pixel_size_fs; void set_pixel_size_fs (unsigned int element_number, @@ -7076,23 +6934,22 @@ Returns : *args : Int element_number,Int axis_number,Float pixel size C prototype: int cbf_set_pixel_size_sf(cbf_handle handle, - unsigned int element_number, int axis_number, - double psize); + unsigned int element_number, int axis_number, double psize); CBFLib documentation: DESCRIPTION cbf_set_pixel_size and cbf_set_pixel_size_sf set the item in the -\"size \" column of the \"array_structure_list \" category at the -row which matches axis axis_number of the detector element +"e;size"e; column of the \"array_structure_list \" category +at the row which matches axis axis_number of the detector element element_number converting the double pixel size psize from meters to millimeters in storing it in the \"size \" column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the slowest axis. -cbf_set_pixel_size_fs sets the item in the \"size \" column of the -\"array_structure_list \" category at the row which matches axis -axis_number of the detector element element_number converting the -double pixel size psize from meters to millimeters in storing it in -the \"size \" column for the axis axis_number of the detector +cbf_set_pixel_size_fs sets the item in the "e;size"e; column +of the \"array_structure_list \" category at the row which matches +axis axis_number of the detector element element_number converting +the double pixel size psize from meters to millimeters in storing it +in the \"size \" column for the axis axis_number of the detector element element_number. The axis_number is numbered from 1, starting with the fastest axis. If a negative axis number is given, the order of axes is reversed, so @@ -7105,10 +6962,14 @@ does not already exist, it is created. If the pixel size is not given explcitly in the \"array_element_size category \", the function returns CBF_NOTFOUND. ARGUMENTS -handle CBF handle. element_number The number of the -detector element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. axis_number The number of the -axis, fastest first, starting from 1. +handle CBF handle. element_number The number of the detector +element counting from 0 by order of appearance in the +\"diffrn_data_frame \" category. axis_number The number of the +axis, fastest first, starting from 1. psize The pixel size in +millimeters. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")set_pixel_size_sf; void set_pixel_size_sf (unsigned int element_number, @@ -7123,8 +6984,7 @@ Returns : *args : Float polarizn_source_ratio,Float polarizn_source_norm C prototype: int cbf_set_polarization (cbf_handle handle, - double polarizn_source_ratio, - double polarizn_source_norm); + double polarizn_source_ratio, double polarizn_source_norm); CBFLib documentation: DESCRIPTION @@ -7136,7 +6996,7 @@ of polarizn_source_ratio. polarizn_source_norm New value of polarizn_source_norm. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_polarization; void set_polarization (double polarizn_source_ratio, @@ -7151,27 +7011,27 @@ Returns : int dimslow,int dimmid,int dimfast C prototype: int cbf_set_real_3d_image (cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, - size_t ndimslow, size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, + size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7181,35 +7041,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_real_3d_image; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -7240,27 +7071,27 @@ Returns : int dimfast,int dimmid,int dimslow C prototype: int cbf_set_real_3d_image_fs(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, - size_t ndimfast, size_t ndimmid, size_t ndimslow); + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, + size_t ndimfast, size_t ndimmid, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7270,35 +7101,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_real_3d_image_fs; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -7329,27 +7131,27 @@ Returns : int dimslow,int dimmid,int dimfast C prototype: int cbf_set_real_3d_image_sf(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, - size_t ndimslow, size_t ndimmid, size_t ndimfast); + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, + size_t ndimslow, size_t ndimmid, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7359,35 +7161,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_real_3d_image_sf; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -7418,27 +7191,27 @@ Returns : int dimslow,int dimfast C prototype: int cbf_set_real_image (cbf_handle handle, unsigned int reserved, - unsigned int element_number, unsigned int compression, - void *array,size_t elsize, size_t ndimslow, + unsigned int element_number, unsigned int compression, + void *array,size_t elsize, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7448,35 +7221,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_real_image; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -7507,27 +7251,27 @@ Returns : int dimfast,int dimslow C prototype: int cbf_set_real_image_fs(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, size_t ndimfast, size_t ndimslow); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7537,35 +7281,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_real_image_fs; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -7596,27 +7311,27 @@ Returns : int dimslow,int dimfast C prototype: int cbf_set_real_image_sf(cbf_handle handle, - unsigned int reserved, unsigned int element_number, - unsigned int compression, void *array,size_t elsize, + unsigned int reserved, unsigned int element_number, + unsigned int compression, void *array,size_t elsize, size_t ndimslow, size_t ndimfast); CBFLib documentation: DESCRIPTION cbf_set_image, cbf_set_image_fs and cbf_set_image_sf write the image array for element number element_number. The array consists of -ndimfast×ndimslow elements of elsize bytes each, starting at array. +ndimfastndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-zero and unsigned otherwise. cbf_set_real_image, cbf_set_real_image_fs and cbf_set_real_image_sf write the image array for element number element_number. The array -consists of ndimfast×ndimslow IEEE double or float elements of elsize +consists of ndimfastndimslow IEEE double or float elements of elsize bytes each, starting at array. cbf_set_3d_image, cbf_set_3d_image_fs and cbf_set_3d_image_sf write the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow +element_number. The array consists of ndimfastndimmidndimslow elements of elsize bytes each, starting at array. The elements are signed if elsign is non-0 and unsigned otherwise. cbf_set_real_3d_image, cbf_set_real_3d_image_fs and cbf_set_real_3d_image_sf writes the 3D image array for element number -element_number. The array consists of ndimfast×ndimmid×ndimslow IEEE +element_number. The array consists of ndimfastndimmidndimslow IEEE double or float elements of elsize bytes each, starting at array. The _fs calls give the dimensions in a fast-to-slow order. The calls with no suffix and the calls _sf calls give the dimensions in @@ -7626,35 +7341,6 @@ ndimfast and, for the 3D calls, ndimmid, should be set to 1. If the array is 2-dimensional and the 3D calls are used, ndimslow and ndimmid should be used for the array dimensions and ndimfast should be set to 1. -The array will be compressed using the compression scheme specifed by -compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET -Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -The values compressed are limited to 64 bits. If any element in the -array is larger than 64 bits, the value compressed is the nearest -64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned)for cbf_set_image, or IEEE doubles or floats for -cbf_set_real_image. If elsize is not equal to sizeof (short), sizeof -(int), sizeof(double) or sizeof(float), the function returns -CBF_ARGUMENT. -The parameter reserved is presently unused and should be set to 0. -ARGUMENTS -handle CBF handle. reserved Unused. Any value other -than 0 is invalid. element_number The number of the detector -element counting from 0 by order of appearance in the -\"diffrn_data_frame \" category. compression Compression type. -array Pointer to the image array. elsize Size in -bytes of each image array element. elsigned Set to non-0 if -the image array elements are signed. ndimslow Slowest array -dimension. ndimmid Second slowest array dimension. ndimfast - Fastest array dimension. -RETURN VALUE -Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- ")set_real_image_sf; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -7707,32 +7393,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_realarray; /* CBFlib must NOT modify the data string which belongs to the scripting @@ -7762,10 +7433,10 @@ Returns : int padding C prototype: int cbf_set_realarray_wdims (cbf_handle handle, - unsigned int compression, int binary_id, void *array, - size_t elsize, size_t elements, const char *byteorder, - size_t dimfast, size_t dimmid, size_t dimslow, - size_t padding); + unsigned int compression, int binary_id, void *array, + size_t elsize, size_t elements, const char *byteorder, + size_t dimfast, size_t dimmid, size_t dimslow, + size_t padding); CBFLib documentation: DESCRIPTION @@ -7786,32 +7457,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_realarray_wdims; /* CBFlib must NOT modify the data string nor the byteorder string @@ -7849,9 +7505,9 @@ Returns : C prototype: int cbf_set_realarray_wdims_fs (cbf_handle handle, unsigned int compression, int binary_id, void *array, - size_t elsize, size_t elements, const char *byteorder, - size_t dimfast, size_t dimmid, size_t dimslow, - size_t padding); + size_t elsize, size_t elements, const char *byteorder, + size_t dimfast, size_t dimmid, size_t dimslow, + size_t padding); CBFLib documentation: DESCRIPTION @@ -7872,32 +7528,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_realarray_wdims_fs; /* CBFlib must NOT modify the data string nor the byteorder string @@ -7935,9 +7576,9 @@ Returns : C prototype: int cbf_set_realarray_wdims_sf (cbf_handle handle, unsigned int compression, int binary_id, void *array, - size_t elsize, size_t elements, const char *byteorder, - size_t dimslow, size_t dimmid, size_t dimfast, - size_t padding); + size_t elsize, size_t elements, const char *byteorder, + size_t dimslow, size_t dimmid, size_t dimfast, + size_t padding); CBFLib documentation: DESCRIPTION @@ -7958,32 +7599,17 @@ fastest and third fastest array dimensions and the size in byte of the post data padding to be used. The array will be compressed using the compression scheme specifed by compression. Currently, the available schemes are: -CBF_CANONICAL Canonical-code compression (section 3.3.1) -CBF_PACKED CCP4-style packing (section 3.3.2) CBF_PACKED_V2 - CCP4-style packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET - Simple \"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple -\"nibble_offset \" compression. CBF_NONE No compression. -NOTE: This scheme is by far the slowest of the four and uses much -more disk space. It is intended for routine use with small arrays -only. With large arrays (like images) it should be used only for -debugging. +CBF_CANONICAL Canonical-code compression (section 3.3.1) CBF_PACKED + CCP4-style packing (section 3.3.2) CBF_PACKED_V2 CCP4-style +packing, version 2 (section 3.3.2) CBF_BYTE_OFFSET Simple +\"byte_offset \" compression. CBF_NIBBLE_OFFSET Simple +\"nibble_offset \" compression. CBF_NONE No compression. NOTE: This +scheme is by far the slowest of the four and uses much more disk +space. It is intended for routine use with small arrays only. With +large arrays (like images) it should be used only for debugging. The values compressed are limited to 64 bits. If any element in the array is larger than 64 bits, the value compressed is the nearest 64-bit value. -Currently, the source array must consist of chars, shorts or ints -(signed or unsigned), for cbf_set_integerarray, or IEEE doubles or -floats for cbf_set_realarray. If elsize is not equal to sizeof -(char), sizeof (short) or sizeof (int), the function returns -CBF_ARGUMENT. -ARGUMENTS -handle CBF handle. compression Compression method to use. -binary_id Integer binary identifier. array Pointer to the -source array. elsize Size in bytes of each source array -element. elsigned Set to non-0 if the source array elements are -signed. elements: The number of elements in the array. -RETURN VALUE -Returns an error code on failure or 0 for success. -SEE ALSO ")set_realarray_wdims_sf; /* CBFlib must NOT modify the data string nor the byteorder string @@ -8018,19 +7644,19 @@ Returns : *args : double cell[6] C prototype: int cbf_set_reciprocal_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_reciprocal_cell sets the reciprocal cell parameters to the double values given in cell[0:2] for the reciprocal cell edge lengths -a^*, b^* and c^* in Ångstroms^-1, the double values given in -cell[3:5] for the reciprocal cell angles α^*, β^* and γ^* in degrees, -the double values given in cell_esd[0:2] for the estimated strandard +a^*, b^* and c^* in ngstroms^-1, the double values given in cell[3:5] +for the reciprocal cell angles a^*, b^* and g^* in degrees, the +double values given in cell_esd[0:2] for the estimated strandard deviations of the reciprocal cell edge lengths a^*, b^* and c^* in -Ångstroms, and the double values given in cell_esd[3:5] for the -estimated standard deviations of the reciprocal cell angles α^*, β^* -and γ^* in degrees. +ngstroms, and the double values given in cell_esd[3:5] for the +estimated standard deviations of the reciprocal cell angles a^*, b^* +and g^* in degrees. The values are placed in the first row of the \"cell \" category. If no value has been given for \"_cell.entry_id \", it is set to the value of the \"diffrn.id \" entry of the current data block. @@ -8040,9 +7666,9 @@ If cell_esd is NULL, the reciprocal cell parameter esds are not set. If the \"cell \" category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS -handle CBF handle. cell Pointer to the array of 6 doubles -for the reciprocal cell parameters. cell_esd Pointer to the array -of 6 doubles for the reciprocal cell parameter esds. +handle CBF handle. cell Pointer to the array of 6 doubles for the +reciprocal cell parameters. cell_esd Pointer to the array of 6 +doubles for the reciprocal cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8056,19 +7682,19 @@ Returns : *args : double cell_esd[6] C prototype: int cbf_set_reciprocal_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_reciprocal_cell sets the reciprocal cell parameters to the double values given in cell[0:2] for the reciprocal cell edge lengths -a^*, b^* and c^* in Ångstroms^-1, the double values given in -cell[3:5] for the reciprocal cell angles α^*, β^* and γ^* in degrees, -the double values given in cell_esd[0:2] for the estimated strandard +a^*, b^* and c^* in ngstroms^-1, the double values given in cell[3:5] +for the reciprocal cell angles a^*, b^* and g^* in degrees, the +double values given in cell_esd[0:2] for the estimated strandard deviations of the reciprocal cell edge lengths a^*, b^* and c^* in -Ångstroms, and the double values given in cell_esd[3:5] for the -estimated standard deviations of the reciprocal cell angles α^*, β^* -and γ^* in degrees. +ngstroms, and the double values given in cell_esd[3:5] for the +estimated standard deviations of the reciprocal cell angles a^*, b^* +and g^* in degrees. The values are placed in the first row of the \"cell \" category. If no value has been given for \"_cell.entry_id \", it is set to the value of the \"diffrn.id \" entry of the current data block. @@ -8078,9 +7704,9 @@ If cell_esd is NULL, the reciprocal cell parameter esds are not set. If the \"cell \" category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS -handle CBF handle. cell Pointer to the array of 6 doubles -for the reciprocal cell parameters. cell_esd Pointer to the array -of 6 doubles for the reciprocal cell parameter esds. +handle CBF handle. cell Pointer to the array of 6 doubles for the +reciprocal cell parameters. cell_esd Pointer to the array of 6 +doubles for the reciprocal cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8091,14 +7717,14 @@ SEE ALSO } /* cfunc cbf_set_saveframename pyfunc set_saveframename - arg cbf_handle handle arg const char *saveframename */ + arg cbf_handle handle arg const char *saveframename */ %feature("autodoc", " Returns : string *args : C prototype: int cbf_set_saveframename (cbf_handle handle, - const char *saveframename); + const char *saveframename); CBFLib documentation: DESCRIPTION @@ -8121,7 +7747,7 @@ Returns : *args : String tagname,String categoryname_in C prototype: int cbf_set_tag_category (cbf_handle handle, const char* tagname, - const char* categoryname_in); + const char* categoryname_in); CBFLib documentation: DESCRIPTION @@ -8135,7 +7761,7 @@ categoryname pointer to a returned category name. categoryname_in input category name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_tag_category; void set_tag_category(const char *tagname, const char* categoryname_in){ @@ -8146,7 +7772,7 @@ Returns : *args : String tagname,String tagroot_in C prototype: int cbf_set_tag_root (cbf_handle handle, const char* tagname, - const char*tagroot_in); + const char*tagroot_in); CBFLib documentation: DESCRIPTION @@ -8163,7 +7789,7 @@ tagroot pointer to a returned tag root name. tagroot_in input tag root name. RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_tag_root; void set_tag_root(const char* tagname, const char* tagroot_in){ @@ -8174,13 +7800,26 @@ Returns : *args : Float time,Integer timezone,Float precision C prototype: int cbf_set_timestamp (cbf_handle handle, unsigned int reserved, - double time, int timezone, double precision); + double time, int timezone, double precision); CBFLib documentation: DESCRIPTION cbf_set_timestamp sets the collection timestamp in seconds since January 1 1970 to the value specified by time. The timezone -difference from UTC +difference from UTC in minutes is set to timezone. If no timezone is +desired, timezone should be CBF_NOTIM EZONE. The parameter reserved +is presently unused and should be set to 0. +The precision of the new timestamp is specified by the value +precision in seconds. If precision is 0, the saved timestamp is +assumed accurate to 1 second. +ARGUMENTS +handle CBF handle. reserved Unused. Any value other than 0 is +invalid. time Timestamp in seconds since January 1 1970. +timezone Timezone difference from UTC in minutes or +CBF_NOTIMEZONE. precision Timestamp precision in seconds. +RETURN VALUE +Returns an error code on failure or 0 for success. +__________________________________________________________________ ")set_timestamp; void set_timestamp(double time, int timezone, double precision){ @@ -8238,18 +7877,17 @@ Returns : *args : double cell[6] C prototype: int cbf_set_unit_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_unit_cell sets the cell parameters to the double values given -in cell[0:2] for the cell edge lengths a, b and c in Ångstroms, the -double values given in cell[3:5] for the cell angles α, β and γ in +in cell[0:2] for the cell edge lengths a, b and c in ngstroms, the +double values given in cell[3:5] for the cell angles a, b and g in degrees, the double values given in cell_esd[0:2] for the estimated -strandard deviations of the cell edge lengths a, b and c in -Ångstroms, and the double values given in cell_esd[3:5] for the -estimated standard deviations of the the cell angles α, β and γ in -degrees. +strandard deviations of the cell edge lengths a, b and c in ngstroms, +and the double values given in cell_esd[3:5] for the estimated +standard deviations of the the cell angles a, b and g in degrees. The values are placed in the first row of the \"cell \" category. If no value has been given for \"_cell.entry_id \", it is set to the value of the \"diffrn.id \" entry of the current data block. @@ -8259,9 +7897,9 @@ If cell_esd is NULL, the cell parameter esds are not set. If the \"cell \" category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS -handle CBF handle. cell Pointer to the array of 6 doubles -for the cell parameters. cell_esd Pointer to the array of 6 doubles -for the cell parameter esds. +handle CBF handle. cell Pointer to the array of 6 doubles for the +cell parameters. cell_esd Pointer to the array of 6 doubles for the +cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8275,18 +7913,17 @@ Returns : *args : double cell_esd[6] C prototype: int cbf_set_unit_cell (cbf_handle handle, double cell[6], - double cell_esd[6] ); + double cell_esd[6] ); CBFLib documentation: DESCRIPTION cbf_set_unit_cell sets the cell parameters to the double values given -in cell[0:2] for the cell edge lengths a, b and c in Ångstroms, the -double values given in cell[3:5] for the cell angles α, β and γ in +in cell[0:2] for the cell edge lengths a, b and c in ngstroms, the +double values given in cell[3:5] for the cell angles a, b and g in degrees, the double values given in cell_esd[0:2] for the estimated -strandard deviations of the cell edge lengths a, b and c in -Ångstroms, and the double values given in cell_esd[3:5] for the -estimated standard deviations of the the cell angles α, β and γ in -degrees. +strandard deviations of the cell edge lengths a, b and c in ngstroms, +and the double values given in cell_esd[3:5] for the estimated +standard deviations of the the cell angles a, b and g in degrees. The values are placed in the first row of the \"cell \" category. If no value has been given for \"_cell.entry_id \", it is set to the value of the \"diffrn.id \" entry of the current data block. @@ -8296,9 +7933,9 @@ If cell_esd is NULL, the cell parameter esds are not set. If the \"cell \" category is not present, it is created. If any of the necessary columns are not present, they are created. ARGUMENTS -handle CBF handle. cell Pointer to the array of 6 doubles -for the cell parameters. cell_esd Pointer to the array of 6 doubles -for the cell parameter esds. +handle CBF handle. cell Pointer to the array of 6 doubles for the +cell parameters. cell_esd Pointer to the array of 6 doubles for the +cell parameter esds. RETURN VALUE Returns an error code on failure or 0 for success. SEE ALSO @@ -8341,12 +7978,12 @@ C prototype: int cbf_set_wavelength (cbf_handle handle, double wavelength); CBFLib documentation: DESCRIPTION -cbf_set_wavelength sets the current wavelength in Å to wavelength. +cbf_set_wavelength sets the current wavelength in to wavelength. ARGUMENTS -handle CBF handle. wavelength Wavelength in Å. +handle CBF handle. wavelength Wavelength in . RETURN VALUE Returns an error code on failure or 0 for success. ----------------------------------------------------------------------- +__________________________________________________________________ ")set_wavelength; void set_wavelength(double wavelength){ cbf_failnez(cbf_set_wavelength(self,wavelength));} @@ -8372,6 +8009,54 @@ If the file is random-access and readable, readable can be set to non-0 to indicate to CBFlib that the file can be used as a buffer to conserve disk space. If the file is not random-access or not readable, readable must be 0. +If readable is non-0, CBFlib will close the file when it is no longer +required, otherwise this is the responsibility of the program. +ciforcbf selects the format in which the binary sections are written: +CIF Write an imgCIF file. CBF Write a CBF file (default). +flags selects the type of header used in CBF binary sections, selects +whether message digests are generated, and controls the style of +output. The value of flags can be a logical OR of any of: +MIME_HEADERS Use MIME-type headers (default). MIME_NOHEADERS Use +a simple ASCII headers. MSG_DIGEST Generate message digests for +binary data validation. MSG_NODIGEST Do not generate message +digests (default). PARSE_BRACKETS Do not convert bracketed strings +to text fields (default). PARSE_LIBERAL_BRACKETS Do not convert +bracketed strings to text fields (default). PARSE_NOBRACKETS +Convert bracketed strings to text fields (default). +PARSE_TRIPLE_QUOTES Do not convert triple-quoted strings to text +fields (default). PARSE_NOTRIPLE_QUOTES Convert triple-quoted +strings to text fields (default). PAD_1K Pad binary sections with +1023 nulls. PAD_2K Pad binary sections with 2047 nulls. PAD_4K +Pad binary sections with 4095 nulls. +Note that on output, the types \"prns&, \"brcs \" and \"bkts \" +will be converted to \"text \" fields if PARSE_NOBRACKETS has been +set flags, and that the types \"tsqs \" and \"tdqs \" will be +converted to \"text \" fields if the flag PARSE_NOTRIPLE_QUOTES has +been set in the flags. It is an error to set PARSE_NOBRACKETS and to +set either PARSE_BRACKETS or PARSE_LIBERAL_BRACKETS. It is an error +to set both PARSE_NOTRIPLE_QUOTES and PARSE_TRIPLE_QUOTES. +encoding selects the type of encoding used for binary sections and +the type of line-termination in imgCIF files. The value can be a +logical OR of any of: +ENC_BASE64 Use BASE64 encoding (default). ENC_QP Use +QUOTED-PRINTABLE encoding. ENC_BASE8 Use BASE8 (octal) encoding. +ENC_BASE10 Use BASE10 (decimal) encoding. ENC_BASE16 Use BASE16 +(hexadecimal) encoding. ENC_FORWARD For BASE8, BASE10 or BASE16 +encoding, map bytes to words forward (1234) (default on little-endian +machines). ENC_BACKWARD Map bytes to words backward (4321) (default +on big-endian machines). ENC_CRTERM Terminate lines with CR. +ENC_LFTERM Terminate lines with LF (default). +ARGUMENTS +handle CBF handle. file Pointer to a file descriptor. readable +If non-0: this file is random-access and readable and can be used as +a buffer. ciforcbf Selects the format in which the binary sections +are written (CIF/CBF). headers Selects the type of header in CBF +binary sections and message digest generation. encoding Selects the +type of encoding used for binary sections and the type of +line-termination in imgCIF files. +RETURN VALUE +Returns an error code on failure or 0 for success. +SEE ALSO ")write_file; void write_file(const char* filename, int ciforcbf, int headers, @@ -8394,7 +8079,7 @@ Returns : *args : String filename,Integer ciforcbf,Integer Headers,Integer encoding C prototype: int cbf_write_widefile (cbf_handle handle, FILE *file, - int readable, int ciforcbf, int flags, int encoding); + int readable, int ciforcbf, int flags, int encoding); CBFLib documentation: DESCRIPTION @@ -8411,6 +8096,54 @@ If the file is random-access and readable, readable can be set to non-0 to indicate to CBFlib that the file can be used as a buffer to conserve disk space. If the file is not random-access or not readable, readable must be 0. +If readable is non-0, CBFlib will close the file when it is no longer +required, otherwise this is the responsibility of the program. +ciforcbf selects the format in which the binary sections are written: +CIF Write an imgCIF file. CBF Write a CBF file (default). +flags selects the type of header used in CBF binary sections, selects +whether message digests are generated, and controls the style of +output. The value of flags can be a logical OR of any of: +MIME_HEADERS Use MIME-type headers (default). MIME_NOHEADERS Use +a simple ASCII headers. MSG_DIGEST Generate message digests for +binary data validation. MSG_NODIGEST Do not generate message +digests (default). PARSE_BRACKETS Do not convert bracketed strings +to text fields (default). PARSE_LIBERAL_BRACKETS Do not convert +bracketed strings to text fields (default). PARSE_NOBRACKETS +Convert bracketed strings to text fields (default). +PARSE_TRIPLE_QUOTES Do not convert triple-quoted strings to text +fields (default). PARSE_NOTRIPLE_QUOTES Convert triple-quoted +strings to text fields (default). PAD_1K Pad binary sections with +1023 nulls. PAD_2K Pad binary sections with 2047 nulls. PAD_4K +Pad binary sections with 4095 nulls. +Note that on output, the types \"prns&, \"brcs \" and \"bkts \" +will be converted to \"text \" fields if PARSE_NOBRACKETS has been +set flags, and that the types \"tsqs \" and \"tdqs \" will be +converted to \"text \" fields if the flag PARSE_NOTRIPLE_QUOTES has +been set in the flags. It is an error to set PARSE_NOBRACKETS and to +set either PARSE_BRACKETS or PARSE_LIBERAL_BRACKETS. It is an error +to set both PARSE_NOTRIPLE_QUOTES and PARSE_TRIPLE_QUOTES. +encoding selects the type of encoding used for binary sections and +the type of line-termination in imgCIF files. The value can be a +logical OR of any of: +ENC_BASE64 Use BASE64 encoding (default). ENC_QP Use +QUOTED-PRINTABLE encoding. ENC_BASE8 Use BASE8 (octal) encoding. +ENC_BASE10 Use BASE10 (decimal) encoding. ENC_BASE16 Use BASE16 +(hexadecimal) encoding. ENC_FORWARD For BASE8, BASE10 or BASE16 +encoding, map bytes to words forward (1234) (default on little-endian +machines). ENC_BACKWARD Map bytes to words backward (4321) (default +on big-endian machines). ENC_CRTERM Terminate lines with CR. +ENC_LFTERM Terminate lines with LF (default). +ARGUMENTS +handle CBF handle. file Pointer to a file descriptor. readable +If non-0: this file is random-access and readable and can be used as +a buffer. ciforcbf Selects the format in which the binary sections +are written (CIF/CBF). headers Selects the type of header in CBF +binary sections and message digest generation. encoding Selects the +type of encoding used for binary sections and the type of +line-termination in imgCIF files. +RETURN VALUE +Returns an error code on failure or 0 for success. +SEE ALSO ")write_widefile; void write_widefile(const char* filename, int ciforcbf, int headers, From 478483160dcd59e8ef45903b73ba1fb15583251f Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Wed, 11 Sep 2024 09:23:03 +0100 Subject: [PATCH 03/11] Regenerate again --- src/pycbf/img.c | 478 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 376 insertions(+), 102 deletions(-) diff --git a/src/pycbf/img.c b/src/pycbf/img.c index ca64767..e87ae97 100644 --- a/src/pycbf/img.c +++ b/src/pycbf/img.c @@ -1,4 +1,4 @@ -/* Generated by Cython 0.29.23 */ +/* Generated by Cython 0.29.37 */ /* BEGIN: Cython Metadata { @@ -10,12 +10,12 @@ ] ], "depends": [ - "/Users/nickd/dials/cbflib/pycbf/cbflib/include/img.h" + "/Users/nickd/dials/pycbf/cbflib/include/img.h" ], "include_dirs": [ "cbflib/include", - "/Users/nickd/dials/cbflib/pycbf/cbflib/include", - "/Users/nickd/dials/cbflib/pycbf" + "/Users/nickd/dials/pycbf/cbflib/include", + "/Users/nickd/dials/pycbf" ], "name": "pycbf.img", "sources": [ @@ -36,8 +36,8 @@ END: Cython Metadata */ #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.6+ or Python 3.3+. #else -#define CYTHON_ABI "0_29_23" -#define CYTHON_HEX_VERSION 0x001D17F0 +#define CYTHON_ABI "0_29_37" +#define CYTHON_HEX_VERSION 0x001D25F0 #define CYTHON_FUTURE_DIVISION 1 #include #ifndef offsetof @@ -76,6 +76,7 @@ END: Cython Metadata */ #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 + #define CYTHON_COMPILING_IN_NOGIL 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_PYTYPE_LOOKUP @@ -104,18 +105,26 @@ END: Cython Metadata */ #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 - #undef CYTHON_PEP489_MULTI_PHASE_INIT - #define CYTHON_PEP489_MULTI_PHASE_INIT 0 + #if PY_VERSION_HEX < 0x03090000 + #undef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 0 + #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT) + #define CYTHON_PEP489_MULTI_PHASE_INIT 1 + #endif #undef CYTHON_USE_TP_FINALIZE - #define CYTHON_USE_TP_FINALIZE 0 + #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00) #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 + #endif #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 + #define CYTHON_COMPILING_IN_NOGIL 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif @@ -153,10 +162,59 @@ END: Cython Metadata */ #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 + #endif +#elif defined(PY_NOGIL) + #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_PYSTON 0 + #define CYTHON_COMPILING_IN_CPYTHON 0 + #define CYTHON_COMPILING_IN_NOGIL 1 + #ifndef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 1 + #endif + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #ifndef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 1 + #endif + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #ifndef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 1 + #endif + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #ifndef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 0 + #endif + #ifndef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 1 + #endif + #ifndef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 1 + #endif + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 + #ifndef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 1 + #endif + #ifndef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 1 + #endif + #undef CYTHON_USE_DICT_VERSIONS + #define CYTHON_USE_DICT_VERSIONS 0 + #undef CYTHON_USE_EXC_INFO_STACK + #define CYTHON_USE_EXC_INFO_STACK 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 + #define CYTHON_COMPILING_IN_NOGIL 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif @@ -176,7 +234,7 @@ END: Cython Metadata */ #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) - #define CYTHON_USE_PYLONG_INTERNALS 1 + #define CYTHON_USE_PYLONG_INTERNALS (PY_VERSION_HEX < 0x030C00A5) #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 @@ -184,7 +242,7 @@ END: Cython Metadata */ #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif - #if PY_VERSION_HEX < 0x030300F0 + #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) @@ -199,11 +257,14 @@ END: Cython Metadata */ #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif - #ifndef CYTHON_FAST_THREAD_STATE + #if PY_VERSION_HEX >= 0x030B00A4 + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #elif !defined(CYTHON_FAST_THREAD_STATE) #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL - #define CYTHON_FAST_PYCALL 1 + #define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030A0000) #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000) @@ -212,17 +273,25 @@ END: Cython Metadata */ #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) #endif #ifndef CYTHON_USE_DICT_VERSIONS - #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1) + #define CYTHON_USE_DICT_VERSIONS ((PY_VERSION_HEX >= 0x030600B1) && (PY_VERSION_HEX < 0x030C00A5)) #endif - #ifndef CYTHON_USE_EXC_INFO_STACK + #if PY_VERSION_HEX >= 0x030B00A4 + #undef CYTHON_USE_EXC_INFO_STACK + #define CYTHON_USE_EXC_INFO_STACK 0 + #elif !defined(CYTHON_USE_EXC_INFO_STACK) #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3) #endif + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 + #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS - #include "longintrepr.h" + #if PY_MAJOR_VERSION < 3 + #include "longintrepr.h" + #endif #undef SHIFT #undef BASE #undef MASK @@ -327,9 +396,6 @@ END: Cython Metadata */ #endif #endif -#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) - #define Py_OptimizeFlag 0 -#endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 @@ -339,15 +405,79 @@ END: Cython Metadata */ #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" -#if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2 - #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ - PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) + #define __Pyx_DefaultClassType PyType_Type +#if PY_VERSION_HEX >= 0x030B00A1 + static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int k, int l, int s, int f, + PyObject *code, PyObject *c, PyObject* n, PyObject *v, + PyObject *fv, PyObject *cell, PyObject* fn, + PyObject *name, int fline, PyObject *lnos) { + PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL; + PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL; + const char *fn_cstr=NULL; + const char *name_cstr=NULL; + PyCodeObject* co=NULL; + PyObject *type, *value, *traceback; + PyErr_Fetch(&type, &value, &traceback); + if (!(kwds=PyDict_New())) goto end; + if (!(argcount=PyLong_FromLong(a))) goto end; + if (PyDict_SetItemString(kwds, "co_argcount", argcount) != 0) goto end; + if (!(posonlyargcount=PyLong_FromLong(0))) goto end; + if (PyDict_SetItemString(kwds, "co_posonlyargcount", posonlyargcount) != 0) goto end; + if (!(kwonlyargcount=PyLong_FromLong(k))) goto end; + if (PyDict_SetItemString(kwds, "co_kwonlyargcount", kwonlyargcount) != 0) goto end; + if (!(nlocals=PyLong_FromLong(l))) goto end; + if (PyDict_SetItemString(kwds, "co_nlocals", nlocals) != 0) goto end; + if (!(stacksize=PyLong_FromLong(s))) goto end; + if (PyDict_SetItemString(kwds, "co_stacksize", stacksize) != 0) goto end; + if (!(flags=PyLong_FromLong(f))) goto end; + if (PyDict_SetItemString(kwds, "co_flags", flags) != 0) goto end; + if (PyDict_SetItemString(kwds, "co_code", code) != 0) goto end; + if (PyDict_SetItemString(kwds, "co_consts", c) != 0) goto end; + if (PyDict_SetItemString(kwds, "co_names", n) != 0) goto end; + if (PyDict_SetItemString(kwds, "co_varnames", v) != 0) goto end; + if (PyDict_SetItemString(kwds, "co_freevars", fv) != 0) goto end; + if (PyDict_SetItemString(kwds, "co_cellvars", cell) != 0) goto end; + if (PyDict_SetItemString(kwds, "co_linetable", lnos) != 0) goto end; + if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL))) goto end; + if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL))) goto end; + if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline))) goto end; + if (!(replace = PyObject_GetAttrString((PyObject*)co, "replace"))) goto cleanup_code_too; + if (!(empty = PyTuple_New(0))) goto cleanup_code_too; // unfortunately __pyx_empty_tuple isn't available here + if (!(call_result = PyObject_Call(replace, empty, kwds))) goto cleanup_code_too; + Py_XDECREF((PyObject*)co); + co = (PyCodeObject*)call_result; + call_result = NULL; + if (0) { + cleanup_code_too: + Py_XDECREF((PyObject*)co); + co = NULL; + } + end: + Py_XDECREF(kwds); + Py_XDECREF(argcount); + Py_XDECREF(posonlyargcount); + Py_XDECREF(kwonlyargcount); + Py_XDECREF(nlocals); + Py_XDECREF(stacksize); + Py_XDECREF(replace); + Py_XDECREF(call_result); + Py_XDECREF(empty); + if (type) { + PyErr_Restore(type, value, traceback); + } + return co; + } #else #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #endif #define __Pyx_DefaultClassType PyType_Type #endif +#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY + #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o) +#else + #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o) +#endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif @@ -455,8 +585,12 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 - #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ - 0 : _PyUnicode_Ready((PyObject *)(op))) + #if PY_VERSION_HEX >= 0x030C0000 + #define __Pyx_PyUnicode_READY(op) (0) + #else + #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ + 0 : _PyUnicode_Ready((PyObject *)(op))) + #endif #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) @@ -464,10 +598,14 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) - #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE) - #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) + #if PY_VERSION_HEX >= 0x030C0000 + #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u)) #else - #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u)) + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000 + #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length)) + #else + #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) + #endif #endif #else #define CYTHON_PEP393_ENABLED 0 @@ -571,10 +709,10 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong - #define __Pyx_PyInt_AsHash_t PyInt_AsLong + #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t - #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t + #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func)) @@ -599,8 +737,10 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { } __Pyx_PyAsyncMethodsStruct; #endif -#if defined(WIN32) || defined(MS_WINDOWS) - #define _USE_MATH_DEFINES +#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS) + #if !defined(_USE_MATH_DEFINES) + #define _USE_MATH_DEFINES + #endif #endif #include #ifdef NAN @@ -734,6 +874,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); +static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else @@ -1043,13 +1184,21 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, #ifndef Py_MEMBER_SIZE #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member) #endif +#if CYTHON_FAST_PYCALL static size_t __pyx_pyframe_localsplus_offset = 0; #include "frameobject.h" +#if PY_VERSION_HEX >= 0x030b00a6 + #ifndef Py_BUILD_CORE + #define Py_BUILD_CORE 1 + #endif + #include "internal/pycore_frame.h" +#endif #define __Pxy_PyFrame_Initialize_Offsets()\ ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\ (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus))) #define __Pyx_PyFrame_GetLocalsplus(frame)\ (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset)) +#endif // CYTHON_FAST_PYCALL #endif /* PyObjectCallMethO.proto */ @@ -1118,18 +1267,18 @@ static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UIN /* GetModuleGlobalName.proto */ #if CYTHON_USE_DICT_VERSIONS -#define __Pyx_GetModuleGlobalName(var, name) {\ +#define __Pyx_GetModuleGlobalName(var, name) do {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\ __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ -} -#define __Pyx_GetModuleGlobalNameUncached(var, name) {\ +} while(0) +#define __Pyx_GetModuleGlobalNameUncached(var, name) do {\ PY_UINT64_T __pyx_dict_version;\ PyObject *__pyx_dict_cached_value;\ (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ -} +} while(0) static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value); #else #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name) @@ -1148,6 +1297,23 @@ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); +/* AssertionsEnabled.proto */ +#define __Pyx_init_assertions_enabled() +#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) + #define __pyx_assertions_enabled() (1) +#elif PY_VERSION_HEX < 0x03080000 || CYTHON_COMPILING_IN_PYPY || defined(Py_LIMITED_API) + #define __pyx_assertions_enabled() (!Py_OptimizeFlag) +#elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030900A6 + static int __pyx_assertions_enabled_flag; + #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag) + #undef __Pyx_init_assertions_enabled + static void __Pyx_init_assertions_enabled(void) { + __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level; + } +#else + #define __pyx_assertions_enabled() (!Py_OptimizeFlag) +#endif + /* WriteUnraisableException.proto */ static void __Pyx_WriteUnraisable(const char *name, int clineno, int lineno, const char *filename, @@ -1198,14 +1364,22 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, P static int __Pyx_setup_reduce(PyObject* type_obj); /* TypeImport.proto */ -#ifndef __PYX_HAVE_RT_ImportType_proto -#define __PYX_HAVE_RT_ImportType_proto -enum __Pyx_ImportType_CheckSize { - __Pyx_ImportType_CheckSize_Error = 0, - __Pyx_ImportType_CheckSize_Warn = 1, - __Pyx_ImportType_CheckSize_Ignore = 2 +#ifndef __PYX_HAVE_RT_ImportType_proto_0_29_37 +#define __PYX_HAVE_RT_ImportType_proto_0_29_37 +#if __STDC_VERSION__ >= 201112L +#include +#endif +#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L +#define __PYX_GET_STRUCT_ALIGNMENT_0_29_37(s) alignof(s) +#else +#define __PYX_GET_STRUCT_ALIGNMENT_0_29_37(s) sizeof(void*) +#endif +enum __Pyx_ImportType_CheckSize_0_29_37 { + __Pyx_ImportType_CheckSize_Error_0_29_37 = 0, + __Pyx_ImportType_CheckSize_Warn_0_29_37 = 1, + __Pyx_ImportType_CheckSize_Ignore_0_29_37 = 2 }; -static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size); +static PyTypeObject *__Pyx_ImportType_0_29_37(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_0_29_37 check_size); #endif /* Import.proto */ @@ -3428,7 +3602,7 @@ static int __pyx_pf_5pycbf_3img_3Img_20__getbuffer__(struct __pyx_obj_5pycbf_3im * # Internally between flex/libimg: */ #ifndef CYTHON_WITHOUT_ASSERTIONS - if (unlikely(!Py_OptimizeFlag)) { + if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((!(__pyx_v_self->_img_handle->rowmajor != 0)) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Rowmajor_appears_only_used_with); __PYX_ERR(0, 234, __pyx_L1_error) @@ -3647,7 +3821,7 @@ static void __pyx_pf_5pycbf_3img_3Img_22__releasebuffer__(struct __pyx_obj_5pycb * assert self._active_views >= 0 # <<<<<<<<<<<<<< */ #ifndef CYTHON_WITHOUT_ASSERTIONS - if (unlikely(!Py_OptimizeFlag)) { + if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_self->_active_views >= 0) != 0))) { PyErr_SetNone(PyExc_AssertionError); __PYX_ERR(0, 261, __pyx_L1_error) @@ -4348,7 +4522,7 @@ static PyObject *__pyx_tp_new_5pycbf_3img_Img(PyTypeObject *t, CYTHON_UNUSED PyO static void __pyx_tp_dealloc_5pycbf_3img_Img(PyObject *o) { #if CYTHON_USE_TP_FINALIZE - if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) { + if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif @@ -4484,12 +4658,15 @@ static PyTypeObject __pyx_type_5pycbf_3img_Img = { #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif - #if PY_VERSION_HEX >= 0x030800b1 + #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif + #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 + 0, /*tp_pypy_flags*/ + #endif }; static PyMethodDef __pyx_methods[] = { @@ -4764,7 +4941,12 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { } static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { - if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); + /* AssertionsEnabled.init */ + __Pyx_init_assertions_enabled(); + +if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error) + + if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; @@ -4836,24 +5018,21 @@ static int __Pyx_modinit_type_import_code(void) { /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", + __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_0_29_37(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 - sizeof(PyTypeObject), + sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_37(PyTypeObject), #else - sizeof(PyHeapTypeObject), + sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_37(PyHeapTypeObject), #endif - __Pyx_ImportType_CheckSize_Warn); - if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error) + __Pyx_ImportType_CheckSize_Warn_0_29_37); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), __Pyx_ImportType_CheckSize_Warn); - if (!__pyx_ptype_7cpython_4bool_bool) __PYX_ERR(3, 8, __pyx_L1_error) + __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType_0_29_37(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_37(PyBoolObject),__Pyx_ImportType_CheckSize_Warn_0_29_37); if (!__pyx_ptype_7cpython_4bool_bool) __PYX_ERR(3, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), __Pyx_ImportType_CheckSize_Warn); - if (!__pyx_ptype_7cpython_7complex_complex) __PYX_ERR(4, 15, __pyx_L1_error) + __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType_0_29_37(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_37(PyComplexObject),__Pyx_ImportType_CheckSize_Warn_0_29_37); if (!__pyx_ptype_7cpython_7complex_complex) __PYX_ERR(4, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; @@ -5031,11 +5210,9 @@ if (!__Pyx_RefNanny) { #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ - #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS - #ifdef WITH_THREAD /* Python build with threading support? */ + #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS PyEval_InitThreads(); #endif - #endif /*--- Module creation code ---*/ #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_m = __pyx_pyinit_module; @@ -5054,7 +5231,7 @@ if (!__Pyx_RefNanny) { Py_INCREF(__pyx_b); __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_cython_runtime); - if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); + if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) @@ -5538,13 +5715,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject } PyErr_SetObject(type, value); if (tb) { -#if CYTHON_COMPILING_IN_PYPY - PyObject *tmp_type, *tmp_value, *tmp_tb; - PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); - Py_INCREF(tb); - PyErr_Restore(tmp_type, tmp_value, tb); - Py_XDECREF(tmp_tb); -#else +#if CYTHON_FAST_THREAD_STATE PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { @@ -5552,6 +5723,12 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject tstate->curexc_traceback = tb; Py_XDECREF(tmp_tb); } +#else + PyObject *tmp_type, *tmp_value, *tmp_tb; + PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); + Py_INCREF(tb); + PyErr_Restore(tmp_type, tmp_value, tb); + Py_XDECREF(tmp_tb); #endif } bad: @@ -5564,7 +5741,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; - ternaryfunc call = func->ob_type->tp_call; + ternaryfunc call = Py_TYPE(func)->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) @@ -5910,7 +6087,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif -#ifdef __Pyx_CyFunction_USED +#if defined(__Pyx_CyFunction_USED) && defined(NDEBUG) if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func))) #else if (likely(PyCFunction_Check(func))) @@ -6141,9 +6318,7 @@ static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno, PyGILState_STATE state; if (nogil) state = PyGILState_Ensure(); -#ifdef _MSC_VER - else state = (PyGILState_STATE)-1; -#endif + else state = (PyGILState_STATE)0; #endif __Pyx_PyThreadState_assign __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); @@ -6345,17 +6520,35 @@ static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) { static int __Pyx_setup_reduce(PyObject* type_obj) { int ret = 0; PyObject *object_reduce = NULL; + PyObject *object_getstate = NULL; PyObject *object_reduce_ex = NULL; PyObject *reduce = NULL; PyObject *reduce_ex = NULL; PyObject *reduce_cython = NULL; PyObject *setstate = NULL; PyObject *setstate_cython = NULL; + PyObject *getstate = NULL; #if CYTHON_USE_PYTYPE_LOOKUP - if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD; + getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate); #else - if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD; + getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate); + if (!getstate && PyErr_Occurred()) { + goto __PYX_BAD; + } +#endif + if (getstate) { +#if CYTHON_USE_PYTYPE_LOOKUP + object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate); +#else + object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_getstate); + if (!object_getstate && PyErr_Occurred()) { + goto __PYX_BAD; + } #endif + if (object_getstate != getstate) { + goto __PYX_GOOD; + } + } #if CYTHON_USE_PYTYPE_LOOKUP object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD; #else @@ -6400,6 +6593,8 @@ static int __Pyx_setup_reduce(PyObject* type_obj) { #if !CYTHON_USE_PYTYPE_LOOKUP Py_XDECREF(object_reduce); Py_XDECREF(object_reduce_ex); + Py_XDECREF(object_getstate); + Py_XDECREF(getstate); #endif Py_XDECREF(reduce); Py_XDECREF(reduce_ex); @@ -6410,16 +6605,18 @@ static int __Pyx_setup_reduce(PyObject* type_obj) { } /* TypeImport */ -#ifndef __PYX_HAVE_RT_ImportType -#define __PYX_HAVE_RT_ImportType -static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name, - size_t size, enum __Pyx_ImportType_CheckSize check_size) +#ifndef __PYX_HAVE_RT_ImportType_0_29_37 +#define __PYX_HAVE_RT_ImportType_0_29_37 +static PyTypeObject *__Pyx_ImportType_0_29_37(PyObject *module, const char *module_name, const char *class_name, + size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_0_29_37 check_size) { PyObject *result = 0; char warning[200]; Py_ssize_t basicsize; + Py_ssize_t itemsize; #ifdef Py_LIMITED_API PyObject *py_basicsize; + PyObject *py_itemsize; #endif result = PyObject_GetAttrString(module, class_name); if (!result) @@ -6432,6 +6629,7 @@ static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, } #ifndef Py_LIMITED_API basicsize = ((PyTypeObject *)result)->tp_basicsize; + itemsize = ((PyTypeObject *)result)->tp_itemsize; #else py_basicsize = PyObject_GetAttrString(result, "__basicsize__"); if (!py_basicsize) @@ -6441,22 +6639,37 @@ static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, py_basicsize = 0; if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad; + py_itemsize = PyObject_GetAttrString(result, "__itemsize__"); + if (!py_itemsize) + goto bad; + itemsize = PyLong_AsSsize_t(py_itemsize); + Py_DECREF(py_itemsize); + py_itemsize = 0; + if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred()) + goto bad; #endif - if ((size_t)basicsize < size) { + if (itemsize) { + if (size % alignment) { + alignment = size % alignment; + } + if (itemsize < (Py_ssize_t)alignment) + itemsize = (Py_ssize_t)alignment; + } + if ((size_t)(basicsize + itemsize) < size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } - if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) { + if (check_size == __Pyx_ImportType_CheckSize_Error_0_29_37 && (size_t)basicsize != size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } - else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) { + else if (check_size == __Pyx_ImportType_CheckSize_Warn_0_29_37 && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", @@ -6786,7 +6999,7 @@ static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) { /* CLineInTraceback */ #ifndef CYTHON_CLINE_IN_TRACEBACK -static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) { +static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) { PyObject *use_cline; PyObject *ptype, *pvalue, *ptraceback; #if CYTHON_COMPILING_IN_CPYTHON @@ -6816,7 +7029,7 @@ static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int } if (!use_cline) { c_line = 0; - PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); + (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); } else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { c_line = 0; @@ -6910,33 +7123,40 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { #include "compile.h" #include "frameobject.h" #include "traceback.h" +#if PY_VERSION_HEX >= 0x030b00a6 + #ifndef Py_BUILD_CORE + #define Py_BUILD_CORE 1 + #endif + #include "internal/pycore_frame.h" +#endif static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { - PyCodeObject *py_code = 0; - PyObject *py_srcfile = 0; - PyObject *py_funcname = 0; + PyCodeObject *py_code = NULL; + PyObject *py_funcname = NULL; #if PY_MAJOR_VERSION < 3 + PyObject *py_srcfile = NULL; py_srcfile = PyString_FromString(filename); - #else - py_srcfile = PyUnicode_FromString(filename); - #endif if (!py_srcfile) goto bad; + #endif if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); + if (!py_funcname) goto bad; #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); + if (!py_funcname) goto bad; + funcname = PyUnicode_AsUTF8(py_funcname); + if (!funcname) goto bad; #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); - #else - py_funcname = PyUnicode_FromString(funcname); + if (!py_funcname) goto bad; #endif } - if (!py_funcname) goto bad; + #if PY_MAJOR_VERSION < 3 py_code = __Pyx_PyCode_New( 0, 0, @@ -6955,11 +7175,16 @@ static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); - Py_DECREF(py_funcname); + #else + py_code = PyCode_NewEmpty(filename, funcname, py_line); + #endif + Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline return py_code; bad: - Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); + #if PY_MAJOR_VERSION < 3 + Py_XDECREF(py_srcfile); + #endif return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, @@ -6967,14 +7192,24 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line, PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; PyThreadState *tstate = __Pyx_PyThreadState_Current; + PyObject *ptype, *pvalue, *ptraceback; if (c_line) { c_line = __Pyx_CLineForTraceback(tstate, c_line); } py_code = __pyx_find_code_object(c_line ? -c_line : py_line); if (!py_code) { + __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); - if (!py_code) goto bad; + if (!py_code) { + /* If the code object creation fails, then we should clear the + fetched exception references and propagate the new exception */ + Py_XDECREF(ptype); + Py_XDECREF(pvalue); + Py_XDECREF(ptraceback); + goto bad; + } + __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); } py_frame = PyFrame_New( @@ -7073,7 +7308,7 @@ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { break; } #endif -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } @@ -7345,7 +7580,7 @@ static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) { break; } #endif -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } @@ -7541,7 +7776,7 @@ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { break; } #endif -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } @@ -7679,11 +7914,33 @@ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { - char ctversion[4], rtversion[4]; - PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); - PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); - if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { + char ctversion[5]; + int same=1, i, found_dot; + const char* rt_from_call = Py_GetVersion(); + PyOS_snprintf(ctversion, 5, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); + found_dot = 0; + for (i = 0; i < 4; i++) { + if (!ctversion[i]) { + same = (rt_from_call[i] < '0' || rt_from_call[i] > '9'); + break; + } + if (rt_from_call[i] != ctversion[i]) { + same = 0; + break; + } + } + if (!same) { + char rtversion[5] = {'\0'}; char message[200]; + for (i=0; i<4; ++i) { + if (rt_from_call[i] == '.') { + if (found_dot) break; + found_dot = 1; + } else if (rt_from_call[i] < '0' || rt_from_call[i] > '9') { + break; + } + rtversion[i] = rt_from_call[i]; + } PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", @@ -7941,6 +8198,23 @@ static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_DECREF(x); return ival; } +static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) { + if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) { + return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o); +#if PY_MAJOR_VERSION < 3 + } else if (likely(PyInt_CheckExact(o))) { + return PyInt_AS_LONG(o); +#endif + } else { + Py_ssize_t ival; + PyObject *x; + x = PyNumber_Index(o); + if (!x) return -1; + ival = PyInt_AsLong(x); + Py_DECREF(x); + return ival; + } +} static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); } From beb360dbb107d7cbc5b79829e4abae7ea88f3743 Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 10:27:09 +0100 Subject: [PATCH 04/11] Remvoe extra_data override --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 56c7da4..270fda3 100644 --- a/setup.py +++ b/setup.py @@ -120,7 +120,6 @@ def generate_combined_checksum(root): extra_data = [ x for x in pyproject.read_text().splitlines() if re_toml_hashlines.search(x) ] - extra_data = [] return hash_files(*gen_files, extra_data=extra_data) From 5a39a74a0a8ad41a3392e79dd9e966d0b76902df Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 10:33:15 +0100 Subject: [PATCH 05/11] Handle skipped patches on macos --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 270fda3..bca5071 100644 --- a/setup.py +++ b/setup.py @@ -151,7 +151,10 @@ def build(setup_kwargs: Dict[str, Any]) -> None: except subprocess.CalledProcessError as e: print(e.output) # We want to ignore this if it was a case of already applied - if "Skipping patch" not in e.output: + if ( + "Skipping patch" not in e.output + and "Ignoring previously applied" not in e.output + ): raise setup_kwargs.update({"ext_modules": extensions}) From 97a8d165e2b3b70f4c94bc67a569ed83fd60cfc7 Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 10:35:41 +0100 Subject: [PATCH 06/11] Add news --- newsfragments/XXX.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/XXX.misc diff --git a/newsfragments/XXX.misc b/newsfragments/XXX.misc new file mode 100644 index 0000000..716217c --- /dev/null +++ b/newsfragments/XXX.misc @@ -0,0 +1 @@ +Switch to setuptools extension building. From 6c6dc6960e85a190d9cfc08916ee4afd71b1ef53 Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 10:47:44 +0100 Subject: [PATCH 07/11] Clean pyproject, add MANIFEST.in --- MANIFEST.in | 8 ++++++++ pyproject.toml | 49 ------------------------------------------------- 2 files changed, 8 insertions(+), 49 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..a350e4a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,8 @@ +include cbflib/src/*.c +include cbflib/include/*.h +include pycbf_wrap.c +include src/**/*.pyx +include src/**/*.pxd +include src/**/*.pyi + + diff --git a/pyproject.toml b/pyproject.toml index cfcb68f..c7b5d43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,14 +22,6 @@ classifiers = [ "Programming Language :: Python", "Topic :: Scientific/Engineering", ] -# include = [ -# { path = "pycbf_wrap.c", format = "sdist" }, -# { path = "LICENCE.txt", format = "sdist" }, -# { path = "cbflib/src/*.c", format = "sdist" }, -# { path = "cbflib/include/*.h", format = "sdist" }, -# { path = "tests/*.py", format = "sdist" }, -# { path = "src/pycbf/py.typed" }, -# ] requires-python = ">=3.6" dependencies = ["numpy>=1.17"] @@ -46,47 +38,6 @@ dev = [ "bump2version~=1.0.1", ] -# [[tool.setuptools.ext-modules]] -# name = "pycbf._pycbf" -# sources = [ -# "pycbf_wrap.c", -# "cbflib/src/cbf.c", -# "cbflib/src/cbf_airy_disk.c", -# "cbflib/src/cbf_alloc.c", -# "cbflib/src/cbf_ascii.c", -# "cbflib/src/cbf_binary.c", -# "cbflib/src/cbf_byte_offset.c", -# "cbflib/src/cbf_canonical.c", -# "cbflib/src/cbf_codes.c", -# "cbflib/src/cbf_compress.c", -# "cbflib/src/cbf_context.c", -# "cbflib/src/cbf_copy.c", -# "cbflib/src/cbf_file.c", -# "cbflib/src/cbf_getopt.c", -# "cbflib/src/cbf_lex.c", -# "cbflib/src/cbf_minicbf_header.c", -# "cbflib/src/cbf_nibble_offset.c", -# "cbflib/src/cbf_packed.c", -# "cbflib/src/cbf_predictor.c", -# "cbflib/src/cbf_read_binary.c", -# "cbflib/src/cbf_read_mime.c", -# "cbflib/src/cbf_simple.c", -# "cbflib/src/cbf_string.c", -# "cbflib/src/cbf_stx.c", -# "cbflib/src/cbf_tree.c", -# "cbflib/src/cbf_ulp.c", -# "cbflib/src/cbf_uncompressed.c", -# "cbflib/src/cbf_write.c", -# "cbflib/src/cbf_write_binary.c", -# "cbflib/src/cbf_ws.c", -# "cbflib/src/cbff.c", -# "cbflib/src/fgetln.c", -# "cbflib/src/img.c", -# "cbflib/src/md5c.c", -# ] -# include-dirs = ["cbflib/include"] -# define-macros = [["CBF_NO_REGEX"], ["SWIG_PYTHON_STRICT_BYTE_CHAR"]] - [tool.ruff] exclude = ["src/pycbf/_wrapper.py"] From 72bffca7b68a55733b055b01f490b1a1944a07bb Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 10:47:53 +0100 Subject: [PATCH 08/11] Commit requirements files --- requirements.txt | 1 + requirements_dev.txt | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 requirements.txt create mode 100644 requirements_dev.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..98f7200 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +numpy==2.1.1 diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..aaa37b5 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,5 @@ +bump2version==1.0.1 +Cython==0.29.37 +dials_data==2.4.85 +pytest==8.3.3 +toml==0.10.2 \ No newline at end of file From 062a47abdb7b035980674c4800b0de1c5dda36ea Mon Sep 17 00:00:00 2001 From: DiamondLightSource-build-server Date: Fri, 13 Sep 2024 09:48:08 +0000 Subject: [PATCH 09/11] Rename newsfragments/XXX.misc to newsfragments/23.misc --- newsfragments/{XXX.misc => 23.misc} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename newsfragments/{XXX.misc => 23.misc} (100%) diff --git a/newsfragments/XXX.misc b/newsfragments/23.misc similarity index 100% rename from newsfragments/XXX.misc rename to newsfragments/23.misc From a4227606a299a37b8331d50463295abf0d99f979 Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 10:53:40 +0100 Subject: [PATCH 10/11] Use python-build --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 9be1866..7a042b2 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -21,7 +21,7 @@ jobs: - name: Apply patches run: cat $(ls patches/*.patch | sort) | patch -p1 -N - name: Build sdist - run: pipx run poetry build -f sdist + run: pip3 install build && python3 -m build -s . - uses: actions/upload-artifact@v4 with: From 979cefa02476ff0e38f9fcd97acd4e2baad65f9b Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 11:00:19 +0100 Subject: [PATCH 11/11] Update cibuildwheel --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 7a042b2..8949857 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -49,7 +49,7 @@ jobs: run: tar --strip-components=1 -xf dist/*.tar.gz - name: Build wheel - uses: joerick/cibuildwheel@v1.11.0 + uses: joerick/cibuildwheel@v2.20.0 env: CIBW_SKIP: cp2* cp35* pp* CIBW_TEST_COMMAND: pytest --regression {package}/tests