Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 0 additions & 198 deletions src/IO/Update.jl

This file was deleted.

7 changes: 0 additions & 7 deletions src/Simulation/Simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1197,13 +1197,6 @@ function calculate_electric_field!(sim::Simulation{T, CS}; n_points_in_φ::Union
nothing
end

function calculate_drift_fields!(sim::Simulation{T};
use_nthreads::Int = Base.Threads.nthreads())::Nothing where {T <: SSDFloat}
@warn "Since v0.7.0, drift fields do not need to be calculated anymore.\n`calculate_drift_fields!(sim)` can be removed."
nothing
end
@deprecate apply_charge_drift_model!(args...; kwargs...) calculate_drift_fields!(args...; kwargs...)

function drift_charges( sim::Simulation{T}, starting_positions::VectorOfArrays{CartesianPoint{T}}, energies::VectorOfArrays{T};
Δt::RealQuantity = 5u"ns", max_nsteps::Int = 1000, diffusion::Bool = false, self_repulsion::Bool = false,
end_drift_when_no_field::Bool = true, geometry_check::Bool = false, verbose::Bool = true )::Vector{EHDriftPath{T}} where {T <: SSDFloat}
Expand Down
8 changes: 0 additions & 8 deletions src/SolidStateDetector/Passive.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ function Passive{T}(dict::AbstractDict, input_units::NamedTuple, outer_transform
temperature::T = _parse_value(T, get(dict, "temperature", 293u"K"), input_units.temperature)
charge_density_model = if haskey(dict, "charge_density")
ChargeDensity(T, dict["charge_density"], input_units)
elseif haskey(dict, "charge_density_model")
@warn "Configuration file deprecation: There was an internal change from v0.5.3 to v0.6.0 regarding the
charge density of `Passive` objects.
Since v0.6.0, the elementary charge is not automatically multiplied to the distribution as it
is a charge density and not an impurity density. The values in the config files should be adapted
and the name of the field should be changed from \"charge_density_model\" into \"charge_density\".
This warning will result in an error in later versions."
ChargeDensity(T, dict["charge_density_model"], input_units)
else
ConstantChargeDensity{T}(0)
end
Expand Down
7 changes: 1 addition & 6 deletions src/SolidStateDetector/Semiconductor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ end
function Semiconductor{T}(dict::AbstractDict, input_units::NamedTuple, outer_transformations) where T <: SSDFloat

impurity_density_model = if haskey(dict, "impurity_density")
imp = ImpurityDensity(T, dict["impurity_density"], input_units)
elseif haskey(dict, "charge_density_model")
@warn "Config file deprication: The field \"charge_density_model\" under semiconductor is deprecated.
It should be changed to \"impurity_density\". In later version this will result in an error.
For now, it will be treated as an impurity density."
ImpurityDensity(T, dict["charge_density_model"], input_units)
ImpurityDensity(T, dict["impurity_density"], input_units)
else
ConstantImpurityDensity{T}(0)
end
Expand Down
18 changes: 1 addition & 17 deletions src/SolidStateDetector/SolidStateDetector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,7 @@ function get_world_limits_from_objects(::Type{Cartesian}, det::SolidStateDetecto
end

function SolidStateDetector{T}(config_file::AbstractDict, input_units::NamedTuple) where {T <: SSDFloat}

@assert !haskey(config_file, "objects") "Configuration file deprecation.\n
The configuration file format was updated in v0.6.0.
However, this configuration file still seems to be in the old format.\n
To update your configuration file to the new format (v0.6.0 and newer),
open a new Julia session and load the following file:\n
\tinclude(\"<path_to_SolidStateDetectors.jl>/test/update_config_files.jl\")\n
Afterwards, run\n
\tupdate_config_file(\"<path_to_configuration_file>\")\n
This method returns the file name of the updated configuration file.
Please close the Julia session after updating the configuration files, as some
parsing methods are overridden with old methods.\n
Note that if your old geometries were defined using `difference`, you might
need to increase the dimensions of the subtracted geometry as it is now treated as
open primitive. Please have a look at the documentation:\n
\thttps://juliaphysics.github.io/SolidStateDetectors.jl/stable/\n"


@assert haskey(config_file, "detectors") "Config file needs an entry `detectors` that defines the detector(s)."
config_detector = config_file["detectors"][1] # still only one detector

Expand Down
2 changes: 1 addition & 1 deletion src/SolidStateDetectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export Grid

export ElectricPotential, PointTypes, EffectiveChargeDensity, DielectricDistribution, WeightingPotential, ElectricField
export apply_initial_state!
export calculate_electric_potential!, calculate_weighting_potential!, calculate_electric_field!, calculate_drift_fields!
export calculate_electric_potential!, calculate_weighting_potential!, calculate_electric_field!
export ElectricFieldChargeDriftModel, ADLChargeDriftModel, ADL2016ChargeDriftModel, IsotropicChargeDriftModel, InactiveLayerChargeDriftModel
export LinearImpurityDensity, ThermalDiffusionLithiumDensity, PtypePNJunctionImpurityDensity
export LinBouleImpurityDensity, ParBouleImpurityDensity, LinExpBouleImpurityDensity, ParExpBouleImpurityDensity, SplineBouleImpurityDensity
Expand Down
17 changes: 0 additions & 17 deletions test/update_config_files.jl

This file was deleted.

Loading