Plotting functions fail due to numpy bytes format of 'outdir' and 'label' in the result file
I encountered an issue first with the plot_skymap function: The result.h5 file saves the outdir and label attributes in the numpy_bytes format, which raises a FileNotFound
error in the matplotlib savefig function. Running it by default returns "FileNotFoundError: [Errno 2] No such file or directory"
Manually changing the attributes into a string solves it as follows:
result.outdir = "/dir/path/string"
result.label = "label_string"
result.gw.utils.plot_skymap()
now works. Note: I later faced the same issue when I tried the plot_corner()
function.