Coder Social home page Coder Social logo

Comments (6)

bnord avatar bnord commented on September 27, 2024

Does 'PLANE_2-REDSHIFT-g' have the same values as 'PLANE_2-OBJECT_1-REDSHIFT-g', but maybe in a different order?

from deeplenstronomy.

jsv1206 avatar jsv1206 commented on September 27, 2024

Write a unit test to compare the distributions.

from deeplenstronomy.

jsv1206 avatar jsv1206 commented on September 27, 2024

What are these dictionary elements plotting?

from deeplenstronomy.

jsv1206 avatar jsv1206 commented on September 27, 2024

zs_plane and zs_object are offset by one index

e.g. If there are 10 SL images, for i=0 to 9

There are 9 images in zs_plane and zs_object

zs_plane is from 0:8 and zs_object is from 1:9

The images correspond to zs_plane because the metadata has Nan for the last redshift value.
Hence, the value and the corresponding image is removed in the "# Delete images with sentinel redshifts" section of deeplenstronomy.py code.

zs_object is correctly written in the metadata.csv but the value is removed because of incorrect zs_plane.

from deeplenstronomy.

jsv1206 avatar jsv1206 commented on September 27, 2024

Adding 'PLANE-REDSHIFT' to output_dict in _flatten_and_fill in input_reader.py fixes this

for band, draw in zip(bands, draws):
for obj_num in range(1, config_dict['SIM_DICT']['PLANE_{0}-NUMBER_OF_OBJECTS'.format(plane_num)] + 1):
output_dict[band]['PLANE_{0}-OBJECT_{1}-{2}'.format(plane_num, obj_num, k_param)] = draw
output_dict[band]['PLANE_{0}-{2}'.format(plane_num, obj_num, k_param)] = draw

from deeplenstronomy.

jsv1206 avatar jsv1206 commented on September 27, 2024

Create a git branch and write unit tests to check output.

from deeplenstronomy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.