-
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
Allow passing in pandas dataframes to x2sys_cross #591
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1d9e72a
Implement tempfile_from_buffer for io.StringIO inputs
weiji14 e8cb8b6
Allow passing in kwargs to tempfile_from_buffer
weiji14 a64f47f
Mock X2SYS_HOME in a temporary X2SYS_TMP instead of current working dir
weiji14 9437850
Allow passing in pandas dataframes to x2sys_cross
weiji14 c32870c
Change working directory to inside X2SYS_TMP during test session
weiji14 ef98ab5
Merge branch 'master' into x2sys_cross_dataframes
weiji14 01c5ee5
Remove some info level verbose messages from x2sys_cross
weiji14 4132ff5
Revert "Allow passing in kwargs to tempfile_from_buffer"
weiji14 2c41ca4
Revert "Implement tempfile_from_buffer for io.StringIO inputs"
weiji14 aa3a521
Use tempfile_from_dftrack instead of tempfile_from_buffer
weiji14 fcd6cfe
Try closing the file stream before writing
weiji14 17a2f3e
Try different way of closing the tmpfile generated from dataframe
weiji14 1446429
Don't use GMTTempFile, just generate random filename and write to it
weiji14 a2b08be
Reduce git diff and make Windows tests pass by ignoring permission error
weiji14 8efb415
Revert "Mock X2SYS_HOME in a temporary X2SYS_TMP instead of current w…
weiji14 1b658c7
Revert "Remove some info level verbose messages from x2sys_cross"
weiji14 8430dd7
Better suffix finder for dataframe input into x2sys_cross
weiji14 b93a7aa
Test input two pandas dataframes to x2sys_cross with time column
weiji14 fb52df4
Merge remote-tracking branch 'upstream/master' into x2sys_cross_dataf…
weiji14 5338f37
Refactor to find suffix without using regex
weiji14 bb22363
Improve docstring of x2sys_cross and tempfile_from_dftrack
weiji14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The original implementation using GMTTempFile/NamedTemporaryFile didn't work because of some permissions issues (on macOS/Windows), which is why this try-finally block is used.
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.
The code quality looks good. As you're the one who develops and uses these functions, we have to trust you. 😄
Just one suggestion, add the comment to the codes, explaining why you use
unique_name
here.That's the first question when I read your codes before I see your comment here.
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.
It's all Paul's work done a decade ago, I'm just wrapping it in Python so more people can use it easily 😃 You won't believe how many 'crossover analysis' tools have been written again and again, but that's another story.
Ok, will do.