From 16a59471100d1f8d4175651ad8a841fee3c0b175 Mon Sep 17 00:00:00 2001 From: Ken MacDonald Date: Tue, 26 Dec 2023 12:28:45 -0500 Subject: [PATCH] Removed endian handlers for C, since it should be handled in python. --- src/stcal/ramp_fitting/src/slope_fitter.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/stcal/ramp_fitting/src/slope_fitter.c b/src/stcal/ramp_fitting/src/slope_fitter.c index 1701a458c..a6d69f2aa 100644 --- a/src/stcal/ramp_fitting/src/slope_fitter.c +++ b/src/stcal/ramp_fitting/src/slope_fitter.c @@ -1775,6 +1775,16 @@ get_ramp_data_endianness( struct ramp_data * rd) { /* Set getter functions based on type, dimensions, and endianness */ + rd->get_data = get_float4; + rd->get_err = get_float4; + + rd->get_pixeldq = get_uint32_2; + + rd->get_gain = get_float2; + rd->get_rnoise = get_float2; + rd->get_zframe = get_float3; + +# if 0 rd->get_data = (PyArray_ISBYTESWAPPED(rd->data)) ? get_float4_swp : get_float4; rd->get_err = (PyArray_ISBYTESWAPPED(rd->err)) ? get_float4_swp : get_float4; @@ -1783,6 +1793,7 @@ get_ramp_data_endianness( rd->get_gain = (PyArray_ISBYTESWAPPED(rd->gain)) ? get_float2_swp : get_float2; rd->get_rnoise = (PyArray_ISBYTESWAPPED(rd->rnoise)) ? get_float2_swp : get_float2; rd->get_zframe = (PyArray_ISBYTESWAPPED(rd->zframe)) ? get_float3_swp : get_float3; +#endif } /*