Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update webpage #238

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gammacat/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, data, path):

@classmethod
def read(cls):
path = gammacat_info.base_dir / 'input/gammacat/gamma_cat_dataset.yaml'
path = gammacat_info.base_dir / 'input/gamma_cat_config/gamma_cat_dataset.yaml'
data = load_yaml(path)
return cls(data=data, path=path)

Expand Down Expand Up @@ -513,7 +513,7 @@ class CatalogSchema:
"""Helper class to apply the schema."""

def __init__(self):
self.colspecs = load_yaml(gammacat_info.base_dir / 'input/gammacat/gamma_cat_columns.yaml')
self.colspecs = load_yaml(gammacat_info.base_dir / 'input/gamma_cat_config/gamma_cat_columns.yaml')

def format_table(self, in_table):
"""Make a new table, formatting things according to this schema.
Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion webpage/data/catalog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ Why multiple formats?
It supports vector columns, which we use for spectral points.
* The ECSV and YAML variant are more for us working on gamma-cat,
to have a text-based, version control friendly format where it's
easy to see which changes occurred from one version to the next.
easy to see which changes occurred from one version to the next.

We recommend to have a look at `gamma_cat_columns <https://github.com/gammapy/gamma-cat/blob/master/input/gamma_cat_config/gamma_cat_columns.yaml>`__ in which all columns of the catalog are defined together with additional information, e.g. description and datatype of the entry.
Moreover, in `gamma_cat_dataset <https://github.com/gammapy/gamma-cat/blob/master/input/gammacat/gamma_cat_dataset.yaml>`__ for each source the reference_id of the data in the catalog is given (more precicely, this file tells the python scripts which references are used to create the catalog).