Skip to content

Commit

Permalink
Adding .database dir on rtd/gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Oct 7, 2021
1 parent 3e13836 commit 59f1e39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jaxon/spectrum.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

import numpy as np
from jax import numpy as jnp, jit
from astropy.modeling.models import BlackBody
Expand Down Expand Up @@ -45,12 +47,12 @@
from .tp import get_Tarr
from .continuum import dtauHminusCtm

import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
on_github = os.environ.get('GITHUB_ACTIONS', None) == 'True'

if on_rtd or on_github:
prefix = ''
os.makedirs(".database")
else:
prefix = '/Users/brettmorris/git/exojax/'

Expand Down

0 comments on commit 59f1e39

Please sign in to comment.