Skip to content

Conversation

@kashish2210
Copy link
Member

#34

@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.90%. Comparing base (cddac34) to head (8b68a89).
Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   95.24%   95.90%   +0.65%     
==========================================
  Files           3        4       +1     
  Lines         505      537      +32     
==========================================
+ Hits          481      515      +34     
+ Misses         24       22       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kashish2210 kashish2210 mentioned this pull request Mar 30, 2025
Copy link
Collaborator

@fjebaker fjebaker left a comment

Choose a reason for hiding this comment

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

Hi @kashish2210 this looks good! A few comments for you to look at :)


data_energy = readevents(energy_only_file)
@test isempty(data_energy.times) # Should be empty as no TIME column exists
@test length(data_energy.energies) == 3 # ENERGY data should be read even if TIME is missing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Without times, the energies are a little meaningless. This test should preferably raise an error if no TIME column is found in the FITS file.

@test length(event_list.energies) == 10
@test event_list.times == collect(1:10)
@test event_list.energies == collect(11:20)
@test length(event_list.metadata.headers) == 2 # Should only include headers up to first event HDU
Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, you can likely ignore my earlier comment then.

Copy link
Member Author

Choose a reason for hiding this comment

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

For tests?

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, sorry I was referring to # Should only include headers up to first event HDU, so my comment about reading in metadata from additional HDUs can likely be ignored.

@kashish2210 kashish2210 requested a review from fjebaker March 31, 2025 23:33
@kashish2210 kashish2210 marked this pull request as draft April 28, 2025 10:25
@kashish2210 kashish2210 marked this pull request as ready for review April 28, 2025 10:26
@kashish2210
Copy link
Member Author

i guess thee problem has been soved in #47 so no need to open this

@kashish2210 kashish2210 deleted the fix_issue#34 branch June 15, 2025 18:45
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.

4 participants