Skip to content

Commit 9fdc68f

Browse files
committed
Delete unncesary arguments
1 parent c73124b commit 9fdc68f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/analysis/data_analysis.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,6 @@ Compute a mockup image emulating an SDSS observation.
18311831
- `data_dict::Dict`: Data dictionary (see [`makeDataDict`](@ref) for the canonical description).
18321832
- `grid::CubicGrid`: Cubic grid.
18331833
- `projection_plane::Symbol=:xy`: Projection plane. The options are `:xy`, `:xz`, and `:yz`.
1834-
- `l_unit::Unitful.Units=u"pc"`: Length unit
18351834
- `smooth::Bool=false`: If gaussian smooththing will be applied to the whole image.
18361835
- `extinction::Bool=false`: If neutral gas extinction will be consider.
18371836
- `filter_function::Function=filterNothing`: Filter function to be applied to `data_dict` before any other computation. See the required signature and examples in `./src/analysis/filters.jl`.
@@ -1844,7 +1843,6 @@ function daSDSSMockup(
18441843
data_dict::Dict,
18451844
grid::CubicGrid;
18461845
projection_plane::Symbol=:xy,
1847-
l_unit::Unitful.Units=u"pc",
18481846
smooth::Bool=false,
18491847
extinction::Bool=false,
18501848
filter_function::Function=filterNothing,

src/plotting/convenience.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7292,7 +7292,6 @@ Make a mockup image emulating an SDSS observation.
72927292
- `slice::IndexType`: Slice of the simulation, i.e. which snapshots will be plotted. It can be an integer (a single snapshot), a vector of integers (several snapshots), an `UnitRange` (e.g. 5:13), an `StepRange` (e.g. 5:2:13) or (:) (all snapshots). Starts at 1 and out of bounds indices are ignored.
72937293
- `box_size::Unitful.Length=BOX_L`: Size of the plotting box.
72947294
- `output_path::String="."`: Path to the output folder.
7295-
- `l_unit::Unitful.Units=u"pc"`: Length unit.
72967295
- `resolution::Int=800`: Number of bins per side of the cubic grid.
72977296
- `projection_plane::Symbol=:xy`: Projection plane. The options are `:xy`, `:xz`, and `:yz`.
72987297
- `smooth::Bool=false`: If gaussian smooththing will be applied to the whole image.
@@ -7313,7 +7312,6 @@ function SDSSMockup(
73137312
slice::IndexType;
73147313
box_size::Unitful.Length=BOX_L,
73157314
output_path::String=".",
7316-
l_unit::Unitful.Units=u"kpc",
73177315
resolution::Int=800,
73187316
projection_plane::Symbol=:xy,
73197317
smooth::Bool=false,
@@ -7357,7 +7355,7 @@ function SDSSMockup(
73577355
filter_function,
73587356
da_functions=[daSDSSMockup],
73597357
da_args=[(grid,)],
7360-
da_kwargs=[(; projection_plane, l_unit, smooth, extinction, filter_function=da_ff)],
7358+
da_kwargs=[(; projection_plane, smooth, extinction, filter_function=da_ff)],
73617359
save_figures=false,
73627360
backup_results=false,
73637361
backup_raw_results=true,
@@ -7366,6 +7364,8 @@ function SDSSMockup(
73667364
jld2_path = joinpath(temp_folder, "sdss_mockup_raw.jld2")
73677365
pp_string = string(projection_plane)
73687366

7367+
l_unit = u"kpc"
7368+
73697369
limit = ustrip(l_unit, box_size / 2.0)
73707370
x_axis = extrema(ustrip.(l_unit, grid.x_bins))
73717371
y_axis = extrema(ustrip.(l_unit, grid.y_bins))

0 commit comments

Comments
 (0)