Skip to content

Handle None Flux#29

Open
Sulla2012 wants to merge 1 commit into
mainfrom
sourcegen
Open

Handle None Flux#29
Sulla2012 wants to merge 1 commit into
mainfrom
sourcegen

Conversation

@Sulla2012
Copy link
Copy Markdown
Collaborator

Currently the SourceGen interpolation will error out if fluxes are None. Fix this by instead returning (position, None) if flux is None. For sso's, flux will be set to None if any ephem points have flux = None. Solve the issue raised in PR #28.

Copy link
Copy Markdown
Contributor

@axf295 axf295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be more consistent to use NaN rather than none? or is that harder to serialize or whatever?

just thinking that it would probably simplify a lot of the if else statements

@Sulla2012
Copy link
Copy Markdown
Collaborator Author

I'm happy to use NaN rather than None but scipy.interpolate handles neither so I don't think it simplifies the if/else statements unless I'm missing what you're suggesting.

@axf295
Copy link
Copy Markdown
Contributor

axf295 commented May 29, 2026

I'm happy to use NaN rather than None but scipy.interpolate handles neither so I don't think it simplifies the if/else statements unless I'm missing what you're suggesting.

oh, I guess that doesn't help. I was thinking it would be able ot be interpolated and just return more nans lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants