This repository was archived by the owner on Jul 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
[WIP] Main script and module to generate stats plots #2
Open
astrochun
wants to merge
32
commits into
develop
Choose a base branch
from
feature/api
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
- Include issue_request - setup.py config and requirements for installation
Note: get_timeline currently works with figshare datasets (not institutional ones)
- Adjust attributes to distinguish basic cred and API token - Add documentation for get_totals, get_user_totals
…thods - Add Figshare API endpoint
- Adjust get_institution_total to handle by_method='articles'
…n get_timeline method
c64ecff to
229618e
Compare
- Add text for total number of shares - Set axes lower value - Label daily shares at bottom
- important for private/restricted data
astrochun
commented
Mar 3, 2021
Contributor
Author
astrochun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. Had to fix a bug when HTTPError occurred. This seems to happen with private items that may have a private link. Not entirely sure why this is happening since it should not.
- Provide example for institution name
- Add docstrings for plot_shares - Revise docstrings for plot_timeline - Change out_pdf to string (default empty)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1
As of 07/27/2021:
This feature was working last year around mid-Nov 2020. However, it stopped working. I found one of the reasons why and fixed it today in d281996. However, it still dies when retrieving stats data. This might be caused either by a bad base token (haven't check this in some time) or an issue with the stats API.
It sort of works to some degree as I ran it with one item and got the attached image.
timeline_12642506.pdf
Here's an example of a testing code that produced the above: