Skip to content

Commit 7f7365c

Browse files
committed
Add deprecation warning for cheminventory helper
1 parent c7eab3f commit 7f7365c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/datalab_api/helpers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import random
2+
import warnings
23
from pathlib import Path
34

45
from datalab_api import DatalabClient, DuplicateItemError
@@ -13,6 +14,12 @@ def import_cheminventory(filename: Path, client: DatalabClient):
1314
1415
"""
1516

17+
warnings.warn(
18+
DeprecationWarning(
19+
"This helper is deprecated in favour of the full-fledged plugin at: https://github.com/datalab-industries/datalab-cheminventory-plugin"
20+
)
21+
)
22+
1623
def _generate_random_startingmaterial_id():
1724
"""Generate 'XX' + a random 15-length string for use as an id for starting materials
1825
that don't have a barcode.

0 commit comments

Comments
 (0)