Miscellaneous functions
calcephpy.getmaxsupportedorder
- calcephpy.getmaxsupportedorder(segid)
- Parameters:
segid (int) -- type of the segment.
- Returns:
version of the library
- Return type:
str
This function returns the maximal order of the derivatives computed by the functions calcephpy.CalcephBin.compute_order()
, calcephpy.CalcephBin.orient_order()
, .... for the segment type segid.
If the segment type is unknown by the library, the function returns -1.
The accepted values of segid* are the predefined constants Constants.SEGTYPE_... (Constants).
from calcephpy import *
maxorder = getmaxsupportedorder(Constants.SEGTYPE_SPK_2)
print('maximal order is ', maxorder)
calcephpy.getversion_str
- calcephpy.getversion_str()
- Returns:
version of the library
- Return type:
str
This function returns the version of the CALCEPH Library, as a string.
from calcephpy import *
print('version=', getversion_str())