Skip to content
Snippets Groups Projects
Commit 0701dc61 authored by Herman Groot's avatar Herman Groot
Browse files

AST-1436: Hide conversion from interface and release

parent d3841a83
No related branches found
Tags v0.5.4
1 merge request!328AST-1436: Hide conversion from interface and release
Pipeline #73543 skipped
......@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.15)
#------------------------------------------------------------------------------
# Set version name and project number
set(EVERYBEAM_VERSION 0.5.3) # Keep in sync with `pyproject.toml` file
set(EVERYBEAM_VERSION 0.5.4) # Keep in sync with `pyproject.toml` file
if(EVERYBEAM_VERSION MATCHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+)")
set(EVERYBEAM_VERSION_MAJOR "${CMAKE_MATCH_1}")
set(EVERYBEAM_VERSION_MINOR "${CMAKE_MATCH_2}")
......
......@@ -112,6 +112,25 @@ aocommon::MC2x2 Station::Response(real_t time, real_t freq,
return antenna_->Response(*element_response_, time, freq, direction, options);
}
aocommon::MC2x2 Station::Response(CorrectionMode mode, real_t time, real_t freq,
const vector3r_t& direction, real_t freq0,
const vector3r_t& station0,
const vector3r_t& tile0, const bool is_local,
const bool rotate) const {
switch (mode) {
case CorrectionMode::kNone:
return aocommon::MC2x2::Unity();
case CorrectionMode::kFull:
return Response(time, freq, direction, freq0, station0, tile0, rotate);
case CorrectionMode::kArrayFactor:
return aocommon::MC2x2{
ArrayFactor(time, freq, direction, freq0, station0, tile0)};
case CorrectionMode::kElement:
return ComputeElementResponse(time, freq, direction, is_local, rotate);
}
throw std::runtime_error("Invalid mode");
}
aocommon::MC2x2Diag Station::ArrayFactor(real_t time, real_t freq,
const vector3r_t& direction,
real_t freq0,
......
......@@ -100,21 +100,7 @@ class [[gnu::visibility("default")]] Station {
const vector3r_t& direction, real_t freq0,
const vector3r_t& station0, const vector3r_t& tile0,
const bool is_local = false,
const bool rotate = true) const {
switch (mode) {
case CorrectionMode::kNone:
return aocommon::MC2x2::Unity();
case CorrectionMode::kFull:
return Response(time, freq, direction, freq0, station0, tile0, rotate);
case CorrectionMode::kArrayFactor:
// Only explicit conversions are allowed for AVX-enabled MC2x2
return aocommon::MC2x2{
ArrayFactor(time, freq, direction, freq0, station0, tile0)};
case CorrectionMode::kElement:
return ComputeElementResponse(time, freq, direction, is_local, rotate);
}
throw std::runtime_error("Invalid mode");
}
const bool rotate = true) const;
/*!
* \brief Compute the array factor of the station for a plane wave of
......
......@@ -15,7 +15,7 @@ build-backend = "scikit_build_core.build"
[project]
name = "everybeam"
version = "0.5.3" # Keep in sync with top-level `CMakeLists.txt` file
version = "0.5.4" # Keep in sync with top-level `CMakeLists.txt` file
description = "EveryBeam"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.7"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment