# Path: crowdastro/config.py
# SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))
# def get(*args, **kwargs):


import argparse
import csv
import logging
import h5py
import numpy
    import keras
from .config import config
"""Generates CNN output training data.

Matthew Alger
The Australian National University
2016
"""




PATCH_RADIUS = config['patch_radius']  # px
ARCMIN = 1 / 60  # deg


def generate(training_h5, cnn_model_json, cnn_weights_path):
    """Generates CNN output training data.

    training_h5: HDF5 file with training data.
    cnn_model_path: JSON model file.
    cnn_weights_path: Path to CNN weights HDF5 file.
    """
    # Have to import Keras here because it dumps to stdout...

# Path: crowdastro/config.py
# SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))
# def get(*args, **kwargs):


# Path: crowdastro/generate_cnn_outputs.py
import argparse
import csv
import logging
import h5py
import numpy
    import keras
from .config import config

"""Generates CNN output training data.

Matthew Alger
The Australian National University
2016
"""




PATCH_RADIUS = config['patch_radius']  # px
ARCMIN = 1 / 60  # deg


def generate(training_h5, cnn_model_json, cnn_weights_path):
    """Generates CNN output training data.

    training_h5: HDF5 file with training data.
    cnn_model_path: JSON model file.
    cnn_weights_path: Path to CNN weights HDF5 file.
    """
    # Have to import Keras here because it dumps to stdout...

    n_static = config['surveys'][training_h5.attrs['ir_survey']]['n_features']