Closed cassidymwagner closed 8 months ago
I updated the main title and content of this pull request to include some information about new continuous integration with GitHub Actions to check the formatting and use pytest
to complete some initial tests on multiple machines.
This is an addition I'm very excited about! The pull request is a bit bulkier now, but the CI tests and formatting will be very helpful to maintain this software package and encourage collaboration! 🎉
Major changes:
Speed-up from
numpy.roll
numpy.roll
is relatively slow since it makes copies of the original array, so the rolling (or padding) functionality is now handled iteratively with indexing to shift the array with or without replacement, depending on the boundary conditions. The example below is the case for periodic boundary conditions.Support for more grid types (rectangular, uneven spacing, latitude-longitude)
Set up continuous integration with GitHub Actions to test and check formatting
pytest
for testing modules. Currently only testingcalculate_velocity_advection
with very simple test cases.Miscellaneous updates
Clear next steps related to these updates
pytest
tests for other modules.