-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix material matching plot (try plotting ground truth and see if right material comes out) #19
Conversation
- Small fix in find_closest_material - Cleaned up some imports - Added plot to training NB
…und-truth-and-see-if-right-material-comes-out)
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!
nidn/materials/layer_builder.py
Outdated
|
||
class LayerBuilder: | ||
def __init__(self, run_cfg) -> None: | ||
"""Initializes the builder |
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.
"""Initializes the builder | |
"""Initializes the builder. |
nidn/materials/layer_builder.py
Outdated
"""Initializes the builder | ||
|
||
Args: | ||
run_cfg (DotMap): Run configuration |
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.
run_cfg (DotMap): Run configuration | |
run_cfg (DotMap): Run configuration. |
nidn/materials/layer_builder.py
Outdated
self.material_collection = MaterialCollection(self.run_cfg.target_frequencies) | ||
|
||
def _setup_grid_and_materials(self,): | ||
"""Utility function to setup essentials |
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.
"""Utility function to setup essentials | |
"""Utility function to setup essentials. |
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.
But fix the comment first!
Co-authored-by: Håvard Hem Toftevaag <70584234+htoftevaag@users.noreply.github.com>
Description
First merge #15
How Has This Been Tested?
Plots look like this