Skip to content
Snippets Groups Projects

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

Merged 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

Merged by Gregory AshtonGregory Ashton 4 years ago (Sep 10, 2020 7:38am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading