We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68892bb commit 679f673Copy full SHA for 679f673
1 file changed
src/muse/readers/csv.py
@@ -795,6 +795,7 @@ def read_presets(
795
drop: Sequence[str] = ("Unnamed: 0",),
796
) -> xr.Dataset:
797
"""Read consumption or supply files for preset sectors."""
798
+ from logging import getLogger
799
from re import match
800
801
from muse.readers import camel_to_snake
@@ -826,6 +827,12 @@ def expand_paths(path):
826
827
.sum()
828
.reset_index()
829
)
830
+ msg = (
831
+ f"The ProcessName column (in file {path}) is deprecated. "
832
+ "Data has been summed across processes, and this column has been "
833
+ "dropped."
834
+ )
835
+ getLogger(__name__).warning(msg)
836
837
data = data.drop(columns=[k for k in drop if k in data.columns])
838
data.index = pd.MultiIndex.from_arrays([data[u] for u in indices])
0 commit comments