Skip to content

Commit c5897ba

Browse files
committed
Decode title, history and description
1 parent 4ca4533 commit c5897ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/datatypes/header.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ def get_data_attrs(self) -> dict:
212212
"""
213213
attrs: dict[str, Any] = {}
214214
attrs["Conventions"] = "CF-1.7"
215-
attrs["title"] = self.title
216-
attrs["history"] = self.command
217-
attrs["description"] = self.remark
215+
attrs["title"] = self.title.decode()
216+
attrs["history"] = self.command.decode()
217+
attrs["description"] = self.remark.decode()
218218
long_name, units = _parse_nameunits(self.z_units.decode())
219219
if long_name:
220220
attrs["long_name"] = long_name

0 commit comments

Comments
 (0)