Skip to content

Commit

Permalink
fix: slide_etl pandera schema dropping columns
Browse files Browse the repository at this point in the history
  • Loading branch information
raylim committed Nov 15, 2023
1 parent 7232cac commit afc13cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/luna/pathology/cli/slide_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from tiffslide import TiffSlide

from luna.common.dask import configure_dask_client, get_or_create_dask_client
from luna.common.models import Slide, SlideSchema
from luna.common.models import Slide
from luna.common.utils import apply_csv_filter, get_config, timed
from luna.pathology.common.utils import (
get_downscaled_thumbnail,
Expand Down Expand Up @@ -249,8 +249,7 @@ def __slide_etl(
output_urlpath,
)

df = DataFrame[SlideSchema](pd.json_normalize(slide.__dict__))
return df
return pd.json_normalize(slide.__dict__)


def fire_cli():
Expand Down

0 comments on commit afc13cc

Please sign in to comment.