Skip to content

Fixes #90. Add auto_logging configuration parameter.#622

Merged
mwcraig merged 6 commits intoastropy:masterfrom
lucarizzi:master
May 15, 2018
Merged

Fixes #90. Add auto_logging configuration parameter.#622
mwcraig merged 6 commits intoastropy:masterfrom
lucarizzi:master

Conversation

@lucarizzi
Copy link

@lucarizzi lucarizzi commented May 3, 2018

If auto_logging is set to False and no add_keyword is specified,
ccdproc will not automatically create and add a keyword to the
metadata

Please have a look at the following list and replace the "[ ]" with a "[x]" if
the answer to this question is yes.

  • For new contributors: Did you add yourself to the "Authors.rst" file?

For documentation changes:

  • For documentation changes: Does your commit message include a "[skip ci]"?
    Note that it should not if you changed any examples!

For bugfixes:

  • Did you add an entry to the "Changes.rst" file?
  • Did you add a regression test?
  • Does the commit message include a "Fixes #issue_number" (replace "issue_number").
  • Does this PR add, rename, move or remove any existing functions or parameters?

For new functionality:

  • Did you add an entry to the "Changes.rst" file?
  • Did you include a meaningful docstring with Parameters, Returns and Examples?
  • Does the commit message include a "Fixes #issue_number" (replace "issue_number").
  • Did you include tests for the new functionality?
  • Does this PR add, rename, move or remove any existing functions or parameters?

Please note that the last point is not a requirement. It is meant as a check if
the pull request potentially breaks backwards-compatibility.

Luca Rizzi added 4 commits May 3, 2018 16:00
If auto_logging is set to False and no add_keyword is specified,
ccdproc will not automatically create  and add a keyword to the
metadata
Copy link
Member

@mwcraig mwcraig left a comment

Choose a reason for hiding this comment

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

Thanks for doing this, @lucarizzi! There are a couple of really minor changes to make then I think it is good to go.

If you would prefer I make the changes, just let me know.

log_val = log_val.replace("\n", "")
meta_dict = {key: log_val}
# so construct one unless the config parameter auto_logging is set to False
if ccdproc.conf.auto_logging is True:
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind changing this to: if ccdproc.conf.auto_logging: (no need for the is True)?

CHANGES.rst Outdated

- Improved the performance of several ``ImageFileCollection`` methods. [#599]

- Added auto_logging configuration paramenter [#90]
Copy link
Member

Choose a reason for hiding this comment

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

Could you please also add the PR number (so that it is [#622, #90])?

@lucarizzi
Copy link
Author

lucarizzi commented May 14, 2018 via email

@mwcraig
Copy link
Member

mwcraig commented May 15, 2018

Thanks @lucarizzi, merging!

@mwcraig mwcraig merged commit 888fb27 into astropy:master May 15, 2018
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.

2 participants