Skip to content

Conversation

kashish2210
Copy link
Member

@kashish2210 kashish2210 commented Mar 18, 2025

Update Dependencies & GitHub Workflow for Newer Julia Versions

Summary

This PR updates the Stingray.jl project to enhance compatibility with newer Julia versions
for my workflow and see the test results please prefer my [NOTEBOOK]

  • I have tested via taking Fits file from heasarc [1] and [2]

Key Updates

🔹 Updated Julia Version Compatibility

  • Added support for Julia 1.10+ and maintained compatibility with Julia 1.7.
  • Ensured functionality on Ubuntu, macOS, and Windows.
  • Improved dependency management.

🔹 Main improvements

  • Removed Metadata dependency and replaced it with NamedTuple for better performance and compatibility.
  • Improved normalize_periodograms and other spectral analysis functions to ensure correctness across different normalization schemes.
  • Refactored the compare_tables function for better reliability in test comparisons.

PREVIEW AND TEST RESULTS

image
Looking forward to your feedback!

remove the dependency of metadata and arrayinterface and code is ready to use for julia >=1.10
@kashish2210
Copy link
Member Author

@fjebaker and @matteobachetti your review required

@kashish2210
Copy link
Member Author

if needed later we can change the jullia version from project.toml since I don't want to interrupt current environments of workflow

@kashish2210 kashish2210 mentioned this pull request Mar 18, 2025
@fjebaker fjebaker changed the base branch from main to julia-formatter March 18, 2025 09:41
@fjebaker
Copy link
Collaborator

I've changed the base to the Julia formatted branch so stylistic diffs are removed. I'll resolve conflicts in a moment.

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! This looks good! Could you remove some of the docs files and maybe put them in a separate PR? Ideally we just want to fix #16 in this.

@fjebaker
Copy link
Collaborator

Hi @kashish2210 could you resolve the conflicts before I review this please? :) Force pushing removed the merge commit I'd added to resolve them previously.

@kashish2210
Copy link
Member Author

kashish2210 commented Mar 18, 2025

I'll take care of it soon and let you know once it's done.

Sorry for the force pushing

@kashish2210
Copy link
Member Author

kashish2210 commented Mar 18, 2025

i have resolve conflicts @fjebaker :)

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.

Thanks @kashish2210 this looks great! I'll try to run the tests locally soon, as I suspect the CI will be broken. I'll update the CI in due course with all the latest versions, and then we can get this merged in.

silent::Bool = false,
)
local_show_progress = show_progress
local_show_progress = silent ? identity : show_progress
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice 👍

src/fourier.jl Outdated
flux_iterable2,
dt::Real;
norm::String = "frac",
function avg_cs_from_iterables_quick(flux_iterable1, flux_iterable2,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like it needs code formatting. Could you run JuliaFormatter over this?

@kashish2210 kashish2210 requested a review from fjebaker March 18, 2025 19:03
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