# Path: gammacat/info.py
# class GammaCatInfo:
# class GammaCatStr:
#     def __init__(self):
#     def __str__(self):
#     def info_dict(self):
#     def reference_folder(meta):
#     def data_filename(meta):
#     def source_id_str(source_id):
#     def reference_id_str(reference_id):
# def rawgit_url(filename, location='master', mode='production'):


from collections import OrderedDict
from pprint import pprint
from pathlib import Path
from astropy.coordinates import SkyCoord
from astropy.table import Table
from gammapy.spectrum.crab import CrabSpectrum
from gammapy.catalog.gammacat import GammaCatResource
from .info import gammacat_info
import logging
import json
import ruamel.yaml
import jsonschema
import jinja2
import numpy as np
import astropy.units as u
        list=[],
    )

    # @classmethod
    # def fill_str(cls, data, key):
    #     try:
    #         data[key] = cls.fill_value['string']
    #     else:
    #         return data

    @staticmethod
    def fill_value_array(shape):
        return np.ones(shape) * np.nan

    @staticmethod
    def resize_sed_array(array, shape):
        array = array.copy()
        array.resize(shape)
        array[array == 0] = np.nan
        return array

    @classmethod
    def fill_list(cls, data, key):
        try:
            return ','.join(data[key])
        except KeyError:
            return cls.fill_value['string']


jinja_env = jinja2.Environment(

# Path: gammacat/info.py
# class GammaCatInfo:
# class GammaCatStr:
#     def __init__(self):
#     def __str__(self):
#     def info_dict(self):
#     def reference_folder(meta):
#     def data_filename(meta):
#     def source_id_str(source_id):
#     def reference_id_str(reference_id):
# def rawgit_url(filename, location='master', mode='production'):


# Path: gammacat/utils.py
from collections import OrderedDict
from pprint import pprint
from pathlib import Path
from astropy.coordinates import SkyCoord
from astropy.table import Table
from gammapy.spectrum.crab import CrabSpectrum
from gammapy.catalog.gammacat import GammaCatResource
from .info import gammacat_info
import logging
import json
import ruamel.yaml
import jsonschema
import jinja2
import numpy as np
import astropy.units as u

        list=[],
    )

    # @classmethod
    # def fill_str(cls, data, key):
    #     try:
    #         data[key] = cls.fill_value['string']
    #     else:
    #         return data

    @staticmethod
    def fill_value_array(shape):
        return np.ones(shape) * np.nan

    @staticmethod
    def resize_sed_array(array, shape):
        array = array.copy()
        array.resize(shape)
        array[array == 0] = np.nan
        return array

    @classmethod
    def fill_list(cls, data, key):
        try:
            return ','.join(data[key])
        except KeyError:
            return cls.fill_value['string']


jinja_env = jinja2.Environment(

    loader=jinja2.FileSystemLoader(str(gammacat_info.webpage_path / 'templates')),