-
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
Refactor text to use virtualfile_from_data #1121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I only had a couple small comments.
pygmt/src/text.py
Outdated
@@ -203,19 +204,15 @@ def text_( | |||
extra_arrays.append(kwargs["t"]) | |||
kwargs["t"] = "" | |||
|
|||
# Append text as the last column | |||
# text must be in str type, see issue #706 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now, correct?
# text must be in str type, see issue #706 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text must be in str type
This statement is still True.
Thanks for your suggestions. I'll mark this PR as draft, because I don't like the current implemention. |
Co-authored-by: Max Jones <meghanj@alum.mit.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a quick glance and can't see any major issues with this refactor. Is there anything else remaining you want to work on here @seisman?
I plan to not make more reactors in this PR to make it easier to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me. Sugest @meghanrjones (or someone else) to give this another review since it's been over a year since they approved this PR!
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Ping @meghanrjones to give this PR a final review. |
Sorry for not getting back to this in time to be helpful |
No worries. You can still leave your comments if there are any 😄 |
Co-authored-by: Max Jones <meghanj@alum.mit.edu> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Description of proposed changes
virtualfile_from_data
Related to #949.
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version