Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 14, 2022
1 parent 6b55d30 commit f96294f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/stactools/goes_glm/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@ def create_asset(
for val in data:
delta = timedelta(seconds=val)
new_data.append(base + delta)

table_data[new_col] = new_data
table_cols.append({
"name": new_col,
"type": "datetime" # todo: correct data type?
})
table_cols.append(
{"name": new_col, "type": "datetime"} # todo: correct data type?
)

table_data[col] = data
table_cols.append(table_col)
Expand All @@ -123,8 +122,10 @@ def create_asset(
# Replace later with somethine like:
# dataframe.to_parquet(file, version = "2.6")
import geopandas as gp

table = gp.io.arrow._geopandas_to_arrow(dataframe)
import pyarrow.parquet as pq

pq.write_table(table, file, version="2.6")

# Create asset dict
Expand Down

0 comments on commit f96294f

Please sign in to comment.