Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: consolidate logger to main program entry point. #117

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions metriq_gym/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
from metriq_gym.bench import BenchJobResult, BenchJobType, BenchProvider


logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")


def get_job(result: BenchJobResult) -> Job:
if result.provider == BenchProvider.IBMQ:
return QiskitRuntimeService().job(result.provider_job_id)
Expand Down
4 changes: 2 additions & 2 deletions metriq_gym/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
from metriq_gym.job_type import JobType
from metriq_gym.schema_validator import load_and_validate

logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")


def main() -> int:
"""Main entry point for the CLI."""
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")

load_dotenv()
args = parse_arguments()
job_manager = JobManager()
Expand Down
Loading