Skip to content

Commit

Permalink
change types for distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
FusRoman committed Dec 13, 2023
1 parent 65a11d2 commit 8040a3d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fink_mm/distribution/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from fink_mm.distribution.apply_filters import apply_filters

from fink_utils.spark import schema_converter
from pyspark.sql.types import StructType
from pyspark.sql.types import StructType, StringType


def format_mangrove_col(userschema: StructType) -> StructType:
Expand Down Expand Up @@ -45,25 +45,25 @@ def format_mangrove_col(userschema: StructType) -> StructType:
"metadata": {},
"name": "HyperLEDA_name",
"nullable": True,
"type": "string",
"type": StringType(),
},
{
"metadata": {},
"name": "TwoMASS_name",
"nullable": True,
"type": "string",
"type": StringType(),
},
{
"metadata": {},
"name": "lum_dist",
"nullable": True,
"type": "string",
"type": StringType(),
},
{
"metadata": {},
"name": "ang_dist",
"nullable": True,
"type": "string",
"type": StringType(),
},
],
"type": "struct",
Expand Down

0 comments on commit 8040a3d

Please sign in to comment.