Ticket #27 (new task)

Opened 2 years ago

Last modified 1 year ago

Should there be a Waveset class?

Reported by: laidler Assigned to: somebody
Priority: lowest Milestone: Pysynphot: user-friendly interface
Component: pysynphot Version:
Severity: normal Keywords:
Cc:

Description

Presently, there is no such thing as a Waveset class. A vanilla numpy.ndarray is used.

A Waveset class might usefully know its own units. It might also have the useful method .getDeltaWavelength(), which is presently a (private) function in the Units module and used four times. As a function, it is less accessible than it would be as a method.

This isn't really a UI issue (except for the getDelta part); I've simulated the "genwave" capability that synphot users will be accustomed to by creating a synonym for numpy.arange.

We would certainly not want to lose the ability to use plain numpy.ndarrays wherever they are presently used, even if a Waveset class were implemented.

Change History

05/29/07 18:01:32 changed by laidler

  • milestone set to Pysynphot: user-friendly interface.

02/08/08 12:27:32 changed by laidler

  • priority changed from normal to lowest.