Skip to content

Commit

Permalink
Fix reVX test (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed May 21, 2024
1 parent a55a768 commit 5c05c47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions reV/supply_curve/aggregation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
"""reV aggregation framework."""

import contextlib
import logging
import os
from abc import ABC, abstractmethod
Expand Down Expand Up @@ -948,9 +947,11 @@ def save_agg_to_h5(h5_fpath, out_fpath, aggregation):
"""
agg_out = aggregation.copy()
meta = agg_out.pop("meta").reset_index()
with contextlib.suppress(ValueError, TypeError):
for c in meta.columns:
for c in meta.columns:
try:
meta[c] = pd.to_numeric(meta[c])
except (ValueError, TypeError):
pass

dsets = []
shapes = {}
Expand Down

0 comments on commit 5c05c47

Please sign in to comment.