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

Add arc_09 and arc_10 to the scope of test_regen.py #243

Merged
merged 6 commits into from
Apr 28, 2023

Conversation

willGraham01
Copy link
Collaborator

@willGraham01 willGraham01 commented Mar 1, 2023

Continues towards #236 |

Tests added

arc_09 and arc_10 can now be run using test_regen.py, and have their input data remade locally.

run_bscan changes:

  • run_bscan handles the case when the user provides a .mat time-domain field as the illumination source (through the calc_tdfield flag)
  • run_bscan now returns the filenames of the input .mat files it regenerated, so we can remove all other unnecessary .mat files that the input generation process creates.

Additional changes

  • Adds the option to specify a point-source in as the obstacle (arc_09)
  • Adjusts some argument/input orders to better reflect interdependence between certain variables
  • Updates config_01.yaml's example to reflect the new calc_tdfield optional flag
  • getsourcecoords and calc_field_tdfield added to repository as necessary functions for the input generation to run

@willGraham01 willGraham01 marked this pull request as ready for review March 1, 2023 16:09
@willGraham01 willGraham01 force-pushed the wgraham-input_data_arc08_12_13 branch from bdddd87 to 4cc8bc5 Compare April 28, 2023 09:16
Base automatically changed from wgraham-input_data_arc08_12_13 to main April 28, 2023 11:49
- Adds the point-source option to scattering_matrix
- Changes the argument order to scattering_matrix to better reflect input dependency
- Adjusts the order arguments are passed in run_bscan to match
- Updates the README with point-source option
- run_bscan now needs to be told whether to calculate a time-domain field for the illumination
- bscan_arguments accordingly now needs to store an additional variable from the config file
- example syntax in config_01 updated accordingly
- add required methods calc_field_tdfield and getsourcecoords to the matlab/ directory
- .m files can now save auxillary .mat files with only the selection of variables requested
- "calc_tdfield" field is correctly searched for when reading config files
- run_bscan now returns the names of the files it created
- generate_test_input now cleans up all but the reference files and generated input files when it finishes
- generate_test_input actually passes the calc_tdfield flag to run_bscan
- bscan_arguments.py rebase artefact removed
Copy link
Member

@samcunliffe samcunliffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once rebased, all of these ⛓️ guys are easy to review.

... that is to say, the dependent chain of smaller PRs was a good idea.

@willGraham01 willGraham01 merged commit 4a56047 into main Apr 28, 2023
10 checks passed
@willGraham01 willGraham01 deleted the wgraham-input_data_arc_09_10 branch April 28, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants