Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
82b57805
Commit
82b57805
authored
Jul 16, 2015
by
Tiago de Freitas Pereira
Browse files
Fixed issue
bob.io.base#1
. In the end the problem was in the bindings of this package
parent
7c075892
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/main.cpp
View file @
82b57805
...
...
@@ -16,13 +16,14 @@
#include
"error.h"
static
int
double1d_converter
(
PyObject
*
o
,
PyBlitzArrayObject
**
a
)
{
if
(
PyBlitzArray_Converter
(
o
,
a
)
!=
0
)
return
1
;
if
(
PyBlitzArray_Converter
(
o
,
a
)
==
0
)
return
0
;
// in this case, *a is set to a new reference
if
((
*
a
)
->
type_num
!=
NPY_FLOAT64
||
(
*
a
)
->
ndim
!=
1
)
{
PyErr_Format
(
PyExc_TypeError
,
"cannot convert blitz::Array<%s,%"
PY_FORMAT_SIZE_T
"d> to a blitz::Array<double,1>"
,
PyBlitzArray_TypenumAsString
((
*
a
)
->
type_num
),
(
*
a
)
->
ndim
);
return
1
;
return
0
;
}
return
0
;
return
1
;
}
PyDoc_STRVAR
(
s_epc_str
,
"epc"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment