-
Notifications
You must be signed in to change notification settings - Fork 40
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
lsf - added more monitor parsing capability #1184
Conversation
ee48ca7
to
255727f
Compare
255727f
to
41333d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, let's just add a test for the new file. I also just tried this out and it worked as expected. thanks!
f319e42
to
55a2675
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alec-flexcompute, just a few things for refining the test. It would be good for you to learn some of these advanced pytest features (parameterize, tmp_path) as we use them throughout the code and they are really useful.
6b7a423
to
353827f
Compare
@alec-flexcompute we will merge this into |
a1aea73
to
fe6586a
Compare
Rebased to 2.5 |
There should be just one commit in this PR, could you double check that you pulled the most recent pre/2.5 branch before rebasing? |
fe6586a
to
29c5a9e
Compare
07efa48
to
c717acf
Compare
c717acf
to
f8e2d2e
Compare
Added capability to parse in the following (marked in green) monitors from lsf. These are permittivity monitors, field time monitors, and field monitors expressed in different solvers. I currently have it so that monitors that record the same information but in different solver regimes (e.g. addindex vs addemeindex) route to the same function in the parser.
This should thus handle every monitor instance in lumerical for which there is a Tidy3D counterpart.
Also added monitor.lsf as an example lsf file for testing that includes an example of every monitor we can handle, and a patch-up handling cases where no e.g. sources, structures, monitors, and override structures are given.