Skip to content

Commit

Permalink
refactor: using warnings.warn for deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Jun 26, 2024
1 parent e1a3f13 commit 4db27d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ngen_cal/src/ngen/cal/ngen.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing_extensions import Literal
from pathlib import Path
import logging
import warnings
#supress geopandas debug logs
logging.disable(logging.DEBUG)
import json
Expand Down Expand Up @@ -264,7 +265,7 @@ def validate_hydrofabic(cls, values: dict) -> dict:
except:
raise TypeError("hydrofabric must be a valid file path")
if cats is not None or nex is not None or x is not None:
print("WARNING: GeoJSON support will be deprecated in a future release, use geopackage hydrofabric.")
warnings.warn("GeoJSON support will be deprecated in a future release, use geopackage hydrofabric.")

return values

Expand Down

0 comments on commit 4db27d0

Please sign in to comment.