Skip to content

Commit

Permalink
Switch to fix inside parthenon
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Oct 25, 2023
1 parent 0b859e0 commit b46d963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,6 @@ def __init__(self, filename):
else:
self.Params = None

# If strings are converted to numpy arrays of ASCII values, convert back to
# strings
for key in self.Params.keys():
val = self.Params[key]
if type(val) is type(np.zeros(0)):
val_str = "".join([chr(c) for c in val])
self.Params[key] = val_str

# Read in coordinates
def load_coord(coord_i):
coord_name = ["x", "y", "z"][coord_i]
Expand Down
3 changes: 2 additions & 1 deletion src/outputs/parthenon_hdf5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ HDF5GetAttributeInfo(hid_t location, const std::string &name, H5A &attr) {
// template specializations for std::string and bool
void HDF5WriteAttribute(const std::string &name, const std::string &value,
hid_t location) {
HDF5WriteAttribute(name, value.size(), value.c_str(), location);
//HDF5WriteAttribute(name, value.size(), value.c_str(), location);
HDF5WriteAttribute(name, value.c_str(), location);
}

template <>
Expand Down

0 comments on commit b46d963

Please sign in to comment.