Giter Club home page Giter Club logo

snclassifying_pre-alpha's Introduction

snclassifying_pre-alpha's People

Contributors

daniel-muthukrishna avatar

Watchers

James Cloos avatar David Parkinson avatar  avatar

snclassifying_pre-alpha's Issues

Specification of absolute paths

It would be better if this code didn't have the paths to different files hard-coded in. Maybe you could use the following commands to find the local path, and so locate the files you need:
import os print os.getcwd()

A more detailed README file

I suggest that you include the following details in your README file:

Install tensorflow (https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html#download-and-setup).
Run GUI/main.py
Once open, type in a known redshift
Browse for any single spectrum FITS, ASCII, dat, or two-column text file.
Click any of the best matches to view the continuum-subtracted binned spectra.
If the input spectrum is too noisy, increase the smoothing level, and click 'Re-fit with priors'

Call code from command line

A while ago Alex Kim suggested that the code should also be callable from the command line, returning a list of objects and probability. Is it possible to use the code in this way? So I would imagine the arguments would be the data file, and the redshift (if known), i.e.

python snclassifier.py DES16E2bkg_E2_combined_161005_v10_b00.dat 0.478

Error when running without knownz

When I run without a known redshift, I get the following error

Traceback (most recent call last):
File "main.py", line 216, in list_item_clicked
self.plot_best_matches()
File "main.py", line 223, in plot_best_matches
wave_redshifted = self.wave * ((self.plotZ-self.knownZ) + 1)
AttributeError: 'MainApp' object has no attribute 'knownZ'

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.