Skip to content

UserWarning about regular expression - safe to ignore? #379

Answered by williamhobbs
jlounds asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to work either way, but I think this will get rid of the warning for you:

ds = H.xarray('(?:RH:2)|(?:TMP:2)')

You could also write it as:

ds = H.xarray('(?:TMP|RH):2 m')

(idea from https://stackoverflow.com/a/71374335/27574852)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@blaylockbk
Comment options

@jlounds
Comment options

Answer selected by blaylockbk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants