Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Merge requests
!1296
Resolve
TMSS-2829
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
TMSS-2829
TMSS-2829
into
master
Overview
0
Commits
15
Pipelines
0
Changes
1
Merged
Jorrit Schaap
requested to merge
TMSS-2829
into
master
1 year ago
Overview
0
Commits
15
Pipelines
0
Changes
1
Expand
Closes
TMSS-2829
0
0
Merge request reports
Viewing commit
6893d735
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
6893d735
TMSS-2829
: handle astropy/numpy exception
· 6893d735
Jorrit Schaap
authored
1 year ago
SAS/TMSS/backend/src/tmss/tmssapp/conversions.py
+
1
−
1
Options
@@ -421,7 +421,7 @@ def coordinates_timestamp_and_station_to_target_rise_and_set(pointing: Pointing,
"
always_above_horizon
"
:
False
,
"
always_below_horizon
"
:
False
}
except
(
TypeError
,
ValueError
)
as
e
:
if
"
numpy.float64
"
in
str
(
e
)
or
"
could not broadcast input array
"
in
str
(
e
):
if
"
numpy.float64
"
in
str
(
e
)
or
"
could not broadcast input array
"
in
str
(
e
)
or
"
Cannot cast array data from dtype
"
in
str
(
e
):
# Note: when the target is always above or below horizon, astroplan excepts with the not very
# meaningful error: 'numpy.float64' object does not support item assignment
# Determine whether the target is always above or below horizon so that we can return some useful
Loading