Skip to content

Update documentation for adding new features#108

Merged
xylar merged 3 commits intoMPAS-Dev:masterfrom
xylar:fix_add_feature_docs
Aug 3, 2019
Merged

Update documentation for adding new features#108
xylar merged 3 commits intoMPAS-Dev:masterfrom
xylar:fix_add_feature_docs

Conversation

@xylar
Copy link
Copy Markdown
Collaborator

@xylar xylar commented Aug 3, 2019

Fix an incorrect help string in merge_features

Add back stubs for all entry points. This makes it easier to access the entry points when running
from a local git repo.

@xylar xylar added the clean up label Aug 3, 2019
@xylar xylar requested a review from milenaveneziani August 3, 2019 10:25
@xylar xylar self-assigned this Aug 3, 2019
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Aug 3, 2019

@milenaveneziani, could you let me know if the updated documentation helps to understand my requested changes in #106?

@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Aug 3, 2019

Hello @xylar! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-08-03 17:00:37 UTC

@xylar xylar requested a review from mark-petersen August 3, 2019 10:53
@xylar xylar force-pushed the fix_add_feature_docs branch from 5d621ae to 4a6d896 Compare August 3, 2019 10:54
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Aug 3, 2019

@mark-petersen, I'm hoping the second commit here will help with:
#106 (comment)
Please let me know what you think.

It is not recommended that you modified features directly in
``geometric_data``, but if you have already done so, you can update the
manifst of all features and tags based on your changes first, then merge your
features into a feature colleciton and then split it back out into individual
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

couple of typos above


# Make a geometric features object that gets data from a local cache in
# ./geometric_data. (The remote branch won't matter.)
gf = GeometricFeatures(cacheLocation='./geometric_data')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

so this will also make sure that it dos 'not' download data from the main repo if it doesn't find it in the local repo, right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

In general, gf will still try to download anything you request that it doesn't find in the local cache. It does this by looking at the manifest, so by updating the manifest to match the local cache first, you ensure that it's not going to try to download anything.

@milenaveneziani
Copy link
Copy Markdown
Collaborator

@xylar: how is one supposed to access the documentation for geometric_features? By looking into the docs/? Perhaps I missed it, but if not, it would be nice to add a sentence in the README so that it is visible when opening the repo on github.

@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Aug 3, 2019

Yeah, that's a problem. There isn't currently a good way to look at the docs. It needs to be published on Read The Docs and then the README needs to be updated to point to it. I have this on my "to do" list but haven't had time. I'll make it a priority. I'm flying back to the US tomorrow so maybe on Monday.

@milenaveneziani
Copy link
Copy Markdown
Collaborator

That's fine. I'd say just add a sentence in the README (something like 'For more details on the best way to add features and update this repo, please browse the documents in docs/).
The README is the first thing that one sees when getting into this repo, so it is more likely to get noticed. At least that is what I'd have done.

@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Aug 3, 2019

It doesn't look hard to get things up and running on Read The Docs, so I went ahead and set it up. We won't know if it worked until this PR gets merged. I put a link to where the docs should appear at the top of the README.

@xylar xylar force-pushed the fix_add_feature_docs branch 2 times, most recently from 7d9e9a6 to fd538b7 Compare August 3, 2019 16:54
@milenaveneziani
Copy link
Copy Markdown
Collaborator

great thanks. You can merge this, from my point of view.

xylar added 3 commits August 3, 2019 19:00
Fix an incorrect help string in merge_features
This makes it easier to access the entry points when running
from a local git repo.
@xylar xylar force-pushed the fix_add_feature_docs branch from fd538b7 to 82639c6 Compare August 3, 2019 17:00
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Aug 3, 2019

@mark-petersen, you can let me know later if the stubs aren't working for you for some reason. I'll merge as soon as I see if #109 worked as expected.

@xylar xylar merged commit d070f6a into MPAS-Dev:master Aug 3, 2019
@xylar xylar deleted the fix_add_feature_docs branch August 3, 2019 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants