Skip to content

Commit f7aa2a6

Browse files
committed
doc: add comment
1 parent edad337 commit f7aa2a6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

jax_galsim/wcs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
from jax_galsim.transform import _Transform
1919

2020

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
2124
def _cast_to_static_numeric_scalar(x, msg=None):
2225
if isinstance(x, (int, float, np.integer, np.floating)):
2326
return x

0 commit comments

Comments
 (0)