Skip to content

Commit

Permalink
Merge pull request #41 from AstarVienna/dev_master
Browse files Browse the repository at this point in the history
Dev master
  • Loading branch information
astronomyk authored Oct 12, 2022
2 parents 450eed5 + acfaba6 commit 508f815
Show file tree
Hide file tree
Showing 28 changed files with 660 additions and 20 deletions.
4 changes: 2 additions & 2 deletions scopesim_templates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
from .stellar.clusters import cluster
from .extragalactic.galaxies import galaxy, galaxy3d, elliptical
from .calibration.calibration import empty_sky
from .calibration.micado import darkness, flatlamp
from .calibration import micado
from .micado import darkness, flatlamp
from . import micado
1 change: 0 additions & 1 deletion scopesim_templates/calibration/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .calibration import *
from . import micado
9 changes: 0 additions & 9 deletions scopesim_templates/calibration/micado/__init__.py

This file was deleted.

31 changes: 31 additions & 0 deletions scopesim_templates/micado/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from .darkness import darkness as _darkness
from .flatlamp import flatlamp as _flatlamp
from .cluster import cluster as _cluster
from .viking_fields import viking_fields
from ..utils.general_utils import add_function_call_str

from . import spectral_calibrations

@add_function_call_str
def darkness():
return _darkness()


@add_function_call_str
def empty_sky():
# Include empty_sky for backwards compatibility reasons.
# TODO: Remove empty_sky when it is not used in MicadoWISE anymore.
return _darkness()


@add_function_call_str
def flatlamp():
return _flatlamp()


@add_function_call_str
def cluster():
return _cluster()


__all__ = [darkness, flatlamp, empty_sky, cluster]
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""A standard cluster for MICADO."""
from scopesim_templates.utils.general_utils import function_call_str, add_function_call_str

import scopesim_templates.stellar.clusters


@add_function_call_str
def cluster():
"""A basic cluster."""
return scopesim_templates.stellar.clusters.cluster(mass=10000, distance=2000, core_radius=.1)
File renamed without changes.
Loading

0 comments on commit 508f815

Please sign in to comment.