Skip to content

Commit 567507a

Browse files
Merge pull request #116 from cblessing24/schema_name_deprecation_warning
Add deprecation warning regarding 'schema_name'
2 parents 744ae10 + 3ae360a commit 567507a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: nnfabrik/main.py

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
from .utility.dj_helpers import make_hash, CustomSchema, Schema
1616
from .utility.nnf_helper import cleanup_numpy_scalar
1717

18+
if "nnfabrik.schema_name" in dj.config:
19+
warnings.warn(
20+
"use of 'nnfabrik.schema_name' in dj.config is deprecated, use nnfabrik.main.my_nnfabrik function instead",
21+
DeprecationWarning,
22+
)
23+
1824

1925
schema = CustomSchema(dj.config.get("nnfabrik.schema_name", "nnfabrik_core"))
2026

0 commit comments

Comments
 (0)