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

Support pathlib with asdf.open and AsdfFile.write_to #617

Merged
merged 2 commits into from
Nov 21, 2018

Conversation

drdavella
Copy link
Contributor

This resolves #616.

cc @Cadair

@drdavella drdavella added this to the v2.3.0 milestone Nov 21, 2018
@drdavella drdavella self-assigned this Nov 21, 2018
@stsci-bot
Copy link

stsci-bot bot commented Nov 21, 2018

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

3 similar comments
@stsci-bot
Copy link

stsci-bot bot commented Nov 21, 2018

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

@stsci-bot
Copy link

stsci-bot bot commented Nov 21, 2018

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

@stsci-bot
Copy link

stsci-bot bot commented Nov 21, 2018

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

@@ -234,6 +235,20 @@ def test_context_handler_resolve_and_inline(tmpdir):
newf.tree['random'][0]


def test_open_pathlib_path(tmpdir):

filename = str(tmpdir.join('pathlib.asdf'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably not relevant to this test, but tmpdir here is actually pathlib.Path like.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah, good point. I think I'm going to leave as-is to be explicit.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 95.105% when pulling af67f0f on drdavella:support-pathlib into 7a19b60 on spacetelescope:master.

@drdavella drdavella merged commit 67e8d18 into asdf-format:master Nov 21, 2018
@drdavella drdavella deleted the support-pathlib branch November 21, 2018 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept pathlib.Path objects
3 participants