Skip to content

Commit

Permalink
Sort table based on obstime column.
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoBektesevic committed Jan 29, 2024
1 parent 000cf61 commit ffac246
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 338 deletions.
2 changes: 2 additions & 0 deletions src/kbmod/image_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
The ``ImageCollection`` class stores additional information for the
input FITS files that is used during a variety of analysis.
"""

import os
import glob
import json
Expand Down Expand Up @@ -135,6 +136,7 @@ def _validate(self, metadata):
def __init__(self, metadata, standardizers=None):
valid, explanation = self._validate(metadata)
if valid:
metadata.sort("mjd")
self.data = metadata
else:
raise ValueError(f"Metadata is {explanation}")
Expand Down
1 change: 1 addition & 0 deletions src/kbmod/standardizers/butler_standardizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Class for standardizing Data Products of Vera C. Rubin Science Pipelines
via the Rubin Data Butler.
"""

import importlib
import uuid

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
`FitsStandardizer` is primarily useful to handle shared functionality and
simplify further processing, so there is not much to gain by using it directly.
"""

from os.path import isfile
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions src/kbmod/standardizers/standardizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
When possible, standardizers should attempt to extract a valid WCS and/or
bounding box from the data source.
"""

import abc
import warnings

Expand Down
338 changes: 0 additions & 338 deletions tests/flycheck_test_butlerstd.py

This file was deleted.

0 comments on commit ffac246

Please sign in to comment.