Skip to content

Commit

Permalink
Move Filter, Stop and Open to numina.simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Mar 16, 2018
1 parent cd08a1b commit b642ea6
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions megaradrp/simulation/shutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,9 @@
#

import six
import numpy

from numina.simulation.wheel import Wheel


#
# These are optical elements, they should be implemented
# elsewhere


class Stop(object):
def __init__(self, name):
self.name = name

def transmission(self, wl):
return numpy.zeros_like(wl)


class Open(object):
def __init__(self, name):
self.name = name

def transmission(self, wl):
return numpy.ones_like(wl)


class Filter(object):
def __init__(self, name, transmission=None):
self.name = name

def transmission(self, wl):
# FIXME: implement this with a proper
# transmission
return numpy.ones_like(wl)
from numina.simulation.optics import Open, Stop, Filter


class MegaraShutter(Wheel):
Expand Down

0 comments on commit b642ea6

Please sign in to comment.