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
# enviornment check specific to my computer (just change "spikes" to your environment) | |
import os | |
# checks if we're in the right conda environment | |
current_env = os.environ.get('CONDA_DEFAULT_ENV', 'unknown') | |
if current_env != 'spikes': | |
print(f'Detected incorrect environment: {current_env}') | |
print("Run 'conda activate spikes' first") |