Skip to content

Commit

Permalink
Added prints to main function
Browse files Browse the repository at this point in the history
  • Loading branch information
Glauber Verde committed Apr 30, 2024
1 parent cad47c6 commit 908785e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
Empty file added python/lsst/consdb/test.yaml
Empty file.
34 changes: 28 additions & 6 deletions python/lsst/consdb/transform_efd.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,34 @@ def build_argparser() -> argparse.ArgumentParser:


def main() -> None:
print("----------- MAIN -----------")
parser = build_argparser()
args = parser.parse_args()

print("Butler:")
butler = Butler(args.repo)
db = create_engine(args.db_conn_str)
efd = lsst_efd_client.EfdClient(args.efd_conn_str)
config = read_config(args.config_name)
process_interval(
butler, db, efd, config, args.instrument, args.start_time, args.end_time
)
print(butler)

# print("DB engine:")
# db = create_engine(args.db_conn_str)
# print(db)

# print("EFD:")
# efd = lsst_efd_client.EfdClient(args.efd_conn_str)
# print(efd)

# print("Configs:")
# config = read_config(args.config_name)
# print(config)

# process_interval(
# butler, db, efd, config, args.instrument, args.start_time, args.end_time
# )


if __name__ == "__main__":

# Exemplo de execução
# python transform_efd.py -i LATISS -s 2024-01-01T4:00:00 -e 2024-01-05T05:00:00 -r /repo/embargo -d sqlite://test.db -E usdf_efd -c test.yaml

main()

0 comments on commit 908785e

Please sign in to comment.