Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makesourcedb accepts models that cause DP3 to crash #315

Open
aroffringa opened this issue Nov 27, 2020 · 0 comments
Open

makesourcedb accepts models that cause DP3 to crash #315

aroffringa opened this issue Nov 27, 2020 · 0 comments

Comments

@aroffringa
Copy link
Contributor

The following model is in the wrong format:

skymodel fileformat 1.1
source {
  name "s0c27"
  component {
    type point
    position 11h48m33.374s 87d42m04.216s
    sed {
      frequency 120.408630371094 MHz
      fluxdensity Jy -9.83093744646091 0 0 0
      polynomial { 0 }
    }
  }
}

Running it through makesourcedb works fine, but using the resulting sourcedb inside DP3 causes DP3 to crash with:

Error: "Something went wrong while reading the source model. The error was: Regex: invalid regular expression component ( given (Unmatched ()"

Solution: makesourcedb should immediately report an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant