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

Fix constructor of BoggsChargeTrappingModel #438

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Fix constructor of BoggsChargeTrappingModel #438

merged 4 commits into from
Nov 26, 2024

Conversation

fhagemann
Copy link
Collaborator

@fhagemann fhagemann commented Nov 26, 2024

Previously, the constructor of BoggsChargeDriftModel would just completely ignore the section with the parameters.
Now, they are properly parsed.

The constructor can now take two sorts of dictionaries:

model: Boggs
parameters:
  # ...

and just

# ...

The latter might be convenient when defining the BoggsChargeDriftModel in code, e.g. BoggsChargeDriftModel{T}(Dict("nσe-1" => "1000cm")) and ensures that this PR is non-breaking (this is what the previous method did).

@fhagemann fhagemann added the bug Something isn't working label Nov 26, 2024
@fhagemann fhagemann changed the title Fix constructor for BoggsChargeTrappingModel Fix constructor of BoggsChargeTrappingModel Nov 26, 2024
@fhagemann
Copy link
Collaborator Author

With the last push, the constructor now performs as explained in the documentation:
https://juliaphysics.github.io/SolidStateDetectors.jl/stable/man/charge_drift/#BoggsChargeTrappingModel

@fhagemann fhagemann merged commit 337ea6c into main Nov 26, 2024
9 checks passed
@fhagemann fhagemann deleted the boggs branch November 26, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant