mickaelrigault / pymage Goto Github PK
View Code? Open in Web Editor NEWPython module to Measure AGE bias in SN Cosmology
License: Apache License 2.0
Python module to Measure AGE bias in SN Cosmology
License: Apache License 2.0
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
I meet a strange problem:
Strange...
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...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.