Skip to content

revisit "or" condition when fill or True is evaluated #148

@jbfaden

Description

@jbfaden

I believe that True.or(fill) is fill right now, and this should be reconsidered. Sadie and I had a very strange bug where we couldn't figure out how some points were getting through, and it was because of this.

showBug= getParam('showBug',True,'Show the bug',[True,False])

dens= getDataSet('vap+cdaweb:ds=PSP_SWP_SPI_SF00_L3_MOM&filter=PSP&id=DENS&timerange=2023-03-13+through+2023-03-16')
ds=getDataSet('vap+cdaweb:ds=PSP_SWP_SPI_SF00_L3_MOM&filter=PSP&id=VEL_RTN_SUN&timerange=2023-03-13+through+2023-03-16')
ds = magnitude(ds)
ds = synchronize(dens,ds)

r= where( within( xtags(ds), '2023-03-13 13:30:30 to 13:35:00' ) )
ds= ds[r]
dens= dens[r]

if showBug:
    vals = where(dens.lt(10.0).or(invalid(dens)))
    ds = removeValues(ds,vals)
else:
    vals = where(dens.lt(10.0))
    ds = removeValues(ds,vals)
    vals= where(invalid(dens))
    ds = removeValues(ds,vals)

reset()
plot(0,ds,ytitle='ds',renderType='scatter>symbolSize=10')
plot(1,dens,ytitle='dens',renderType='scatter>symbolSize=10')

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