Issue #3101 safe cast numpy shape values to Number
Change-Id: Ie81917cf19819e159195a50d6ad786d20c32136c Former-commit-id: 8df8db0d9b9cc0848bf73a09bcedb8cb7947a4bb
This commit is contained in:
parent
58eaf444bd
commit
76ad31501b
1 changed files with 3 additions and 2 deletions
|
@ -51,6 +51,7 @@ import com.raytheon.uf.common.python.PythonInterpreter;
|
||||||
* Nov 21, 2009 3576 rjpeter Refactored to populate DerivParamDesc.
|
* Nov 21, 2009 3576 rjpeter Refactored to populate DerivParamDesc.
|
||||||
* Oct 29, 2013 2476 njensen Renamed numeric methods to numpy
|
* Oct 29, 2013 2476 njensen Renamed numeric methods to numpy
|
||||||
* Apr 11, 2014 2947 bsteffen Allow returning NaN
|
* Apr 11, 2014 2947 bsteffen Allow returning NaN
|
||||||
|
* May 01, 2014 3101 njensen Safe cast result shape values to Number
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -370,8 +371,8 @@ public class MasterDerivScript extends PythonInterpreter {
|
||||||
|
|
||||||
long[] dims = new long[nDims];
|
long[] dims = new long[nDims];
|
||||||
for (int i = 0; i < nDims; i++) {
|
for (int i = 0; i < nDims; i++) {
|
||||||
dims[i] = ((Integer) jep.getValue("numpy.shape(" + RESULT + ")["
|
dims[i] = ((Number) jep.getValue("numpy.shape(" + RESULT + ")[" + i
|
||||||
+ i + "]")).longValue();
|
+ "]")).longValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dims.length == 2) {
|
if (dims.length == 2) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue