Skip to content

Behavior change in SpectrumGenerator between versions #217

@clairekope

Description

@clairekope

This came up while updating a package that relies on Trident that hasn't been updated since v1.2.3. Something between v1.2.3 and v1.3 changes how the SpectrumGenerator operates. I wasn't able to find an easy culprit when diff'ing the tags on GitHub but I'm confident the change is in SpectrumGenerator because the underlying ray data doesn't change, as illustrated below with the HI number density. Note that while these tests show v1.4.2 I did isolate the change to the release of v1.3.

Spectrum Comparison (the undesired behavior)

Image Image

Number Density Comparison (ray unchanged)

Image Image

Testing this Behavior

Installing Trident 1.2.3 should be straightforward if you first install Python 3.6, yt 3.6.1, and matplotlib 3.3.1.

If you want to install Trident 1.3, I first installed Python 3.8 and yt 4.0.3.

Finally, I've attached a minimally working example for this behavior. It uses the HiresIsolatedGalaxy sample Enzo dataset from yt.

trident_compare.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions