Skip to content

Commit

Permalink
fixed numpy sweeb bug
Browse files Browse the repository at this point in the history
Fixed a bug where np-arrays would not be recognizes as sweep variables
  • Loading branch information
DavidAnderegg committed Dec 14, 2020
1 parent dd12e59 commit f1b4049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adflow_util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.1.0'
__version__ = '1.1.1'

from .adflow_util import ADFLOW_UTIL
from .adflow_plot import ADflowData
Expand Down
4 changes: 2 additions & 2 deletions adflow_util/adflow_util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from tabulate import tabulate
import numpy
import numpy as np
import os
from os import listdir
from os.path import isfile, join
Expand Down Expand Up @@ -219,7 +219,7 @@ def find_array_aeroOptions(self):
if name in is_arraylike:
continue

if isinstance(value, list):
if isinstance(value, (list, np.ndarray)):
arrays.append(name)
return arrays

Expand Down

0 comments on commit f1b4049

Please sign in to comment.