Skip to content

Commit

Permalink
fix(config): minor fix (squash with pydantic commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
benatouba committed Nov 26, 2024
1 parent 26e4688 commit e7ee96b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions COSIPY.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
# import dask
from tornado import gen

from cosipy.config import Config, SlurmConfig
from cosipy.constants import Constants
from cosipy.config import main_config, slurm_config
from cosipy.cpkernel.cosipy_core import cosipy_core
from cosipy.cpkernel.io import IOClass

Expand Down
2 changes: 1 addition & 1 deletion cosipy/cpkernel/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def create_data_file(self) -> xr.Dataset:
start_timestamp = datetime.strptime(time_start, "%Y-%m-%dT%H:%M%z")
end_timestamp = datetime.strptime(time_end, "%Y-%m-%dT%H:%M%z")
timestamp = start_timestamp.strftime("%Y-%m-%dT%H-%M")
restart_path = Path(Config.data_path) / "restart" / f"restart_{timestamp}.nc"
restart_path = Path(main_config.data_path) / "restart" / f"restart_{timestamp}.nc"
if not restart_path.is_file():
msg = f"No restart file available at {restart_path}"
raise FileNotFoundError(msg)
Expand Down

0 comments on commit e7ee96b

Please sign in to comment.