-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DispersiveMultiLayer
no longer uses MATLAB (#286)
* Rework DispersiveMultiLayer class into a struct. TDMS builds. - xyz_vector struct of 3 vector<double>s introduced - DispersiveMultiLayer is now a struct with xyz_vector members - Preserve method for checking if the medium is dispersive - Temporarily disable unit tests for DispersiveMultiLayer class - HDF5Reader::read() can now assemble a DispersiveMultiLayer - HDF5Reader has a method for reading directly into a vector<T> - H5Dimension can be passed a H5::DataSet as well as a H5::DataSpace * Update paths now we need HDF5 data as well as matlab data * TDMS builds and tests HDF5Reader::read_data_from_group (passes, no) * Fix seg-fault in read_dataset_from_group * Add DispersiveMultiLayer test * Update DispersiveMultiLayer tests to not be entangled with the MATLAB jargon * Update the CI so things actually work * Move content of benchmark_scripts readme into doc/developers * Update CI to produce unit test `.mat` and `.hdf5` data (#289) * Move content of benchmark_scripts readme into doc/developers * Update CI attempt 1 * Actually use the right syntax * Force python version to prevent MacOS using python2.7 * Rename files to better match the data they produce * Aplease windows syntax * Remove pip cache due to known windows bug: actions/setup-python#436 * Apply suggestions from code review
- Loading branch information
1 parent
eac765d
commit 30899d5
Showing
27 changed files
with
367 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,10 +56,10 @@ jobs: | |
- name: Set up MATLAB | ||
uses: matlab-actions/[email protected] | ||
|
||
- name: Produce MATLAB unit test data | ||
uses: matlab-actions/run-command@v1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
command: cd('tdms/tests/unit/matlab_benchmark_scripts/'), setup_unit_tests | ||
python-version: '3.9' | ||
|
||
# ------------------------------------------------------------------------------- | ||
# Ubuntu | ||
|
@@ -128,6 +128,20 @@ jobs: | |
run: | | ||
cmake --build . --config ${{ matrix.build_type }} | ||
# ------------------------------------------------------------------------------- | ||
# Unit tests | ||
- name: Produce MATLAB unit test data | ||
if: matrix.build_testing == 'ON' | ||
uses: matlab-actions/run-command@v1 | ||
with: | ||
command: cd('tdms/tests/unit/benchmark_scripts/'), setup_unit_tests | ||
|
||
- name: Produce hdf5 unit test data | ||
if: matrix.build_testing == 'ON' | ||
run: | | ||
pip install -r ${{ github.workspace }}/tdms/tests/requirements.txt | ||
python ${{ github.workspace }}/tdms/tests/unit/benchmark_scripts/create_hdf5_test_file.py | ||
- name: Run TDMS unit tests | ||
if: matrix.build_testing == 'ON' | ||
working-directory: ${{ runner.workspace }}/build | ||
|
@@ -153,6 +167,8 @@ jobs: | |
if: matrix.build_testing == 'ON' | ||
uses: codecov/codecov-action@v3 | ||
|
||
# ------------------------------------------------------------------------------- | ||
# Upload build artefact for system tests | ||
- name: Tar the build result to maintain permissions | ||
# https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
# https://github.com/actions/upload-artifact/issues/38 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.