Skip to content

Comments

Defer thermal model setup until actually needed#184

Draft
samaloney wants to merge 2 commits intosunpy:mainfrom
samaloney:feat-thermal-model-setup
Draft

Defer thermal model setup until actually needed#184
samaloney wants to merge 2 commits intosunpy:mainfrom
samaloney:feat-thermal-model-setup

Conversation

@samaloney
Copy link
Member

@samaloney samaloney commented Jan 30, 2025

This PR changes the way the thermal module configuration is loaded it uses a class to defer the process until the props are actually needed and also caches them.

At the moment I haven't implemented a setter as I don't know how to verify the data would be in the correct format and not really sure it's needed.

@samaloney
Copy link
Member Author

Early thoughts @DanRyanIrish ?

@jajmitchell
Copy link
Contributor

@samaloney I have also been working on the thermal model on the branch https://github.com/jajmitchell/sunkit-spex/tree/thermal-model-astropy-wrapper, still a bit messy, and definitely needs streamlining, but the wrapper seems to work with unit handling and produces the same results as the thermal_emission model. I was planning on opening a PR on this, but there would be lots of conflict with this one, how should we go forward with it?

@samaloney
Copy link
Member Author

@jajmitchell I'd prob just open the PR anyway, conflicts can't really be helped sometimes

@samaloney
Copy link
Member Author

I think this could actually be better accomplished with custom module attributes

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