We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8382c9 commit 198cf6aCopy full SHA for 198cf6a
src/nwbinspector/checks/_time_series.py
@@ -56,10 +56,13 @@ def check_data_orientation(time_series: TimeSeries) -> Optional[InspectorMessage
56
return None
57
58
if any(np.array(data_shape[1:]) > data_shape[0]):
59
+ longest_axis = int(np.argmax(data_shape))
60
return InspectorMessage(
61
message=(
- "Data may be in the wrong orientation. Time should be in the first dimension, and is usually the "
62
- "longest dimension. Here, another dimension is longer."
+ f"'{time_series.name}' data may be in the wrong orientation. "
63
+ f"Time should be the longest dimension, which is usually the first.\n"
64
+ f"Current shape: {data_shape}.\n"
65
+ f"Suggestion: Transpose so the first dimension is {data_shape[longest_axis]}."
66
),
67
)
68
0 commit comments