Skip to content

Commit

Permalink
Resolve field count in SkyModel for OSKAR model
Browse files Browse the repository at this point in the history
  • Loading branch information
lmachadopolettivalle committed Nov 23, 2023
1 parent 992296f commit 9483e17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions karabo/simulation/sky_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,8 @@ def get_OSKAR_sky(
:return: oskar sky model
"""
if sky.shape[1] > SkyModel.SOURCES_COLS:
return oskar.Sky.from_array(sky[:, : SkyModel.SOURCES_COLS], precision)
if sky.shape[1] > 12:
return oskar.Sky.from_array(sky[:, :12], precision)
else:
return oskar.Sky.from_array(sky, precision)

Expand Down

0 comments on commit 9483e17

Please sign in to comment.