Skip to content

MVP: Implement a batch/apply style function #14

@dougbrn

Description

@dougbrn

Feature request
Blocks #9. We want to apply a function, such as a periodogram function, to all lightcurves stored within a nested structure. We should implement a simple function for applying this function to the lightcurves. With TAPE, this motivated the batch function for grouping the sources and applying a function to them. Our data structures motivate a custom function a bit less, as the data is pre-grouped. So using the base apply may potentially be fine, however we may be able to provide a more intuitive API function for doing this operation and can potentially optimize for how it accesses the lightcurve data under the hood. Usage should look something like this:

mean_flux = nf.batch(my_mean_flux, "my_nested.flux")

Before submitting
Please check the following:

  • I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves.
  • I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality.
  • If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions