Skip to content

Commit 7de4d03

Browse files
committed
debugging
1 parent 8fc4b6c commit 7de4d03

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

tests/config/test_config_creator.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# import logging
22

3-
import filecmp
3+
# import filecmp
4+
import json
45
import pandas as pd
56
import unittest
67

78
from aurora.config.config_creator import ConfigCreator
89
from aurora.config.config_creator import SUPPORTED_BAND_SPECIFICATION_STYLES
9-
from aurora.config.metadata import Processing
10+
11+
# from aurora.config.metadata import Processing
1012
from aurora.general_helper_functions import AURORA_PATH
1113
from aurora.test_utils.synthetic.processing_helpers import get_example_kernel_dataset
1214

@@ -100,24 +102,21 @@ def test_default_synthetic_processing_parameters(self):
100102
"aurora", "config", "processing_configuration_template.json"
101103
)
102104
assert reference_file.exists()
103-
import json
104105

105106
processing_config.save_as_json(target_file)
106107
assert target_file.exists()
107-
# p2j = json.load(reference_file)
108+
108109
with open(reference_file, "r") as f_ref:
109110
ref_json_str = f_ref.read()
110111
p2j = json.loads(ref_json_str)
111112

112113
assert p2j == processing_config
114+
# TODO: mt_metadata #222 is still live and this nearly addresses it!
113115
# p = Processing()
114116
# p.from_json(processing_config.from_json())
115117
# with open(reference_file, "r") as f:
116118
# p2 = f.read()
117-
# import json
118119
# p2j = json.load(reference_file)
119-
# refjson =
120-
# p2_json =
121120
# assert filecmp.cmp(target_file, reference_file)
122121
# target_file.unlink()
123122

0 commit comments

Comments
 (0)