Skip to content
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

Remove double reference to input file in synopsis. #49

Merged
merged 1 commit into from
Aug 28, 2018
Merged

Conversation

joa-quim
Copy link
Member

No description provided.

Copy link
Member

@PaulWessel PaulWessel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@PaulWessel PaulWessel merged commit 14aaeca into master Aug 28, 2018
@PaulWessel PaulWessel deleted the trend1d branch August 28, 2018 21:27
obaney pushed a commit to obaney/gmt that referenced this pull request Aug 18, 2021
Fixes GenericMappingTools#49 

Uses `GMT_Handle_Messages` to send error messages to a log file.
In `call_module` retrieve those messages and use them in the 
exceptions for a more informative message (instead of just a status code).

Implements a context manager method `LibGMT.log_to_file` that 
creates a temp file and sets up logging. Logs only a single API call so it
must be used inside each method that wants to log. Actually only useful for
`call_module`. Most other API calls don't produce error messages.

Example:

    with self.log_to_file() as logfile:
        status = self._c_call_module(...)
        with open(logfile) as f:
            log = f.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants