Closed piyanatk closed 4 years ago
Since the ctypes
implementation is working, @steven-murray suggested that we drop or postpone this issue and and instead focus on testing corrcal functions and developing Python branch. Agree, @ronniyjoseph ?
For my personal benefit I agree, i.e. understanding the behaviour of corrcal. A pythonic version of corrcal is most likely the easiest way to get a feel for how corrcal works.
Dropping this issue with PR https://github.com/UKZN-Astronomy/corrcal/pull/21 merged to master.
Following up from the discussion in #8 and what we learned from #10, it seems that switching from
ctypes
tocffi
will improve the wrapper interface and streamline the code compilation.All C libraries loading and wrapping codes that are currently declared as global variables in
corrcal.py
can be placed in abuild_cffi.py
script in the root directory of the repository. Then, we can use thecffi_modules
option withsetuptools
insetup.py
to streamline the compiling and wrapping of the C cod. This seems to be what is being done in the 21cmFAST repository, I think.I will fork from the restructure branch to investigate this.