-
Notifications
You must be signed in to change notification settings - Fork 5
feat: refactor source class #690
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #690 +/- ##
==========================================
+ Coverage 88.90% 89.07% +0.16%
==========================================
Files 39 39
Lines 5617 5904 +287
==========================================
+ Hits 4994 5259 +265
- Misses 623 645 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@SMoraisAnsys @echambla @StefanThoene Could you please review the refactor methods |
cheat sheet need to be adjusted |
@@ -106,6 +110,129 @@ def __init__( | |||
self.source_template_link = self._project.client[source_instance.source_guid] | |||
self._reset() | |||
|
|||
class Luminous: |
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.
Generate A flux class.
has a property value and a set luminous and set radiant value
what do you think about that?
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.
by default it is luminous if you use the set radiant value it take sthe current value and puts ist to radiant and dependdant on the state the value setter works.
i think user experience would be better
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.
Creating a Flux class is an idea
I see also the property value that you mention.
Regarding the set luminous and set radiant, will they be properties or methods?
Also in this case it is important to think at the possibility from_intensity_file / from_ray_file
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.
@@ -846,6 +1049,151 @@ class SourceSurface(BaseSource): | |||
Uses default values when True. | |||
""" | |||
|
|||
class Intensity: |
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.
include in flux class?
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.
or add through inheritance
Co-authored-by: Stefan Thöne <[email protected]>
Co-authored-by: Stefan Thöne <[email protected]>
Co-authored-by: Stefan Thöne <[email protected]>
Co-authored-by: Stefan Thöne <[email protected]>
Co-authored-by: Stefan Thöne <[email protected]>
for more information, see https://pre-commit.ci
Co-authored-by: Stefan Thöne <[email protected]>
Description
need some testing and proper definition
Add properties to SourceLuminaire:
add properties to SourceRayfile:
add properties to SourceSurface
Issue linked
Refactor source #684
Checklist
feat: add optical property
)