Skip to content

Commit e2aa0bb

Browse files
committed
small fix for flags to work
1 parent 2a2d15e commit e2aa0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

obsarray/templater/template_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _create_var(
129129
)
130130

131131
# Create variable and add to dataset
132-
if dtype == str:
132+
if isinstance(dtype,str):
133133
if dtype == "flag":
134134
flag_meanings = attributes.pop("flag_meanings")
135135
variable = du.create_flags_variable(

0 commit comments

Comments
 (0)