Skip to content

Commit

Permalink
Changed error message to deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
iguinn committed Jan 7, 2025
1 parent 2499ef9 commit 136e2a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/legendmeta/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ def channelmap(
system = "all"

if system is None:
msg = "System cannot be None. Provide a value (e.g. 'all', 'cal', 'phy', etc.)"
raise ValueError(msg)
msg = "Use of channelmap with an on arg but no system arg is deprecated and will raise an error in the future. Provide a value (e.g. 'all', 'cal', 'phy', etc.)"
log.warning(msg)
#msg = "System cannot be None. Provide a value (e.g. 'all', 'cal', 'phy', etc.)"
#raise ValueError(msg)

try:
pd, run = re.fullmatch("([pP][0-9]+)\\s*([rR][0-9]+)", on).group(1, 2)
Expand Down

0 comments on commit 136e2a7

Please sign in to comment.