Debian Codegraph @

planning/some_jan08_issues.txt

raw
1 Notes from convo with Perry:
2
3 __call__:
4 - tentative decision: it should always return in internal units
5 => wrap it to provide a "sample at these wavelengths and return
6 in the rendering units
7
8 - test to see whether call actually does this for all types of
9 objects
10 ....1/21..........added tests in spectest.py. Indeed call always returns
11 an ndarray; and sp(sp.wave) == sp.flux
12
13 Overall plan:
14 - come up with a comprehensive test set
15 - use some kind of code coverage tool to assess tests
16
17 Conflicting units in Composite objects:
18 - have some kind of hierarchy to choose which units to use
19
20 Round&round on analytic spectra:
21 - force use of keyword in constructor?
22 - change order so fluxunits can come first?
23 - raise exception if waveunits is not a waveunit (sheesh)
24
25 And hey by the way,
26 - why aren't sp.fluxunits, sp/bp.waveunits actual Unit objects
27 instead of strings?
28 --- 1/21: they are, according to the tests in spectest
29
30 Redshift: the jury is still out on what the "right" answer is. Waiting
31 to hear from Harry.
32
33 Need a new method on AnalyticSpectra:
34 - Evaluate on a given waveset but return a spectrum object (not just
35 the flux table)
36 - Harry's rewrite essentially makes __call__ a wrapper to his new
37 compute() method
38
39 SpectralElements are not convertible
40 - This seems wrong to me; one could specify a spectral element in nm
41 or Jy or any other wavelength unit
42 - Making this change would imply a wholesale move to internal units
43 - Possible partial change: permit reading nonAngstroms, but
44 immediately convert them to Angstroms
45 - Possible catch in the meantime: check units when read from a FITS
46 file and spit up if they aren't Angstroms