Skip to content

Commit

Permalink
Fix to work after camGeom changes in DM-5922
Browse files Browse the repository at this point in the history
Remove yamlCamera.py and change import to obs_base.
Also, set execute bit for the run_all script and add _very_ minimal test
to help future people start adding tests to this package.
  • Loading branch information
mfisherlevine committed Sep 15, 2017
1 parent a2b0895 commit 6b42d36
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 183 deletions.
2 changes: 1 addition & 1 deletion python/lsst/obs/ctio0m9/ctio0m9.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#
import os.path
import lsst.utils as utils
from yamlCamera import YamlCamera
from lsst.obs.base.yamlCamera import YamlCamera

class Ctio0m9(YamlCamera):
"""The Imager on the CTIO 0.9m (ctio0m9)
Expand Down
182 changes: 0 additions & 182 deletions python/lsst/obs/ctio0m9/yamlCamera.py

This file was deleted.

Empty file modified scripts/run_all_pre_march2017.sh
100644 → 100755
Empty file.
54 changes: 54 additions & 0 deletions tests/test_obs_ctio0m9.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/env python

#
# LSST Data Management System
#
# Copyright 2008-2017 AURA/LSST.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the LSST License Statement and
# the GNU General Public License along with this program. If not,
# see <https://www.lsstcorp.org/LegalNotices/>.
#

from __future__ import absolute_import, division, print_function
import os
import unittest

import lsst.utils
import lsst.utils.tests
import lsst.daf.persistence as dafPersist
from lsst.obs.ctio0m9 import ctio0m9Mapper

class Ctio0m9MapperTestCase(lsst.utils.tests.TestCase):
"""A test case for obs_ctio0m9."""

def setUp(self):
self.mapper = ctio0m9Mapper.Ctio0m9Mapper

def testExample(self):
pass


class TestMemory(lsst.utils.tests.MemoryTestCase):
pass


def setup_module(module):
lsst.utils.tests.init()

if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()

0 comments on commit 6b42d36

Please sign in to comment.