Skip to content

Commit

Permalink
[APERO] manage_databases.py - remove dependency on google-sheet colum…
Browse files Browse the repository at this point in the history
…ns (future safe)
  • Loading branch information
njcuk9999 committed Jan 30, 2024
1 parent d81d7a5 commit e201048
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apero/tools/module/database/manage_databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,10 @@ def _force_column_dtypes(table: Table, coltype: Dict[str, type]) -> Table:
"""
# loop around columns and force types
for col in table.colnames:
# if we do not define this column remove it
if col not in coltype:
del table[col]
continue
# strings are a pain have to do them manually
if hasattr(table[col], 'mask'):
mask = table[col].mask
Expand Down

0 comments on commit e201048

Please sign in to comment.