Skip to content
#

galaxy

Here are 365 public repositories matching this topic...

jmeyers314
jmeyers314 commented Dec 1, 2019

In numpy, if I want a random array uniformly distributed between -0.6 and +0.6 with 100 elements, I'd write:

rng = numpy.random.RandomState(seed)
array = rng.uniform(-0.6, 0.6, 100)

Using GalSim deviates, I'd do something like:

ud = galsim.UniformDeviate(seed)
array = np.empty(100)
ud.generate(array)
array = array*1.2 - 0.6

I find the former easier to read. I d

Jammy2211
Jammy2211 commented Jun 3, 2019

Its clear that some of the conventions I've adopted for code and testing are unclear. For example:

  • What is the different between an unmasked image, a 1D image and 2D image?

  • Why does a tracer have images called blurred_profile_image_plane_images? How do these different from normal images? Model images?

  • What does a 5x5 fixture mean?

Basically, the abstractions are good, but it need

Improve this page

Add a description, image, and links to the galaxy topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the galaxy topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.