-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make ChiantiPy an Astropy affiliated package #11
Comments
Well, i just have to take your word for this as I have not looked very deeply into the structure of the Astropy package. What I saw did look complicated. ChiantiPy does have its own set of constants so I am a bit reluctant to change that. My reason for putting ChiantiPy on github was to, as you say, to preserve its longevity and encourage future development. In that respect, I am very grateful for your help. Right now I spend a lot of time fixed bugs, some of which I have recently inserted. Also trying to work on the CHIANTI database and figure out git/github. Haven't figured out how to make a release on github yet. So, if you could propose a step by step approach to making an acceptable package for astropy/sunpy, that would be great. Needless to say, I will probably need help. |
I've not created a release myself via GitHub, but it seems that they have some pretty nice tools for doing just this. Part of the reason I began looking into the Astropy tools is that they provide a lot of Sphinx helper functions for creating nice documentation with little effort. For example, one can easily document an entire module using One nice example where Astropy could extend the functionality of ChiantiPy is through the use of Astropy tables. For example, the ASCII table produced by I'm happy to help as much as possible with the integration of these features. I've begun some work implementing the Astropy package template into ChiantiPy. I'll create a pull request to show the changes I've made and outline what I've done so far as a possible step-by-step approach. |
thanks for all your help. I will take a look at this asap but I am busy today. but it looks reasonable |
Copying over this checklist from merged PR #12 Possible Roadmap for Astropy IntegrationAn incomplete list of TODOs in order to make ChiantiPy an Astropy affiliated package.
|
First, I would like to bring my fork up to compatibility with the main copy. I had made some important edits in some of the files and I think it is good for me to be familiar with the recent changes. |
Good idea. Better to get your branch even with the main This is of course just a rough outline of possible improvements. Others might have better/more detailed ideas. In general, I think SunPy and Astropy are good examples for documentation, packaging, testing, etc. |
I'd like to mention that it might be more appropriate for ChiantiPy to become a SunPy affiliated package 👍 |
Is there an official checklist for SunPy affiliation like there is with Astropy? Or is it essentially the same? |
Affiliation with SunPy appears to be easier to do. I does not mention anything about changing physical units. The units that ChiantiPy uses are largely compatible with various solar spectroscopic and broadband instruments. |
@kdere the physical units used are not as much of a problem. It would be nice if the inputs and outputs were Astropy Quantity objects. |
I have just brought my fork up to the point where it looks pretty much like the upstream master. So, I created a pull request and it came back that the pull request had a number of incompatibilities that had to sort out. |
Perhaps try just copying the |
that is what I did. maybe when I looked at the file edits, The top looks like the astropy .gitignore although not like the SunPy version. |
OK, I just did an upstream pull and I will try to get things sorted. io.py is different because I deleted
|
things are sorted out for now |
I would suggest reopening this issue and keeping it open until either a) most of the steps for Astropy/SunPy affiliation have been completed or b) the decision is made to not have affiliation with either. |
OK, did thtat |
is there a way to install astropy as a Python 3 package? |
Astropy is compatible with Python 2.7, 3.3, 3.4, and 3.5. From what I understand, there is one codebase and it is compatible with all four versions. So if you're using Python 3 on your machine, it' just a matter of installing it with $ conda create --name my_new_astropy_env python=3
$ conda install astropy |
This should probably be changed to "Make ChiantiPy a SunPy Affiliated package." Details regarding that are here. It would probably be a good idea to move long term goals like this one to a roadmap in the wiki or something like that... |
Closing this as I've moved this issue to a project idea in the wiki as part of an effort to transition longstanding/large scope issues and feature requests to the wiki. |
Astropy provides a fairly straightforward template for building Astropy-like Python packages. SunPy currently uses a version of this template.
They provide bootstrapping for package setup and a lot of helpers for building documentation with Sphinx.
Another big advantage is Astropy's units system as well as the many constants that are builtin.
I think standardizing things like the docs and setup will help to preserve the longevity of ChiantiPy as well as encourage future development of the project. Incorporating it into the Astropy family will also make integration with SunPy easier. This will become important as the solar physics community (hopefully) becomes more Python-centric.
The text was updated successfully, but these errors were encountered: