File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# import logging
22
3- import filecmp
3+ # import filecmp
4+ import json
45import pandas as pd
56import unittest
67
78from aurora .config .config_creator import ConfigCreator
89from aurora .config .config_creator import SUPPORTED_BAND_SPECIFICATION_STYLES
9- from aurora .config .metadata import Processing
10+
11+ # from aurora.config.metadata import Processing
1012from aurora .general_helper_functions import AURORA_PATH
1113from 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
You can’t perform that action at this time.
0 commit comments