Skip to content

Commit

Permalink
fix: remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanAbd committed Jul 11, 2023
1 parent 389efc0 commit 453afc8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions latch/types/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def __init__(
if kwargs.get("downloader") is not None:
super().__init__(self.path, kwargs["downloader"], self._remote_path)
else:

def downloader():
ctx = FlyteContextManager.current_context()
if (
Expand All @@ -85,7 +84,6 @@ def downloader():
):
local_path_hint = self._remote_path
if is_absolute_node_path.match(self._remote_path) is not None:
print("absolute node path")
data = execute(
gql.gql(
"""
Expand All @@ -99,17 +97,10 @@ def downloader():
{"argPath": self._remote_path},
)["ldataResolvePathData"]

print("data", data)

if data is not None and data["name"] is not None:
local_path_hint = data["name"]
else:
print("not absolute node path")

print("local_path_hint", local_path_hint)

self.path = ctx.file_access.get_random_local_path(local_path_hint)
print(self.path)
return ctx.file_access.get_data(
self._remote_path,
self.path,
Expand Down

0 comments on commit 453afc8

Please sign in to comment.