Skip to content

Commit

Permalink
Fix pandas FutureWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Oct 31, 2023
1 parent aba3f48 commit 959a49e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainreg_segment/regions/analysis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import pandas as pd
from brainglobe_utils.general.list import unique_elements_lists
from brainglobe_utils.pandas.misc import initialise_df
from brainglobe_utils.pandas.misc import initialise_df, safe_pandas_concat
from napari.qt.threading import thread_worker
from skimage.measure import regionprops_table

Expand Down Expand Up @@ -248,7 +248,7 @@ def add_structure_volume_to_df(
}

df_to_append = pd.DataFrame(data_to_append)
df = pd.concat([df, df_to_append], ignore_index=True)
df = safe_pandas_concat(df, df_to_append)

Check warning on line 251 in brainreg_segment/regions/analysis.py

View check run for this annotation

Codecov / codecov/patch

brainreg_segment/regions/analysis.py#L251

Added line #L251 was not covered by tests
return df


Expand Down

0 comments on commit 959a49e

Please sign in to comment.