Skip to content

Commit

Permalink
Move healpy import to mitigate windows issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bfhealy committed Apr 10, 2024
1 parent 10421ad commit 0d7709d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scope/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from astropy.io import fits
import datetime
import json
import healpy as hp
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
Expand Down Expand Up @@ -480,6 +479,9 @@ def plot_gaia_density(
source: https://vlas.dev/post/gaia-dr2-hrd/
"""
# import healpy here to avoid windows issues
import healpy as hp

# plot the H-R diagram for 1 M stars within 200 pc from the Sun
plt.rc("text", usetex=True)

Expand Down

0 comments on commit 0d7709d

Please sign in to comment.