Skip to content

Commit

Permalink
fix dataset rows diff error
Browse files Browse the repository at this point in the history
  • Loading branch information
tianweidut committed Sep 15, 2022
1 parent 3e8a49f commit 75910b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/starwhale/core/dataset/tabular.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys
import json
import typing as t
from copy import deepcopy
from types import TracebackType
from pathlib import Path

Expand Down Expand Up @@ -103,7 +104,12 @@ def from_datastore(
)

def __eq__(self, o: object) -> bool:
return self.__dict__ == o.__dict__
s = deepcopy(self.__dict__)
o = deepcopy(o.__dict__)

s.pop("data_origin", None)
o.pop("data_origin", None)
return s == o

def _do_validate(self) -> None:
if self.id < 0:
Expand Down

0 comments on commit 75910b8

Please sign in to comment.