Improve flexibility and robustness of Acoustics Module#433
Improve flexibility and robustness of Acoustics Module#433jmcvey3 merged 8 commits intoMHKiT-Software:developfrom
Conversation
…PSDs are calculated
|
Looks like some remaining dependency issues related to timestamps |
|
@jmcvey3, from my perspective you are not obligated to have all of the tests passing here to merge this into develop. Do you have any thoughts/preferences here? I'm guessing all of the tests pass locally for you, so let us know what makes sense. This is likely going to continue to be an issue moving forward with MHKiT, so I wonder if there is better way for the tests to only check "things that matter", and maybe only run pytest on the modules where the code has changed. It is def appreciated to get the tests working here, but I think this is more of the tests are broken in general vs this PR's tests are not passing... Happy to take any feedback here also. The actions have a lot of false positives IMO. I like the CI/CD idea in general, but there are also a lot of ways that this impedes actual development, so it seems like we need to find a balance... |
|
Well.... I tracked down the not-pretty bug in the cdip.py file and fixed that since it was a recurring issue. In the process, I cleaned up the dependencies in the conda environment file, so now hopefully these tests will run faster now that they don't have to install dependencies twice each time. I most likely broke the pip installation because of the h5-related libraries, but we'll see whenever those tests finish. |
Perhaps, but these have been frustrating for a while now, and I need this PR merged. I'm realizing what I'm running through now may have been why the packaging was difficult for the 1.0 release |
Do you just need this merged into develop? I think if you are happy with Adam's review and your tests are passing locally it is fine to merge this? I pulled your branch and all of the tests in the acoustics module pass locally for me in a fresh virtual environment: What do you think? I don't want to set a bad precedent, but you are not merging this into main, you are merging into develop, and that seems like what the develop branch is for. My own opinion is that some of the changes you are making in this PR are out of scope. That is fine and I get it, but I think we need to be careful about doing too many things to "appease the tests". |
Sure sure. I can create a new branch and a new PR for these changes and then rebase this PR back to just the acoustics code. I'll redo the "black" commit too so it's just editing the acoustics files as well. |
|
I agree with your first comment @simmsa , if the relevant tests are passing I think we should merge PRs as is to get that feature taken care of and then move to fixing the tests. Ideally, we'd do the test fixes first into develop and pull the updates into the feature PR (such as this one)--but none of us have the bandwidth to do so very quickly. @jmcvey3 For this particular PR, I will support whatever will be most efficient, whether that's merging as is, putting another fix here for the last test, or rebasing the test fixes into a new PR |
d965fc0 to
ffc3f65
Compare
Sounds good. I've rebased here and created a new PR for the other changes |
There are three main changes in this pull request:
Minor changes are refactoring some of the argument type checks to clean them up.