We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9601ec4 commit 1645ce9Copy full SHA for 1645ce9
1 file changed
pangeo_forge_runner/commands/bake.py
@@ -2,7 +2,6 @@
2
Command to run a pangeo-forge recipe
3
"""
4
import hashlib
5
-import inspect
6
import os
7
import re
8
import string
@@ -284,7 +283,7 @@ def start(self):
284
283
# Chain our recipe to the pipeline. This mutates the `pipeline` object!
285
# We expect `recipe` to either be a beam PTransform, or an object with a 'to_beam'
286
# method that returns a transform.
287
- if inspect.isfunction(recipe):
+ if callable(recipe):
288
recipe(pipeline)
289
elif isinstance(recipe, PTransform):
290
# This means we are in pangeo-forge-recipes >=0.9
0 commit comments