Change all warning() to .warning()

1 job for develop-warning
in 8 minutes and 32 seconds, using 0 compute credits, and was queued for 15 minutes and 47 seconds