Skip to content

Scalar timeseries dimension #156

Answered by jeandet
Beforerr asked this question in Q&A
Discussion options

You must be logged in to vote

I would say:

def is_scalar(v):
    return len(v.shape)==2 and v.shape[1]==1

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jeandet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #149 on October 23, 2024 15:48.