Skip to content

Commit

Permalink
Force unknown columns to be not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 8, 2024
1 parent cddcd01 commit 8daebb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion renumics/spotlight/data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ def get_column_metadata(self, column_name: str) -> ColumnMetadata:
tags=[],
computed=True,
)
return self._data_source.get_column_metadata(column_name)
metadata = self._data_source.get_column_metadata(column_name)
if spotlight_dtypes.is_unknown_dtype(
self._data_source.intermediate_dtypes[column_name]
):
metadata.editable = False
return metadata

def get_converted_values(
self,
Expand Down

0 comments on commit 8daebb6

Please sign in to comment.