Skip to content

Commit 725e1c8

Browse files
authored
Merge pull request #238 from QuanMPhm/fix/h100_lenovo
Included H100 into list of excluded SU types for new PI credit processing
2 parents 9d0864d + 10d02b0 commit 725e1c8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

process_report/processors/new_pi_credit_processor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ class NewPICreditProcessor(discount_processor.DiscountProcessor):
2222
"""
2323

2424
NEW_PI_CREDIT_CODE = "0002"
25-
EXCLUDE_SU_TYPES = ["OpenShift GPUA100SXM4", "OpenStack GPUA100SXM4"]
25+
EXCLUDE_SU_TYPES = [
26+
"OpenShift GPUA100SXM4",
27+
"OpenStack GPUA100SXM4",
28+
"OpenShift GPUH100",
29+
"OpenStack GPUH100",
30+
]
2631
IS_DISCOUNT_BY_NERC = True
2732

2833
old_pi_filepath: str

process_report/tests/unit/processors/test_new_pi_credit_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,13 @@ def test_excluded_su_types(self):
465465

466466
invoice_month = "2024-06"
467467
test_invoice = self._get_test_invoice(
468-
["PI", "PI", "PI", "PI"],
468+
["PI", "PI", "PI", "PI2"],
469469
[600, 600, 600, 600],
470470
[
471471
"CPU",
472472
"OpenShift GPUA100SXM4",
473473
"GPU",
474-
"OpenStack GPUA100SXM4",
474+
"OpenStack GPUH100",
475475
],
476476
)
477477
test_old_pi_file = self.tempdir / "old_pi.csv"

0 commit comments

Comments
 (0)