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

Lightfield sensor and source #123

Closed
wants to merge 11 commits into from
Closed

Conversation

BenoitHeraud
Copy link
Collaborator

No description provided.

@BenoitHeraud BenoitHeraud linked an issue Dec 6, 2022 that may be closed by this pull request
Copy link
Collaborator

@StefanThoene StefanThoene left a comment

Choose a reason for hiding this comment

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

Hi @BenoitHeraud create ground work done here here some comments about adjustments and changes please feel free to schedule a meeting


Parameters
----------
incident_resolution : int, optionl
Copy link
Collaborator

Choose a reason for hiding this comment

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

this hsould be a float as it can be 0.5 degree

speos_object = self.speos_sim.SensorLightField.Create()
speos_object.Name = name
self.speos_object = speos_object

Copy link
Collaborator

Choose a reason for hiding this comment

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

You are missing the wavelength settings -> start end+ res


def append_source(simulation_name):
"""
Append a list of source in a simulation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add correct doc string

"""
speos_source_list = []
for items in GetRootPart().CustomObjects:
if items.Type == "SPEOS_SC.SIM.SpeosWrapperSourceSurface":
Copy link
Collaborator

@StefanThoene StefanThoene Dec 12, 2022

Choose a reason for hiding this comment

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

please use correct speos API

Suggested change
if items.Type == "SPEOS_SC.SIM.SpeosWrapperSourceSurface":
if SpeosSim.SourceSurface.Find(items.GetName()):


class SourceLightField(Source):
"""
Provides methods for defining the Speos LocalMeshing.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please adjust docstring

super(Source, self).__init__(SpaceClaim, ["V19", "V20", "V21", "V22", "V23"])
self.speos_sim = SpeosSim
self.name = name
self.speos_object = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe add some values all sources have in comon E.g. Power, spectrum, intensity type ...

@pluAtAnsys pluAtAnsys closed this Feb 7, 2023
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.

lightfield sensor and source class
3 participants