Skip to content

Commit

Permalink
Clongdouble alias (#713)
Browse files Browse the repository at this point in the history
* add alias to support non-linux

Manually import clongdouble as complex256 because the alias exists only on linux x86_64

* ignore automatically generated file

The poisson_camma_mixtures.c file is always generated automatically. Let's ignore it in git.
  • Loading branch information
atrettin authored Dec 9, 2022
1 parent ead50b8 commit 853a689
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ pisa.egg-info

# IPython notebook backups
.ipynb_checkpoints
pisa/utils/llh_defs/poisson_gamma_mixtures.c
5 changes: 4 additions & 1 deletion pisa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
float32, float64,
int0, int8, int16, int32, int64,
uint0, uint8, uint16, uint32, uint64,
complex64, complex128, complex256,
complex64, complex128
)
# The alias only exists on Linux x86_64, see
# https://numpy.org/devdocs/reference/arrays.scalars.html#numpy.clongdouble
from numpy import clongdouble as complex256
import numpy as np
from pint import UnitRegistry

Expand Down

0 comments on commit 853a689

Please sign in to comment.