def testToString(self):
        type = "CalExp"
        path = "goob/CalExp-v88-c12.fits"
        ccdid = 12
        visitid = 88

        ds = Dataset(type, ids={"ccdid": ccdid, "visitid": visitid })
        self.assertEquals(ds.toString(),
                          "%s-ccdid%s-visitid%s" % (type, ccdid, visitid))
示例#2
0
    def testToString(self):
        type = "CalExp"
        path = "goob/CalExp-v88-c12.fits"
        ccdid = 12
        visitid = 88

        ds = Dataset(type, ids={"ccdid": ccdid, "visitid": visitid})
        self.assertEquals(ds.toString(),
                          "%s-ccdid%s-visitid%s" % (type, ccdid, visitid))
    def setUp(self):
        type = "CalExp"
        path = "goob/CalExp-v88-c12.fits"
        ccdid = 12
        visitid = 88
        ds = Dataset(type, path, ccdid=ccdid, visitid=visitid)
        self.name = ds.toString()

        self.bbi = bb.DataProductItem.createItem(dataset=ds,
                                           props={"foo": "bar", "count": 3,
                                                  "files": [ "goob", "gurn"] })
        self.initCount = 12
    def setUp(self):
        type = "CalExp"
        path = "goob/CalExp-v88-c12.fits"
        ccdid = 12
        visitid = 88
        ds = Dataset(type, path, ccdid=ccdid, visitid=visitid)
        self.name = ds.toString()

        self.bbi = bb.DataProductItem.createItem(dataset=ds,
                                                 props={
                                                     "foo": "bar",
                                                     "count": 3,
                                                     "files": ["goob", "gurn"]
                                                 })
        self.initCount = 12