Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Feb 29, 2024
1 parent e3ca704 commit d44f65a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/python/external_data_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
)
args = parser.parse_args()

print(args)

def main() -> None:
is_file = os.path.isfile(args.filepath)
is_python_file = os.path.splitext(args.filepath)[1].lower() == ".py"
Expand All @@ -62,7 +60,7 @@ def main() -> None:
# The most important part of this: log to standard output so the Rerun Viewer can ingest it!
rr.stdout()

if not args.timeless:
if not args.timeless and args.time is not None:
for time_str in args.time:
parts = time_str.split("=")
if len(parts) != 2:
Expand All @@ -82,11 +80,10 @@ def main() -> None:
else:
entity_path = args.filepath

print(args.filepath)
with open(args.filepath) as file:
body = file.read()
text = f"""## Some Python code\n```python\n{body}\n```\n"""
print(entity_path, args.timeless)
print(entity_path, len(text))
rr.log(entity_path, rr.TextDocument(text, media_type=rr.MediaType.MARKDOWN), timeless=args.timeless)


Expand Down

0 comments on commit d44f65a

Please sign in to comment.