Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialisation of "View" as the only varying Coordinate not possible #1

Open
fietew opened this issue Mar 13, 2020 · 0 comments
Open
Labels
question Further information is requested

Comments

@fietew
Copy link
Member

fietew commented Mar 13, 2020

In version 0.2.0, there seems to be a problem with initialising "View" as the only varying Coordinate:

Reproducing code example:

import sofa

HRIR = sofa.Database.create(
    'test.sofa',
    "MultiSpeakerBRIR", 
    dimensions={"M": 10, 
                "N": 1024, 
                "S": 128,
                "E": 3,
                "R": 2,
               }
)

HRIR.Listener.initialize(fixed=["Position", "Up"], variances=["View"])   # error
HRIR.Listener.initialize(fixed=["Position"], variances=["View", "Up"])  # works

Output:

Exception: failed to get Units of ListenerView, variable not initialized

I'm not sure, if this is intended, as there are cases where BRIR dataset only have the ListenerView as the varying variable. If yes, the error message could be explaining the user, that one cannot initialise View as the only varying coordinate.

@fietew fietew added the question Further information is requested label Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant