Coder Social home page Coder Social logo

pymage's People

Contributors

martinbriday avatar mickaelrigault avatar vbrinnel avatar

Watchers

 avatar  avatar  avatar

pymage's Issues

README "Target Photometry" example not working

In []: from pymage import phototarget                                                                                                                                           

In []: pt = phototarget.PhotoTarget(ra=19.18233, dec=0.79456, zcmb=0.07517, name="SN2005ir")                                                                                    

In []: pt.load_instrument("sdss")                                                                                                                                              
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-27-0337befb4efa> in <module>
----> 1 pt.load_instrument("sdss")

~/Documents/phd/pymage/pymage/phototarget.py in load_instrument(self, which)
     22             self._load_galex_()
     23         if "sdss" in which:
---> 24             self._load_sdss_()
     25 
     26     def _load_galex_(self):

~/Documents/phd/pymage/pymage/phototarget.py in _load_sdss_(self)
     38             self.instruments["sdss"] = {"sdssu":[], "sdssg":[], "sdssr":[], "sdssi":[], "sdssz":[]}
     39 
---> 40         for inst_ in SDSSQuery.get_target_instruments(self.name):
     41             inst_.set_target(self, test_inclusion=False)
     42             self.instruments["sdss"][inst_.bandname].append(inst_)

~/Documents/phd/pymage/pymage/query.py in get_target_instruments(self, targetname, contains)
     96         """ Return a list of Astrobject's Instrument for each entry coresponding to the given target """
     97         if not self.is_target_known(targetname):
---> 98             raise AttributeError("unknown target. Please run download_target_metadata(), and download the associated files")
     99 
    100         from astrobject import instruments

AttributeError: unknown target. Please run download_target_metadata(), and download the associated files

Influence of the load_instrument order

I meet a strange problem:

  • When I load "sdss" first and then "galex", everything's fine,
  • But when I first load "galex", get some photopoints, and then try to load "sdss", the kernel is dying (Jupyter Notebook).

Strange...

GALEX and memory...

When a SN has a lot of GALEX frames available, to load all of them is crashing the kernel because of the flash memory it needs.

A limitation on the number of downloaded (and then loaded) frames may be more efficient...

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.