source:
issm/trunk-jpl/src/m/qmu/qmupart2npart.py@
25011
Last change on this file since 25011 was 25011, checked in by , 5 years ago | |
---|---|
File size: 188 bytes |
Line | |
---|---|
1 | import numpy as np |
2 | |
3 | |
4 | def qmupart2npart(vector): |
5 | # Vector is full of -1 (no partition) and 0 to npart. We need to identify |
6 | # npart. |
7 | |
8 | npart = vector.max() + 1 |
9 | |
10 | return npart |
Note:
See TracBrowser
for help on using the repository browser.