Skip to content

Commit

Permalink
Removed old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astrobc1 committed Jan 4, 2025
1 parent 7af1df6 commit 270f7e6
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 835 deletions.
5 changes: 2 additions & 3 deletions liger_iris_pipeline/base_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

class LigerIRISStep(Step):

# NOTE: This is kind of a hack, change if possible
spec = """
output_ext = string(default='.fits') # Output file type
"""
Expand Down Expand Up @@ -60,7 +61,7 @@ def _datamodels_open(cls, init, **kwargs):

def finalize_result(self, result, reference_files_used):
if isinstance(result, datamodels.LigerIRISDataModel):
#result.meta.calibration_software_revision = __version__
result.meta.calibration_software_revision = __version__

if len(reference_files_used) > 0:
for ref_name, filename in reference_files_used:
Expand Down Expand Up @@ -115,8 +116,6 @@ def build_config(cls, input, **kwargs): # noqa: A002
config, config_file : ConfigObj, str
The configuration and the config filename.
"""
logger_name = cls.__name__
#log_cls = logging.getLogger(logger_name)
config = config_parser.ConfigObj()

if "config_file" in kwargs:
Expand Down
2 changes: 1 addition & 1 deletion liger_iris_pipeline/tests/test_flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_flat_step():
sci_L1_filename = "/Users/cale/Desktop/Liger_IRIS_Test_Data/IRIS/2024A-P123-044_IRIS_IMG1_SCI-J1458+1013-SIM-Y_LVL1_0001-00.fits"
sci_L1_filename = "liger_iris_pipeline/tests/data/2024A-P123-044_IRIS_IMG1_SCI-J1458+1013-SIM-Y_LVL1_0001-00.fits"
input_model = datamodels.open(sci_L1_filename)

step = FlatFieldStep()
Expand Down
4 changes: 0 additions & 4 deletions liger_iris_pipeline/tests_old/__init__.py

This file was deleted.

31 changes: 0 additions & 31 deletions liger_iris_pipeline/tests_old/coveragerc

This file was deleted.

20 changes: 0 additions & 20 deletions liger_iris_pipeline/tests_old/data/asn_subtract_bg_flat.json

This file was deleted.

9 changes: 0 additions & 9 deletions liger_iris_pipeline/tests_old/data/drsrop.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions liger_iris_pipeline/tests_old/data/flat_field.cfg

This file was deleted.

16 changes: 0 additions & 16 deletions liger_iris_pipeline/tests_old/data/image2_iris.cfg

This file was deleted.

8 changes: 0 additions & 8 deletions liger_iris_pipeline/tests_old/data/preprocess_flatfield.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions liger_iris_pipeline/tests_old/data/upload_to_s3.sh

This file was deleted.

12 changes: 0 additions & 12 deletions liger_iris_pipeline/tests_old/setup_package.py

This file was deleted.

6 changes: 0 additions & 6 deletions liger_iris_pipeline/tests_old/test_asdf_schema.py

This file was deleted.

65 changes: 0 additions & 65 deletions liger_iris_pipeline/tests_old/test_assign_wcs.py

This file was deleted.

110 changes: 0 additions & 110 deletions liger_iris_pipeline/tests_old/test_create_subarray_dataset.py

This file was deleted.

37 changes: 0 additions & 37 deletions liger_iris_pipeline/tests_old/test_dark.py

This file was deleted.

Loading

0 comments on commit 270f7e6

Please sign in to comment.