Skip to content

Commit

Permalink
fix astro
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon committed Nov 19, 2024
1 parent 924ae61 commit 8d09a92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neurots/generate/grower.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def __init__(
def _process_context(self, context):
"""Apply some required processing to the context dictionary."""
if context is None:
context = {}
return {}
if not isinstance(context, dict):
return context

# we ofen need to use the y_direction as a rotation, so we save to it once here
if "y_direction" in context:
Expand Down

0 comments on commit 8d09a92

Please sign in to comment.