Skip to content

Commit

Permalink
Following blurring, if a velocity cube was supplied, it returns the b…
Browse files Browse the repository at this point in the history
…lurred cube named "spectral_cube". This is now fixed in line with the naming convention. (i.e. returns an array names velocity cube if this was input). Solution to issue #16.
  • Loading branch information
kateharborne committed Nov 11, 2021
1 parent 7936e04 commit 07e9a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/blur_datacube.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ blur_datacube = function(datacube_output){
}

# Returning output in same format as input
blur_output = list("spectral_cube" = blur_cube,
blur_output = list("velocity_cube" = blur_cube,
"observation" = observation,
"raw_images" = datacube_output$raw_images,
"observed_images" = vector(mode = "list", length=3))
Expand Down
1 change: 1 addition & 0 deletions R/make_simspin_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ make_simspin_file = function(filename, cores=1, disk_age=5, bulge_age=10,
galaxy_data$star_part$Initial_Mass = galaxy_data$ssp$Initial_Mass

sed = .spectra(Metallicity = AZ_bins$metallicities, Age = AZ_bins$ages, Template = temp, cores = cores) # returns a list

} else {sed = NULL}

if (length(galaxy_data$gas_part$SmoothingLength)>0 & sph_spawn_n>1){ # if we need to spawn gas particles beacuse we are working with SPH models
Expand Down

0 comments on commit 07e9a09

Please sign in to comment.