Skip to content

Commit 5e79f83

Browse files
update package name to batchee, matching repo name
1 parent bcf4b48 commit 5e79f83

8 files changed

Lines changed: 13 additions & 13 deletions

File tree

File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
2525
# either express or implied. See the License for the specific language governing permissions and
2626
# limitations under the License.
27-
"""A Harmony CLI wrapper around the concatenate-batcher"""
27+
"""A Harmony CLI wrapper around batchee"""
2828

2929
from argparse import ArgumentParser
3030

3131
import harmony_service_lib
3232

33-
from batcher.harmony.service_adapter import ConcatBatching as HarmonyAdapter
33+
from batchee.harmony.service_adapter import ConcatBatching as HarmonyAdapter
3434

3535

3636
def main(config: harmony_service_lib.util.Config = None) -> None:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
from pystac import Item
3333
from pystac.item import Asset
3434

35-
from batcher.harmony.util import (
35+
from batchee.harmony.util import (
3636
_get_item_url,
3737
_get_netcdf_urls,
3838
_get_output_date_range,
3939
)
40-
from batcher.tempo_filename_parser import get_batch_indices
40+
from batchee.tempo_filename_parser import get_batch_indices
4141

4242

4343
class ConcatBatching(BaseHarmonyAdapter):
4444
"""
45-
A harmony-service-lib wrapper around the concatenate-batcher module.
45+
A harmony-service-lib wrapper around the concatenate-batchee module.
4646
This wrapper does not support Harmony calls that do not have STAC catalogs
4747
as support for this behavior is being depreciated in harmony-service-lib
4848
"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def main() -> list[list[str]]:
116116

117117
parser = ArgumentParser(
118118
prog="batchee",
119-
description="Simple CLI wrapper around the granule batcher module.",
119+
description="Simple CLI wrapper around the granule batchee module.",
120120
)
121121
parser.add_argument(
122122
"file_names",

tests/test_filename_grouping.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
22
from unittest.mock import patch
33

4-
import batcher.tempo_filename_parser
5-
from batcher.tempo_filename_parser import get_batch_indices, get_day_in_us_central
4+
import batchee.tempo_filename_parser
5+
from batchee.tempo_filename_parser import get_batch_indices, get_day_in_us_central
66

77
example_filenames = [
88
"TEMPO_NO2_L2_V03_20240731T235252Z_S016G04.nc",
@@ -40,10 +40,10 @@ def test_grouping():
4040

4141

4242
def test_main_cli():
43-
test_args = [batcher.tempo_filename_parser.__file__, "-v"]
43+
test_args = [batchee.tempo_filename_parser.__file__, "-v"]
4444
test_args.extend(example_filenames)
4545

4646
with patch.object(sys, "argv", test_args):
47-
grouped_names = batcher.tempo_filename_parser.main()
47+
grouped_names = batchee.tempo_filename_parser.main()
4848

4949
assert grouped_names == [example_filenames[0:3], example_filenames[3:6], example_filenames[6:9]]

tests/test_harmony_adapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import pytest
99

10-
import batcher.harmony.cli
10+
import batchee.harmony.cli
1111

1212

1313
@pytest.mark.usefixtures("pass_options")
@@ -25,7 +25,7 @@ def test_service_invoke(self, temp_output_dir):
2525
in_catalog_path = self.__harmony_path.joinpath("source", in_catalog_name)
2626

2727
test_args = [
28-
batcher.harmony.cli.__file__,
28+
batchee.harmony.cli.__file__,
2929
"--harmony-action",
3030
"invoke",
3131
"--harmony-input",
@@ -49,7 +49,7 @@ def test_service_invoke(self, temp_output_dir):
4949
}
5050

5151
with patch.object(sys, "argv", test_args), patch.dict(environ, test_env):
52-
batcher.harmony.cli.main()
52+
batchee.harmony.cli.main()
5353

5454
# Open the outputs
5555
out_batch_catalog_path = temp_output_dir.joinpath("batch-catalogs.json")

0 commit comments

Comments
 (0)