Skip to content

Commit

Permalink
corrected string table
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisfogden committed Apr 29, 2024
1 parent dd33077 commit 6a30e3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ src-dir = "src"

[project]
name = "heavylight"
version = "1.0.7"
version = "1.0.8"
authors = [
{ name="Lewis Fogden", email="[email protected]" },
{ name="Matthew Caseres", email="[email protected]"}
Expand Down
2 changes: 1 addition & 1 deletion src/heavylight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .memory_optimized_cache import CacheGraph
from .make_examples import make_example

__version__ = '1.0.7'
__version__ = '1.0.8'
2 changes: 1 addition & 1 deletion src/heavylight/heavytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def __init__(self, df:pd.DataFrame, rectify: Union[bool, None]=False, safe: Unio
cols = df[col].unique()
string_mapper = StringLookup(cols)
self.mappers.append(string_mapper)
df_int_keys[col] = string_mapper.get(df_int_keys[col])
df_int_keys[col] = string_mapper.get(df_int_keys[col].values)

elif col_type in ["str_unsafe", "band"]:
df_col = pd.DataFrame(df[col].unique(), columns=["band_name"]).reset_index().sort_values("band_name")
Expand Down

0 comments on commit 6a30e3c

Please sign in to comment.