Skip to content

Commit

Permalink
Change to tuple as input type in parse_excel.infer_metadata() (#213)
Browse files Browse the repository at this point in the history
* Specify tuple of strings instead of a list as input parameter.
  • Loading branch information
ajeklund authored Feb 15, 2024
1 parent a7bcd3a commit a5118ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oteapi_dlite/strategies/parse_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def split_column_name(column):
return name, unit


def infer_metadata(rec: np.recarray, units: list) -> dlite.Instance:
def infer_metadata(rec: np.recarray, units: tuple[str, ...]) -> dlite.Instance:
"""Infer dlite metadata from recarray `rec`."""
rnd = getrandbits(128)
uri = f"http://onto-ns.com/meta/1.0/generated_from_excel_{rnd:0x}"
Expand Down

0 comments on commit a5118ca

Please sign in to comment.