Beispiel #1
0
 def __init__(self, *args, **kwargs):
     InputOnlyArgumentParser.__init__(self, *args, **kwargs)
     self.add_argument("-n",
                       "--dry-run",
                       dest="dryrun",
                       action="store_true",
                       default=False,
                       help="Don't perform any action?")
     self.add_argument(
         "--mode",
         choices=["move", "copy", "link", "skip"],
         default="move",
         help="Mode of delivering the files to their destination")
     self.add_argument("--create",
                       action="store_true",
                       help="Create new registry?")
     self.add_argument("--validity",
                       type=int,
                       required=True,
                       help="Calibration validity period (days)")
     self.add_argument(
         "--ignore-ingested",
         dest="ignoreIngested",
         action="store_true",
         help="Don't register files that have already been registered")
     self.add_argument("files", nargs="+", help="Names of file")
Beispiel #2
0
 def _makeArgumentParser(cls):
     parser = InputOnlyArgumentParser(name=cls._DefaultName)
     parser.add_id_argument(
         name="--id",
         datasetType="raw",
         help="data IDs, e.g. --id visit=12345 ccd=1,2^0,3")
     return parser
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     InputOnlyArgumentParser.__init__(self, *args, **kwargs)
     self.add_argument("-n",
                       "--dry-run",
                       dest="dryrun",
                       action="store_true",
                       default=False,
                       help="Don't perform any action?")
     self.add_argument(
         "--mode",
         choices=["move", "copy", "link", "skip"],
         default="move",
         help="Mode of delivering the files to their destination")
     self.add_argument("--create",
                       action="store_true",
                       help="Create new registry?")
     self.add_argument("--validity",
                       type=int,
                       required=True,
                       help="Calibration validity period (days)")
     self.add_argument(
         "--calibType",
         type=str,
         default=None,
         choices=[None, "bias", "dark", "flat", "fringe", "defect"],
         help="Type of the calibration data to be ingested;" +
         " if omitted, the type is determined from" +
         " the file header information")
     self.add_argument(
         "--ignore-ingested",
         dest="ignoreIngested",
         action="store_true",
         help="Don't register files that have already been registered")
     self.add_argument("files", nargs="+", help="Names of file")
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     InputOnlyArgumentParser.__init__(self, *args, **kwargs)
     self.add_argument("-n", "--dry-run", dest="dryrun", action="store_true",
                       default=False, help="Don't perform any action?")
     self.add_argument("--create", action="store_true", help="Create new registry?")
     self.add_argument("--ignore-ingested", dest="ignoreIngested", action="store_true",
                       help="Don't register files that have already been registered")
     self.add_argument("root", help="Root directory to scan for calibs.")
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     InputOnlyArgumentParser.__init__(self, *args, **kwargs)
     self.add_argument("-n", "--dry-run", dest="dryrun", action="store_true",
                       default=False, help="Don't perform any action?")
     self.add_argument("--create", action="store_true", help="Create new registry?")
     self.add_argument("--validity", type=int, required=True, help="Calibration validity period (days)")
     self.add_argument("--calibType", type=str, default=None,
                       choices=[None, "bias", "dark", "flat", "fringe", "defect"],
                       help="Type of the calibration data to be ingested;" +
                            " if omitted, the type is determined from" +
                            " the file header information")
     self.add_argument("files", nargs="+", help="Names of file")
 def __init__(self, *args, **kwargs):
     InputOnlyArgumentParser.__init__(self, *args, **kwargs)
     self.add_argument("-n", "--dry-run", dest="dryrun", action="store_true",
                       default=False, help="Don't perform any action?")
     self.add_argument("--mode", choices=["move", "copy", "link", "skip"], default="move",
                       help="Mode of delivering the files to their destination")
     self.add_argument("--create", action="store_true", help="Create new registry?")
     self.add_argument("--validity", type=int, required=True, help="Calibration validity period (days)")
     self.add_argument("--calibType", type=str, default=None,
                       choices=[None, "bias", "dark", "flat", "fringe", "sky", "defect"],
                       help="Type of the calibration data to be ingested;"
                            " if omitted, the type is determined from"
                            " the file header information")
     self.add_argument("--ignore-ingested", dest="ignoreIngested", action="store_true",
                       help="Don't register files that have already been registered")
     self.add_argument("files", nargs="+", help="Names of file")