This file contains 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
""" | |
Original Docstring - | |
Programmer: Chris Tralie | |
Purpose: To use the POT library (https://github.com/rflamary/POT) | |
to compute the Entropic regularized Wasserstein distance | |
between points on a 2D grid | |
Modified by Sam Mestern | |
Shows the usage of the sliced wasserstein distance to measure the distance between two |
This file contains 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
import os | |
import numpy as np | |
import pandas as pd | |
from allensdk.brain_observatory.ecephys.ecephys_project_cache import EcephysProjectCache ##Requires allensdk 1.0.2 or higher | |
manifest_path = os.path.join("C:\\cell_types\\", "manifest.json") ##Need to use double slashes in python for paths. Data will be saved to this folder | |
cache = EcephysProjectCache.from_warehouse(manifest=manifest_path) ##Declares the cache object to be called later. | |
#sessions = cache._get_sessions() | |
cell_ids_df = cache.get_session_table() ## Returns a session table csv, Its huge and takes ~10min to download the first time. |
This file contains 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
""" | |
======================== | |
MATPLOTLIB **UNCHAINED** | |
======================== | |
Orignal Author: Nicolas P. Rougier | |
This is a modified version. |