Commit Graph

67 Commits

Author SHA1 Message Date
Chris Shyi
ec3fb3f959 Fix get_audio_features() bug
Fixed bug where the parameters passed in the wrong order for
get_audio_features().
2018-05-20 16:37:02 -04:00
Chris Shyi
4066c96c94 Changed signature of get_audio_features() for consistency
Switched around the ordering of the parameters so that they are
consistent with other data acquisition helper functions.
2018-05-20 16:35:19 -04:00
Chris Shyi
a5780387e1 Made minor changes to variable names 2018-05-20 16:31:51 -04:00
Chris Shyi
d7002f7571 Implement audio feature statistics calculation
Implemented the calculation average and standard deviation of audio features.
2018-05-20 16:28:46 -04:00
Chris Shyi
9878e7954d Merge branch 'master' of https://github.com/Kevin-Mok/spotify-lib-vis 2018-05-20 15:59:27 -04:00
Chris Shyi
bbc713e729 Implement audio feature helper functions
Implemented helper functions for updating audio feature statistics.
2018-05-20 15:55:59 -04:00
Chris Shyi
7b153649bf Implement online standard deviation algorithm
Implemented Welford's method for calculating standard deviation as data
points arrive.
2018-05-20 15:19:11 -04:00
f94a861b84 Calculate genre counts once for each artist (#1)
Versus last commit that incremented genres every track. Also now only
stores ID for artist rather than all their genres.
2018-05-19 23:39:10 -04:00
cb75a0b2bb Implemented get_genre functionality (#1)
Code actually in increase_artist_count. Updates genre counts with
each track from the artist.
2018-05-19 22:56:28 -04:00
0ca846805c Wrote parse_library and get_track_info (#1)
Initialized library_stats with top-level keys and default values.
2018-05-19 21:19:35 -04:00
Chris Shyi
41eca1c891 Get soundtrack musical features
Implemented get_features() to retrieve musical features for soundtracks
2018-05-18 21:20:13 -04:00
Chris
bf65ae3f4d Use different URI for user data
The user_data page is now located at /user_data, instead of /callback as
before. Closes #7.
2018-05-14 10:29:15 -04:00
Chris
c0fe7a61af Implement User Login
Closes #6. User can now log in and be redirected to a data display
page(needs to be fleshed out).
2018-05-13 22:51:52 -04:00
Chris
588fc4bfc0 datetime object not JSON serializable
Fixed error where a datetime object cannot be stored in request.sessions
as it was not JSON serializable.
2018-05-13 18:07:04 -04:00
Chris
a96f429691 Obtain tokens from Spotify
Code now successfully obtains tokens from the Spotify API.
2018-05-13 17:48:38 -04:00
Chris
ef5c3b2647 Implement User Authorization
Completed step 1 of the Authorization Code Flow documented by the
Spotify API.
2018-05-11 21:18:42 -04:00
Chris
1f63c2d2e7 Initial commit
Sets up basic Django app directory structure.
2018-05-09 21:51:26 -04:00