Skip to content

Mission Support - follow up#75

Open
Omiii-215 wants to merge 2 commits intoStingraySoftware:mainfrom
Omiii-215:mission-support-clean
Open

Mission Support - follow up#75
Omiii-215 wants to merge 2 commits intoStingraySoftware:mainfrom
Omiii-215:mission-support-clean

Conversation

@Omiii-215
Copy link
Copy Markdown

  • Add MissionSupport.jl implementation from PR Mission support #49 (kashish srivatsav), allowing dynamic PI-to-Energy calibration parsing based on telescope specs.
  • Updated readevents to handle mission, instrument, and epoch arguments while applying calibration data dynamically.
  • Removed legacy LightCurve dependencies and matched test_events.jl / test_missionSupport.jl with upstream FITSMetadata constructions.

This commit brings in the mission support features from PR 49 by kashish srivatsav while keeping the codebase aligned with upstream/main.
@Omiii-215
Copy link
Copy Markdown
Author

@kashish2210 I've have Worked up on your Draft PR #49 !

@kashish2210
Copy link
Copy Markdown
Member

Ohh great @Omiii-215
This is infact a good implementation;)

Comment thread src/Stingray.jl
calculate_event_properties,
extract_metadata,
create_lightcurve,
rebin
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why you have removed this exports ??
Revert this

Comment thread src/gti.jl
calculate_errors!(filtered_lc)

return filtered_lc
end
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Revert this to

Comment thread test/test_gti.jl
times, dt, counts, nothing, nothing, EventProperty{Float64}[],
metadata, :poisson
)
end
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one also

Comment thread test/test_gti.jl
@test filtered_lc.metadata.extra["gti_index"] == 1
@test filtered_lc.metadata.extra["filtered_nbins"] == 3
@test filtered_lc.metadata.extra["original_nbins"] == 5
end
Copy link
Copy Markdown
Member

@kashish2210 kashish2210 Feb 27, 2026

Choose a reason for hiding this comment

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

Don't remove implemented functions ;)

@kashish2210
Copy link
Copy Markdown
Member

So @Omiii-215 thanks for your PR i appreciate it but ig u have accidentally removed existing functionalities from this the minal changes can be done in readevent function only to use it

@Omiii-215
Copy link
Copy Markdown
Author

Thanks I'm Still learning, @kashish2210!

My branch got out of sync with upstream/main during development. When I pulled in the latest changes to resolve merge conflicts, Git accidentally re-applied some old deletions from my branch over the newly added lightcurve.jl features.

I've just pushed a fix that cleanly restores all the missing LightCurve dependencies, tests, and upstream GTI handling back into readevents. I also refactored my Mission Support additions to be minimal integrations within readevents, as you suggested. Everything is passing locally now

Comment thread src/events.jl
path::AbstractString;
mission::Union{String,Nothing} = nothing,
instrument::Union{String,Nothing} = nothing,
epoch::Union{Float64,Nothing} = nothing,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

Comment thread src/gti.jl
gti_end = @view gti[:, 2]

if any(gti_end < gti_start)
if any(gti_end .< gti_start)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice

@kashish2210
Copy link
Copy Markdown
Member

Great work @Omiii-215 !

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.

2 participants