Skip to content

Commit

Permalink
fix for len(dim)==1
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Jun 24, 2023
1 parent 6597166 commit 63f1809
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbitinfo/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def plot_bitinformation(bitinfo, cmap="turku", crop=None):
"""
import matplotlib.pyplot as plt

bitinfo = bitinfo.squeeze()
assert (
"dim" not in bitinfo.dims
), "Found dependence of bitinformation on dimension. Please reduce data first by e.g. `bitinfo.max(dim='dim')`"
Expand Down

0 comments on commit 63f1809

Please sign in to comment.