Skip to content

has_ephem_table is not defined in helioimage2fits #278

@sageyu123

Description

@sageyu123

@binchensun,

I was poking around in helioimage2fits.py and noticed we're using has_ephem_table in our np.savez call like this:

np.savez(msinfofile, vis=vis, observatory=observatory, scans=scans, fieldids=fieldids, inttimes=inttimes,
         btimes=btimes, btimestr=btimestr, ras=ras, decs=decs, has_ephem_table=has_ephem_table)

It looks like has_ephem_table isn't defined anywhere before this. See helioimage2fits.py#L420

If I'm not wrong, it should be replaced by

np.savez(msinfofile, vis=vis, observatory=observatory, scans=scans, fieldids=fieldids, inttimes=inttimes,
         btimes=btimes, btimestr=btimestr, ras=ras, decs=decs, has_ephem_table=msinfo['has_ephem_table'])

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