<reponame>dthatte/mirage
"""System test of mirage/NIRCam that creates simulations based on a .yaml file.

Authors
-------
    - <NAME>

Use
---
    >>> pytest -s test_nircam_imaging.py


"""

import os
import pkg_resources
import pytest

from mirage import imaging_simulator as im

# os.environ['MIRAGE_DATA'] = ''
os.environ['TEST_NIRCAM_DATA'] = os.path.join(os.path.dirname(__file__), 'test_data/NIRCam')


def test_nircam_imaging():
    m = im.ImgSim()
    m.paramfile = os.path.join(os.path.dirname(__file__), 'test_data/NIRCam/nircam_imaging_example.yaml')
    m.create()

"""System test of mirage/NIRCam that creates simulations based on a .yaml file.

Authors
-------
    - <NAME>

Use
---
    >>> pytest -s test_nircam_imaging.py


"""

import os
import pkg_resources
import pytest

from mirage import imaging_simulator as im

# os.environ['MIRAGE_DATA'] = ''
os.environ['TEST_NIRCAM_DATA'] = os.path.join(os.path.dirname(__file__), 'test_data/NIRCam')


def test_nircam_imaging():
    m = im.ImgSim()
    m.paramfile = os.path.join(os.path.dirname(__file__), 'test_data/NIRCam/nircam_imaging_example.yaml')
    m.create()
System test of mirage/NIRCam that creates simulations based on a .yaml file.  Authors -------     - <NAME>  Use ---     >>> pytest -s test_nircam_imaging.py # os.environ['MIRAGE_DATA'] = ''