Skip to content

Commit

Permalink
More compatibility fixes with the example code in the paper.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpparvi committed Jul 24, 2020
1 parent fe8ac97 commit c5aaffc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pytransit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
from .models.ma_uniform import UniformModel
from .models.ma_chromosphere import ChromosphereModel
from .models.general import GeneralModel
from .models.swiftmodel import SwiftModel
from .models.swiftmodel import SwiftModel, SwiftModel as SWIFTModel

# OpenCL models
# -------------
from .models.qpower2_cl import QPower2ModelCL
from .models.ma_quadratic_cl import QuadraticModelCL
from .models.ma_uniform_cl import UniformModelCL
from .models.swiftmodel_cl import SwiftModelCL
from .models.swiftmodel_cl import SwiftModelCL, SwiftModelCL as SWIFTModelCL

from .models.ldtkldm import LDTkLDModel, LDTkLD

Expand Down
8 changes: 4 additions & 4 deletions pytransit/models/ldtkldm.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def _integrate(self, x: ndarray) -> ndarray:


class LDTkLDModel(LDModel):
def __init__(self, teff: Tuple[float, float], logg: Tuple[float, float], z: Tuple[float, float], pbs: Tuple,
nsamples: int = 500, frozen: bool = False, cache: Optional[Union[str, Path]] = None, lowres: bool = True):
def __init__(self, pbs: Tuple, teff: Tuple[float, float], logg: Tuple[float, float], z: Tuple[float, float],
samples: int = 500, frozen: bool = False, cache: Optional[Union[str, Path]] = None, lowres: bool = True):
super().__init__()
self._sc = LDPSetCreator(teff, logg, z, pbs, cache=cache, lowres=lowres)
self._ps = self._sc.create_profiles(nsamples)
self._ps = self._sc.create_profiles(samples)
self._i = 0

self.npb = len(pbs)
self.nsamples = nsamples
self.nsamples = samples
self.frozen = frozen
self.z = self._ps._z
self.mu = self._ps._mu
Expand Down

0 comments on commit c5aaffc

Please sign in to comment.