forked from GenericMappingTools/gmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log error messages with a callback instead of file (GenericMappingToo…
…ls#188) Use a callback function passed to `GMT_Create_Session` to log error messages instead of redirecting them to a file using `GMT_Handle_Messages`. It's a lot cleaner and the code is more legible. Other functions don't need to do anything to have their errors logged, it's automatic. The logged messaged are also printed to stderr so they will show up in the Jupyter notebook. This is useful when using the verbose mode (`V="d"`) in modules. Switch to the Fatiando a Terra CI scripts and enable OSX testing on Travis. Fatiando provides scripts for handling all of the CI tasks we need: https://github.com/fatiando/continuous-integration Use them instead of rewriting everything. Fixes GenericMappingTools#164 The Segmentation fault on OSX was happening because of the log file that we used to capture the GMT output and include in the exception. I have no idea why this happens. But removing that fixes the issue so I'm happy not knowing.
- Loading branch information
Showing
8 changed files
with
91 additions
and
299 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
linters: | ||
flake8: | ||
python: 3 | ||
enable: true | ||
ignore: E203, E266, E501, W503, F401, E741 | ||
max-line-length: 88 | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.