Skip to content

Commit

Permalink
Update clipped imports
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Sep 28, 2023
1 parent 5b1c74f commit b85de69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions traceml/traceml/events/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from clipped.compact.pydantic import StrictStr, root_validator
from clipped.config.parser import ConfigParser
from clipped.config.schema import skip_partial
from clipped.utils.csv import validate_csv
from clipped.utils.dates import parse_datetime
from clipped.utils.enums import PEnum
from clipped.utils.np import sanitize_np_types
from clipped.utils.strings import validate_file_or_buffer
from clipped.utils.tz import now

from polyaxon._schemas.base import BaseSchemaModel
Expand Down Expand Up @@ -431,7 +431,7 @@ def read(
import pandas as pd

if isinstance(data, str):
data = validate_csv(data)
data = validate_file_or_buffer(data)
error = None
if V1ArtifactKind.is_jsonl_file_event(kind):
try:
Expand Down
4 changes: 2 additions & 2 deletions traceml/traceml/logging/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from typing import List, Optional, Text

from clipped.compact.pydantic import StrictStr
from clipped.utils.csv import validate_csv
from clipped.utils.dates import parse_datetime
from clipped.utils.json import orjson_dumps, orjson_loads
from clipped.utils.strings import validate_file_or_buffer
from clipped.utils.tz import now

from polyaxon._schemas.base import BaseSchemaModel
Expand Down Expand Up @@ -105,7 +105,7 @@ def read_csv(cls, data: str, parse_dates: bool = True) -> "V1Logs":
import numpy as np
import pandas as pd

csv = validate_csv(data)
csv = validate_file_or_buffer(data)
if parse_dates:
df = pd.read_csv(
csv,
Expand Down

0 comments on commit b85de69

Please sign in to comment.