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

Support parallel simulation of multiple sources #6

Open
dkirkby opened this issue Oct 7, 2015 · 1 comment
Open

Support parallel simulation of multiple sources #6

dkirkby opened this issue Oct 7, 2015 · 1 comment

Comments

@dkirkby
Copy link
Member

dkirkby commented Oct 7, 2015

Use the power of numpy advanced indexing and broadcasting to allow an arbitrary array of input sources to be simulated in parallel, with minimal changes to the code. This is presumably useful for simulating the observation of an entire field of targets, and eliminates the overhead of looping over each target. The existing mode of simulating a single 1D input SED should still work without any change to user code.

@dkirkby
Copy link
Member Author

dkirkby commented Mar 7, 2017

Most of the necessary functionality is already included in #53 but we still need an API for the DESI simulation to batch simulate a whole focal plane. The input args would be:

  • focal_x[nfiber], focal_y[nfiber]
  • fiberloss[nfiber, nwlen1]
  • SED[nfiber, nwlen2]

where nwlen1 ~ 11 and nwlen2 ~ 10K specify the wavelength grids used to tabulate fiberloss and input SEDs, respectively.

Additional parameters such as the seeing should be updated via the config, as before.

With this API, the fiberloss arrays can either be provided externally, or else calculated on the fly using the existing fiberloss.GalsimFiberlossCalulator class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant