Datashape has 3 things using the word "real" in them:
ds.predicates.isreal: checks if the datashape is floating point
ds.real: alias for ctype("float64")
ds.typesets.real: contains all numeric, non-complex types
This is inconsistent, and should be corrected. I'd prefer to make ds.predicates.isreal check for containment in ds.typesets.real (expanding isreal to return True for integers). Removing the alias may or may not be beneficial.
Datashape has 3 things using the word "real" in them:
ds.predicates.isreal
: checks if the datashape is floating pointds.real
: alias forctype("float64")
ds.typesets.real
: contains all numeric, non-complex typesThis is inconsistent, and should be corrected. I'd prefer to make
ds.predicates.isreal
check for containment inds.typesets.real
(expandingisreal
to return True for integers). Removing the alias may or may not be beneficial.