Skip to content

Commit

Permalink
chore: delete tmp optuna file in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Feb 22, 2024
1 parent ad5ab8e commit 9b266aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_regional.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# %%
from __future__ import annotations

import pathlib

import numpy as np
import pandas as pd
import pytest
Expand Down Expand Up @@ -177,6 +179,10 @@ def test_regional_constraints(test_input):
# points=points.rename(columns={"easting":"x", "northing":"y"}),
# )

# delete the temp files created by optuna
pathlib.Path("tmp.log").unlink(missing_ok=True)
pathlib.Path("tmp.log.lock").unlink(missing_ok=True)

assert len(df.misfit) == len(df.reg)

# test whether regional field has been removed correctly
Expand Down

0 comments on commit 9b266aa

Please sign in to comment.