Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-6620

Cannot instantiate LoadAstrometryNetObjectsTask without Config object

    Details

    • Templates:
    • Story Points:
      0.5
    • Sprint:
      Alert Production F16 - 6
    • Team:
      Alert Production

      Description

      One should be able to create a LoadAstrometryNetObjectsTask without passing a Config object, if one only wants the default configuration. Currently it raises TypeError:

      Traceback (most recent call last):
        File "testJointcal.py", line 79, in setUp
          refLoader = LoadAstrometryNetObjectsTask()
      TypeError: __init__() takes at least 2 arguments (1 given)
      

      If the config object really is a kwarg, it should default None and create a default config, so that one doesn't have to do, e.g.:

      LoadAstrometryNetObjectsTask(LoadAstrometryNetObjectsConfig())
      

        Attachments

          Activity

            People

            • Assignee:
              rowen Russell Owen
              Reporter:
              Parejkoj John Parejko
              Reviewers:
              John Parejko
              Watchers:
              John Parejko, Russell Owen, Simon Krughoff
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel