FieldList๏ƒ

Stability: Experimental

What it is๏ƒ

Use FieldList to batch field operations while keeping domain and metadata checks consistent across members.

Representative Signatures๏ƒ

FieldList([field0, field1, ...])
FieldList.fft_time_all()

Minimal Example๏ƒ

from gwexpy.fields import ScalarField, FieldList
import numpy as np

fields = FieldList([ScalarField(np.random.randn(8, 3, 3, 3)) for _ in range(2)])
fft_fields = fields.fft_time_all()

API Reference๏ƒ

The detailed generated API continues below on this page.

List-like collection of ScalarField objects with batch operations.

Provides validation of unit/axis/domain consistency and convenience batch wrappers for field operations.

Key Features๏ƒ

  • Batch Signal Processing: fft_time_all(), filter_all(), resample_all()

  • Batch Selection: sel_all(), isel_all()

  • Validation: Ensures all members in the list share the same axis metadata.

Example๏ƒ

from gwexpy.fields import ScalarField, FieldList
import numpy as np

fields = FieldList([
    ScalarField(np.random.randn(10, 4, 4, 4)),
    ScalarField(np.random.randn(10, 4, 4, 4)),
])

# Batch FFT
fft_fields = fields.fft_time_all()

# Selection on all fields
subset = fields.sel_all(axis1=slice(0, 2))