-
Notifications
You must be signed in to change notification settings - Fork 224
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
Should data processing functions have their own modules? #807
Comments
I completely agree with you @willschlitzer. Splitting up all the modules allows to arrange everything in a consistent way. Would also support you in this intention if you need help. |
I agree with you.
I think we need to change these lines in Lines 14 to 24 in 2345486
|
@seisman So would we completely eliminate the files like |
Yes to me.
I'm not sure. We need to give it a try. |
Do we want to get this in for PyGMT v0.3.0 or the next release (v0.3.1 or v0.4.0)? |
I'm OK to both. I think I can finish PR #832 soon. |
These two PRs won't cause conflicts. |
There might be a minor conflict in the |
Todo list after PR #832:
|
Ping @weiji14 to separate |
Right, do we want to move the |
We should. I think |
Could something like either |
I'm ok with moving
|
Sounds good. |
I can help with this if needed. |
…oss (GenericMappingTools#951) Move the x2sys modules originally wrapped in GenericMappingTools#546. The single x2sys.py has been separated into x2sys_init.py and x2sys_cross.py inside the src/ folder as per GenericMappingTools#807.
In #685, @weiji14 asked the question of if data processing modules like
makecpt
andgrd2cpt
should be split into their own Python scripts, much like the plotting modules will be. My opinion is they should be split up. The other files aren't nearly as big asbase_plotting.py
, but I think it's best to standardize all functions in this way, and it makes it easier to find the function you're looking for (I wasn't sure ifgrd2cpt
should be undermathops.py
orgrdops.py
?).I'm happy to do it. I'm assuming the process would be similar to the changes in
base_plotting.py
, and just involve copying the functions to their own scripts inpygmt.src
, but how do we "tell" PyGMT where to look for it beyond the init file, as there isn't a base_plotting-equivalent script to import into?The text was updated successfully, but these errors were encountered: