8000 Bugfix of layer thickness by torbjornstoro · Pull Request #94 · esa/NIDN · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bugfix of layer thickness #94

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

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Bugfix of layer thickness #94

merged 1 commit into from
Apr 29, 2022

Conversation

torbjornstoro
Copy link
Collaborator

Description

As title

Resolved Issues

How Has This Been Tested?

  • pytest

@torbjornstoro torbjornstoro requested a review from gomezzz April 28, 2022 13:26
@@ -29,7 +29,7 @@ def init_fdtd(cfg: DotMap, include_object, wavelength, permittivity):
"""
set_backend("torch")
if (len(cfg.PER_LAYER_THICKNESS) == 1) and (cfg.N_layers > 1):
cfg.PER_LAYER_THICKNESS = [cfg.PER_LAYER_THICKNESS] * cfg.N_layers
cfg.PER_LAYER_THICKNESS = cfg.PER_LAYER_THICKNESS * cfg.N_layers
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you want to do this, this will e.g. for 5 layers and thickness 0.1 per layer make the thickness 0.5?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Unless Per layer thickness is a one element list 🤔 , I guess? But then should check here just to be sure that it is a list and above doesn't happen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PER_LAYER_THICKNESS is always a list, validate config catches this

@gomezzz gomezzz self-requested a review April 29, 2022 07:40
@torbjornstoro torbjornstoro merged commit 27330f3 into main Apr 29, 2022
@gomezzz gomezzz deleted the WI_bugfix_layer branch December 26, 2022 12:30
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.

Small bug in ground-truth notebook
2 participants
0