Skip to content

Commit

Permalink
Move headers to include/s2let
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavezac committed Oct 16, 2020
1 parent cd6b48c commit af199b4
Show file tree
Hide file tree
Showing 56 changed files with 37 additions and 42 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Expand Up @@ -3,5 +3,5 @@ include setup.py setup.cfg pyproject.toml
include COPYRIGHT.txt LICENSE.md README.md
include cmake/*.cmake
recursive-include src/main/c *.c CMakeLists.txt
recursive-include include *.h
recursive-include include/s2let *.h
recursive-include src/main/pys2let .py *.pyx *.md CMakeLists.txt
7 changes: 4 additions & 3 deletions conanfile.py
@@ -1,4 +1,4 @@
from conans import ConanFile, CMake
from conans import CMake, ConanFile


class S2letConan(ConanFile):
Expand All @@ -16,7 +16,7 @@ class S2letConan(ConanFile):
exports_sources = [
"src/main/c/*",
"src/test/c/*",
"include/*",
"include/s2let/*",
"CMakeLists.txt",
"cmake/*.cmake",
]
Expand All @@ -31,7 +31,8 @@ def configure(self):
del self.settings.compiler.libcxx

def requirements(self):
self.requires("so3/1.3.0@astro-informatics/stable")
location = "astro-informatics/stable" if self.in_local_cache else "user/testing"
self.requires(f"so3/1.3.0@{location}")
if self.options.with_cfitsio:
self.requires("cfitsio/3.480")

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 3 additions & 9 deletions src/main/c/CMakeLists.txt
Expand Up @@ -11,7 +11,6 @@ set(C_SRC
s2let_helper.c
s2let_analysis.c
s2let_analysis_adjoint.c)
set(HEADER_PREFIX ${PROJECT_SOURCE_DIR}/include)
set(C_HEADERS
s2let.h
s2let_error.h
Expand Down Expand Up @@ -39,11 +38,12 @@ set(C_HEADERS
if(cfitsio)
list(APPEND C_SRC s2let_fits.c)
endif()
list(TRANSFORM C_HEADERS PREPEND "${PROJECT_SOURCE_DIR}/include/")
list(TRANSFORM C_HEADERS PREPEND "${PROJECT_SOURCE_DIR}/include/s2let")

add_library(s2let STATIC ${C_SRC})
target_link_libraries(s2let PUBLIC ${SO3_TARGET} ${CFITSIO_TARGET})
set_target_properties(s2let PROPERTIES C_STANDARD 99)
set_target_properties(s2let PROPERTIES C_STANDARD 99 ARCHIVE_OUTPUT_DIRECTORY
${PROJECT_BINARY_DIR}/lib)
target_include_directories(
s2let PUBLIC $<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)
Expand All @@ -52,12 +52,6 @@ if(fPIC)
endif()

if(NOT python)
add_executable(s2let_about s2let_about.c)
target_compile_definitions(
s2let_about PRIVATE S2LET_VERSION="${PROJECT_VERSION}" S2LET_BUILD="CMake")
set_target_properties(s2let_about PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${PROJECT_BINARY_DIR})

install(
TARGETS s2let
EXPORT S2letTargets
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_alloc.c
Expand Up @@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Allocate map for a complex signal in pixel space using MW sampling.
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_analysis.c
Expand Up @@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Wavelet analysis from harmonic space to Wigner space for complex signals.
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_analysis_adjoint.c
Expand Up @@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Wavelet analysis adjoint from Wigner space to harmonic space for complex signals.
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_axisym_denoising_demo.c
Expand Up @@ -11,7 +11,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

void s2let_lm_random_flm_real_sigma(
complex double *flm, int L, int seed, double sigmanoise) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_denoising_demo.c
Expand Up @@ -11,7 +11,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

void s2let_lm_random_flm_real_sigma(
complex double *flm, int L, int seed, double sigmanoise) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_fits.c
Expand Up @@ -4,7 +4,7 @@

#include <fitsio.h>

#include "s2let.h"
#include "s2let/s2let.h"

void printerror(int status) {
if (status) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_helper.c
@@ -1,6 +1,6 @@
#include <ssht/ssht.h>

#include "s2let.h"
#include "s2let/s2let.h"

int s2let_n_phi(const s2let_parameters_t *parameters) {
if (parameters->sampling_scheme == S2LET_SAMPLING_MW_SS)
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_hpx.c
Expand Up @@ -6,7 +6,7 @@
#include <ssht/ssht.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

// Fortran interfaces to Healpix F90 library ; see s2let_hpx.f90
extern void healpix_inverse_real_();
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_hpx_demo.c
Expand Up @@ -11,7 +11,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* PROGRAM : s2let_hpx_demo
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_idl_hpx.c
Expand Up @@ -2,7 +2,7 @@
// Copyright (C) 2012
// Boris Leistedt & Jason McEwen

#include "s2let.h"
#include "s2let/s2let.h"

/*
* IDL integer types. For historical reasons, we use UCHAR for TYP_BYTE
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_idl_mw.c
Expand Up @@ -2,7 +2,7 @@
// Copyright (C) 2012
// Boris Leistedt & Jason McEwen

#include "s2let.h"
#include "s2let/s2let.h"

/*
* IDL integer types. For historical reasons, we use UCHAR for TYP_BYTE
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_lm.c
Expand Up @@ -9,7 +9,7 @@
#include <stdlib.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Compute power for a signal in harmonic space.
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_math.c
Expand Up @@ -7,7 +7,7 @@
#include <stdlib.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Tiling function for S2DW wavelets
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_mw.c
Expand Up @@ -7,7 +7,7 @@
#include <ssht/ssht.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Interface to SSHT (required by the Java interface to S2LET)
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_spin_denoising_demo.c
Expand Up @@ -10,7 +10,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

void s2let_lm_random_flm_sigma(
complex double *flm, int L, int spin, int seed, double sigmanoise) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_synthesis.c
Expand Up @@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Wavelet synthesis from Wigner space to harmonic space for complex signals.
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_synthesis_adjoint.c
Expand Up @@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Wavelet synthesis adjoint from harmonic space to Wigner space for complex signals.
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_tiling.c
Expand Up @@ -6,7 +6,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_transform_axisym_analysis_hpx_real.c
Expand Up @@ -10,7 +10,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* PROGRAM : s2let_transform_axisym_hpx_analysis_real
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_transform_axisym_analysis_mw_real.c
Expand Up @@ -10,7 +10,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* PROGRAM : s2let_transform_axisym_mw_analysis_real
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_transform_axisym_hpx.c
Expand Up @@ -5,7 +5,7 @@
#include <complex.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

void s2let_transform_axisym_allocate_hpx_f_wav_real(
double **f_wav, double **f_scal, int nside, const s2let_parameters_t *parameters) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_transform_axisym_lm.c
Expand Up @@ -6,7 +6,7 @@
#include <math.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

static inline int lm2ind(int el, int m) { return el * el + el + m; }

Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_transform_axisym_mw.c
Expand Up @@ -7,7 +7,7 @@
#include <ssht/ssht.h>
#include <stdlib.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* Allocates arrays for final wavelets and scaling functions in pixel space (MW
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_transform_axisym_synthesis_hpx_real.c
Expand Up @@ -10,7 +10,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* PROGRAM : s2let_transform_axisym_hpx_synthesis_real
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/s2let_transform_axisym_synthesis_mw_real.c
Expand Up @@ -10,7 +10,7 @@
#include <string.h>
#include <time.h>

#include "s2let.h"
#include "s2let/s2let.h"

/*!
* PROGRAM : s2let_transform_axisym_mw_synthesis_real
Expand Down
2 changes: 1 addition & 1 deletion src/test/c/test_adjoint.c
Expand Up @@ -2,7 +2,7 @@
#include <stdarg.h>
#include <stddef.h>

#include "s2let.h"
#include "s2let/s2let.h"

#include <cmocka.h>

Expand Down
2 changes: 1 addition & 1 deletion src/test/c/test_axisym_vs_directional.c
Expand Up @@ -2,7 +2,7 @@
#include <stdarg.h>
#include <stddef.h>

#include "s2let.h"
#include "s2let/s2let.h"

#include <cmocka.h>

Expand Down
2 changes: 1 addition & 1 deletion src/test/c/test_back_and_forth.c
Expand Up @@ -2,7 +2,7 @@
#include <stdarg.h>
#include <stddef.h>

#include "s2let.h"
#include "s2let/s2let.h"

#include <cmocka.h>

Expand Down
2 changes: 1 addition & 1 deletion src/test/c/test_tiling.c
Expand Up @@ -2,7 +2,7 @@
#include <stdarg.h>
#include <stddef.h>

#include "s2let.h"
#include "s2let/s2let.h"

#include <cmocka.h>

Expand Down

0 comments on commit af199b4

Please sign in to comment.