Skip to content

Commit

Permalink
Readded create subcommand to the residuals
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSwainston committed Nov 15, 2023
1 parent d284bf2 commit 1df814b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions psrdb/tables/residual.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,19 @@ def configure_parsers(cls, parser):
)
parser_list.add_argument(
"--template", metavar="TEMPL", type=int, help="list residual matching the template id [int]"
)

# create the parser for the "create" command
parser_create = subs.add_parser("create", help="Create a new Residual")
parser_create.add_argument(
"pulsar", metavar="PULSAR", type=str, help="Name of the pulsar [str]"
)
parser_create.add_argument(
"ephemeris", metavar="EPH", type=str, help="Path to the timing ephemeris used to create this residual file [str]"
)
parser_create.add_argument(
"project_short", metavar="PROJ", type=str, help="Short code of the project [str]"
)
parser_create.add_argument(
"residual_path", metavar="TOA", type=str, help="Path to the residual file [str]"
)

0 comments on commit 1df814b

Please sign in to comment.