Skip to content

Commit

Permalink
fix: optional optuna Journal import
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 30, 2023
1 parent e7ed8a1 commit e0a159f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/invert4geom/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import harmonica as hm
import pandas as pd
from nptyping import NDArray
from optuna.storages import JournalFileStorage, JournalStorage

from invert4geom import utils

Expand Down Expand Up @@ -464,7 +463,9 @@ def optimize_eq_source_params(
file_storage = optuna.storages.JournalFileStorage(fname, lock_obj=lock_obj)
storage = optuna.storages.JournalStorage(file_storage)

storage = JournalStorage(JournalFileStorage(fname))
storage = optuna.storages.JournalStorage(
optuna.storages.JournalFileStorage(fname)
)

# if sampler not provided, used BoTorch as default
if sampler is None:
Expand Down

0 comments on commit e0a159f

Please sign in to comment.