We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edad337 commit f7aa2a6Copy full SHA for f7aa2a6
1 file changed
jax_galsim/wcs.py
@@ -18,6 +18,9 @@
18
from jax_galsim.transform import _Transform
19
20
21
+# this function casts input values to python numeric values
22
+# this kind of casting is only done for writing FITS headers
23
+# and should never be done anywhere else in the code base
24
def _cast_to_static_numeric_scalar(x, msg=None):
25
if isinstance(x, (int, float, np.integer, np.floating)):
26
return x
0 commit comments