Commit b333b93c authored by Karl Wette's avatar Karl Wette

SuperskyMetrics: remove XLALScaleSuperskyMetricFiducialFreq() from public API

- XLALScaleSuperskyMetricsFiducialFreq() should be used to rescale all metrics
Original: 7cd64a6d65123960208c833810ba77b560f70fa8
parent 993c061c
......@@ -856,10 +856,13 @@ int XLALSuperskyMetricsDimensions(
}
int XLALScaleSuperskyMetricFiducialFreq(
gsl_matrix *rssky_metric,
SuperskyTransformData *rssky_transf,
const double new_fiducial_freq
///
/// Scale a given supersky metric and its coordinate transform data to a new fiducial frequency.
///
static int SM_ScaleSuperskyMetricFiducialFreq(
gsl_matrix *rssky_metric, ///< [in] Reduced supersky metric
SuperskyTransformData *rssky_transf, ///< [in] Reduced supersky metric coordinate transform data
const double new_fiducial_freq ///< [in] New fiducial frequency
)
{
......@@ -898,9 +901,9 @@ int XLALScaleSuperskyMetricsFiducialFreq(
// Rescale all metrics to 'new_fiducial_freq'
for ( size_t n = 0; n < metrics->num_segments; ++n ) {
XLAL_CHECK( XLALScaleSuperskyMetricFiducialFreq( metrics->coh_rssky_metric[n], metrics->coh_rssky_transf[n], new_fiducial_freq ) == XLAL_SUCCESS, XLAL_EFUNC );
XLAL_CHECK( SM_ScaleSuperskyMetricFiducialFreq( metrics->coh_rssky_metric[n], metrics->coh_rssky_transf[n], new_fiducial_freq ) == XLAL_SUCCESS, XLAL_EFUNC );
}
XLAL_CHECK( XLALScaleSuperskyMetricFiducialFreq( metrics->semi_rssky_metric, metrics->semi_rssky_transf, new_fiducial_freq ) == XLAL_SUCCESS, XLAL_EFUNC );
XLAL_CHECK( SM_ScaleSuperskyMetricFiducialFreq( metrics->semi_rssky_metric, metrics->semi_rssky_transf, new_fiducial_freq ) == XLAL_SUCCESS, XLAL_EFUNC );
return XLAL_SUCCESS;
......
......@@ -124,23 +124,6 @@ int XLALSuperskyMetricsDimensions(
size_t *spindowns ///< [out] Number of spindown dimensions
);
#ifdef SWIG // SWIG interface directives
SWIGLAL( COPYINOUT_ARRAYS( gsl_matrix, rssky_metric, rssky_transf ) );
#endif // SWIG
///
/// Scale a given supersky metric and its coordinate transform data to a new fiducial frequency.
///
int XLALScaleSuperskyMetricFiducialFreq(
gsl_matrix *rssky_metric, ///< [in] Reduced supersky metric
SuperskyTransformData *rssky_transf, ///< [in] Reduced supersky metric coordinate transform data
const double new_fiducial_freq ///< [in] New fiducial frequency
);
#ifdef SWIG // SWIG interface directives
SWIGLAL_CLEAR( COPYINOUT_ARRAYS( gsl_matrix, rssky_metric, rssky_transf ) );
#endif // SWIG
///
/// Scale all supersky metrics and their coordinate transform data to a new fiducial frequency.
///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment