Skip to content

allow single-param plot with np.atleast_2d(axes)

David Keitel requested to merge dkeitel/gridcorner:patch-1 into master

@GregAshton this is to resolve TypeError: 'AxesSubplot' object is not subscriptable when calling with a single-parameter array. This small fix seems to work for me in PyFstat examples without changes needed for this special case anywhere else in the code, it just skips the 2D contours and returns a single histogram as makes sense:

short_transient_CW_corner

Merge request reports

Loading