Skip to content

Commit

Permalink
make HEATMAP_TO_ATTRIBS_MAPPING private
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianhao-Gu committed Dec 18, 2023
1 parent 9f90f76 commit fd0a2e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/product_models/heatmap_common_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ColumnType(str, Enum):


# Maps a heatmap column type to a genome attributes column type
HEATMAP_TO_ATTRIBS_MAPPING = {
_HEATMAP_TO_ATTRIBS_MAPPING = {
ColumnType.FLOAT: AttribsColumnType.FLOAT,
ColumnType.INT: AttribsColumnType.INT,
ColumnType.COUNT: AttribsColumnType.INT,
Expand All @@ -70,10 +70,10 @@ def trans_column_type_heatmap_to_attribs(col_type: ColumnType) -> AttribsColumnT
col_type: the heatmap column type
"""

if col_type not in HEATMAP_TO_ATTRIBS_MAPPING:
if col_type not in _HEATMAP_TO_ATTRIBS_MAPPING:
raise ValueError(f'column type {col_type} is not supported by the heatmap')

Check warning on line 74 in src/common/product_models/heatmap_common_models.py

View check run for this annotation

Codecov / codecov/patch

src/common/product_models/heatmap_common_models.py#L73-L74

Added lines #L73 - L74 were not covered by tests

return HEATMAP_TO_ATTRIBS_MAPPING[col_type]
return _HEATMAP_TO_ATTRIBS_MAPPING[col_type]

Check warning on line 76 in src/common/product_models/heatmap_common_models.py

View check run for this annotation

Codecov / codecov/patch

src/common/product_models/heatmap_common_models.py#L76

Added line #L76 was not covered by tests


class ColumnInformation(BaseModel):
Expand Down

0 comments on commit fd0a2e8

Please sign in to comment.