Skip to content

patch integrate in TIME does not update data_type #511

@dylanmikesell

Description

@dylanmikesell

Description

Doing the CTEMPS tutorial and ran across a small bug when doing integration in time.
The data_units is properly updated after patch.integrate(), but the data_type is not updated.

Example

import dascore as dc
patch = dc.get_example_patch("example_event_2")
patch
patch_int = patch.integrate("time")
patch_int

Expected behavior

patch variable has attributes
data_type: strain_rate
data_units: ϵ / s

patch_int variable has attributes
data_type: strain_rate
data_units: ϵ

Versions

  • OS: Ubuntu 24.04.2 LTS
  • DASCore Version: 0.1.9
  • Python Version: 3.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions