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
Convention General_1.0
Missing
#4
Comments
If I remember correctly I had two reasons. First, I think it is not well defined. For example the dimension If you want to read the data from that convention, you can probably do so with read_sofa_as_netcdf. In what way are you using the General convention? Could that also be done with another conention, e.g., GenerelTF, or am I missing something and should think about a way to include General? |
My use case was that I wanted to save a RIR with xyz Direction of Arrival (DOA) data for each sample, coming out of the SDM algorithm. I guess GeneralFIR or GeneralFIR-E would work for that instead. However, I wanted to give myself a heads-up when I later look at those files that I'm using a non-standard "data type". I don't plan to publish such files at the moment. But after looking at the standard I'd agree the I'd suggest 2 things:
>>> sofar.Sofa("General")
ValueError: Convention 'General' not supported, use a specific variant like 'GeneralFIR-E'. See `sofar.list_conventions()` for available conventions. >>> sofar.read_sofa("File_with_General_convention.sofa")
ValueError: Convention 'General' not supported. Try `sofar.read_sofa_as_netcdf`. I can put together a PR when I find the time. |
I like both suggestions and would welcome the PR. An other convention that is not supported by sofar is GeneralString, which SOFAtoolbox only lists for testing purposes. What do you think of taking care of that as well? I could provide fake SOFA files of those conventions for testing. |
The
General_1.0
convention is missing in this repo. I think this is due to all General conventions being excluded here: https://github.com/pyfar/sofar/blob/040e729274d5af5a60558cf6e7b5abd913eaa053/sofar/update_conventions.py#L99-L101.SOFAtoolbox 2.1.5 (with SOFA 2.2 support) writes and reads those files without a problem.
What is the reason to exclude all General conventions from the update process?
The text was updated successfully, but these errors were encountered: