Skip to content

Commit

Permalink
Consistency in using kwargs for args and logger
Browse files Browse the repository at this point in the history
  • Loading branch information
swansonk14 committed Jul 20, 2020
1 parent 7e1fa19 commit 98864b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chemprop/hyperparameter_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ def chemprop_hyperopt() -> None:
"""
args = HyperoptArgs().parse_args()
logger = create_logger(name=HYPEROPT_LOGGER_NAME, save_dir=args.log_dir, quiet=True)
hyperopt(args, logger)
hyperopt(args=args, logger=logger)
2 changes: 1 addition & 1 deletion chemprop/sklearn_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def sklearn_predict() -> None:
This is the entry point for the command line command :code:`sklearn_predict`.
"""
predict_sklearn(SklearnPredictArgs().parse_args())
predict_sklearn(args=SklearnPredictArgs().parse_args())
2 changes: 1 addition & 1 deletion chemprop/sklearn_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,4 +307,4 @@ def sklearn_train() -> None:
"""
args = SklearnTrainArgs().parse_args()
logger = create_logger(name=SKLEARN_TRAIN_LOGGER_NAME, save_dir=args.save_dir, quiet=args.quiet)
cross_validate_sklearn(args, logger)
cross_validate_sklearn(args=args, logger=logger)
2 changes: 1 addition & 1 deletion chemprop/train/make_predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ def chemprop_predict() -> None:
This is the entry point for the command line command :code:`chemprop_predict`.
"""
make_predictions(PredictArgs().parse_args())
make_predictions(args=PredictArgs().parse_args())

0 comments on commit 98864b5

Please sign in to comment.