datachain 0.34.7__py3-none-any.whl → 0.35.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of datachain might be problematic. Click here for more details.
- datachain/lib/file.py +6 -2
- {datachain-0.34.7.dist-info → datachain-0.35.0.dist-info}/METADATA +1 -1
- {datachain-0.34.7.dist-info → datachain-0.35.0.dist-info}/RECORD +7 -7
- {datachain-0.34.7.dist-info → datachain-0.35.0.dist-info}/WHEEL +0 -0
- {datachain-0.34.7.dist-info → datachain-0.35.0.dist-info}/entry_points.txt +0 -0
- {datachain-0.34.7.dist-info → datachain-0.35.0.dist-info}/licenses/LICENSE +0 -0
- {datachain-0.34.7.dist-info → datachain-0.35.0.dist-info}/top_level.txt +0 -0
datachain/lib/file.py
CHANGED
|
@@ -681,7 +681,7 @@ class File(DataModel):
|
|
|
681
681
|
normalized_path = self.get_path_normalized()
|
|
682
682
|
info = client.fs.info(client.get_full_path(normalized_path))
|
|
683
683
|
converted_info = client.info_to_file(info, normalized_path)
|
|
684
|
-
|
|
684
|
+
res = type(self)(
|
|
685
685
|
path=self.path,
|
|
686
686
|
source=self.source,
|
|
687
687
|
size=converted_info.size,
|
|
@@ -691,6 +691,8 @@ class File(DataModel):
|
|
|
691
691
|
last_modified=converted_info.last_modified,
|
|
692
692
|
location=self.location,
|
|
693
693
|
)
|
|
694
|
+
res._set_stream(self._catalog)
|
|
695
|
+
return res
|
|
694
696
|
except FileError as e:
|
|
695
697
|
logger.warning(
|
|
696
698
|
"File error when resolving %s/%s: %s", self.source, self.path, str(e)
|
|
@@ -703,7 +705,7 @@ class File(DataModel):
|
|
|
703
705
|
str(e),
|
|
704
706
|
)
|
|
705
707
|
|
|
706
|
-
|
|
708
|
+
res = type(self)(
|
|
707
709
|
path=self.path,
|
|
708
710
|
source=self.source,
|
|
709
711
|
size=0,
|
|
@@ -713,6 +715,8 @@ class File(DataModel):
|
|
|
713
715
|
last_modified=TIME_ZERO,
|
|
714
716
|
location=self.location,
|
|
715
717
|
)
|
|
718
|
+
res._set_stream(self._catalog)
|
|
719
|
+
return res
|
|
716
720
|
|
|
717
721
|
def rebase(
|
|
718
722
|
self,
|
|
@@ -79,7 +79,7 @@ datachain/lib/audio.py,sha256=3QWQ7PHuRnen7al8EjgjWuKbRKe4SvrbWELJ1T_Cin0,7545
|
|
|
79
79
|
datachain/lib/clip.py,sha256=nF8-N6Uz0MbAsPJBY2iXEYa3DPLo80OOer5SRNAtcGM,6149
|
|
80
80
|
datachain/lib/data_model.py,sha256=H-bagx24-cLlC7ngSP6Dby4mB6kSxxV7KDiHxQjzwlg,3798
|
|
81
81
|
datachain/lib/dataset_info.py,sha256=Ym7yYcGpfUmPLrfdxueijCVRP2Go6KbyuLk_fmzYgDU,3273
|
|
82
|
-
datachain/lib/file.py,sha256=
|
|
82
|
+
datachain/lib/file.py,sha256=YO4QUaZVZ0TVW9fahERZ3HJXPNXjB4oYzvLQntQYT9s,47501
|
|
83
83
|
datachain/lib/hf.py,sha256=jmyqRDXdksojUJCiU_2XFSIoMzzDJAZQs9xr-sEwEJc,7281
|
|
84
84
|
datachain/lib/image.py,sha256=xKyVsFKi1Shji7oluvd4Ibr3Atiz-Q0MNJhIsXeGcMI,3197
|
|
85
85
|
datachain/lib/listing.py,sha256=pXRzHCUxX0b1sZrFWPN77bHY69Hrn6rFwr5IzSxuhvI,7060
|
|
@@ -165,9 +165,9 @@ datachain/sql/sqlite/vector.py,sha256=ncW4eu2FlJhrP_CIpsvtkUabZlQdl2D5Lgwy_cbfqR
|
|
|
165
165
|
datachain/toolkit/__init__.py,sha256=eQ58Q5Yf_Fgv1ZG0IO5dpB4jmP90rk8YxUWmPc1M2Bo,68
|
|
166
166
|
datachain/toolkit/split.py,sha256=xQzzmvQRKsPteDKbpgOxd4r971BnFaK33mcOl0FuGeI,2883
|
|
167
167
|
datachain/torch/__init__.py,sha256=gIS74PoEPy4TB3X6vx9nLO0Y3sLJzsA8ckn8pRWihJM,579
|
|
168
|
-
datachain-0.
|
|
169
|
-
datachain-0.
|
|
170
|
-
datachain-0.
|
|
171
|
-
datachain-0.
|
|
172
|
-
datachain-0.
|
|
173
|
-
datachain-0.
|
|
168
|
+
datachain-0.35.0.dist-info/licenses/LICENSE,sha256=8DnqK5yoPI_E50bEg_zsHKZHY2HqPy4rYN338BHQaRA,11344
|
|
169
|
+
datachain-0.35.0.dist-info/METADATA,sha256=j8fDkEoMgVwDmIat66piaShwKfJgKSOPw2qeFYSX05A,13606
|
|
170
|
+
datachain-0.35.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
171
|
+
datachain-0.35.0.dist-info/entry_points.txt,sha256=0GMJS6B_KWq0m3VT98vQI2YZodAMkn4uReZ_okga9R4,49
|
|
172
|
+
datachain-0.35.0.dist-info/top_level.txt,sha256=lZPpdU_2jJABLNIg2kvEOBi8PtsYikbN1OdMLHk8bTg,10
|
|
173
|
+
datachain-0.35.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|