-
Notifications
You must be signed in to change notification settings - Fork 218
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
[PICMI] Add ionization model configuration support #5007
base: dev
Are you sure you want to change the base?
[PICMI] Add ionization model configuration support #5007
Conversation
e96ac20
to
0b8d2c7
Compare
0b8d2c7
to
2ddcdab
Compare
26ef4ab
to
1702c17
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.
Hi, just a first batch. Not really touched on the functional code yet.
lib/python/picongpu/picmi/interaction/ionization/electroniccollisonalequilibrium/thomasfermi.py
Outdated
Show resolved
Hide resolved
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.
Of course, I haven't checked all the numbers, etc.
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.
that is fine
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.
Okay. Calling it a day for today. Here's another batch.
General comment: Assertions are not a safe way to check integrity of the data in functional code because they can be deactivated. Such checks should throw other appropriate (potentially custom) forms of exceptions.
if picongpu_template_dir is not None: | ||
self.picongpu_template_dir = str(picongpu_template_dir) | ||
else: | ||
self.picongpu_template_dir = picongpu_template_dir |
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.
Why does this not handle a Path
directly? Hazarding to state the obvious:Path
objects are generally safer to use for paths. If you later need it as a string for plugging it into a template or something, I'd call str()
on that as late as possible.
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.
because the interface is supposed to be newby friendly, so strings are the default option for now.
1702c17
to
05cf228
Compare
I reviewed the contents for PICMI collisional ionization. |
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.
I reviewed the content
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.
I reviewed the content.
1bbfe4b
to
78d1c61
Compare
0dbfb39
to
2415af6
Compare
One CI job failed to acess the github repository, @PrometheusPi coulde you please restart it? |
9b56e5c
to
a9c3e4b
Compare
@BrianMarre @PrometheusPi What's the status of this? |
Richard is still in the process of doing an intial review, then I will split up the PR in several independent PRs. At least that is the current plan |
Thanks for the update. I'll keep quiet then. |
Well ... since you ask, you could take over part of the review. ;) |
I set this PR to draft that it not get merged see: #5007 (comment) |
rebased PR against current dev |
a9c3e4b
to
8a462fd
Compare
adds the ability to configure ionization model interactions in the PIConGPU-PICMI interface.
replaces PR #4985
also fixes a bug in the initialization configuration of the
boundElectrons
attribute, noticed in the refactoring of theSetBoundElectrons
Operation, renamed in this PR toSetChargeState
.