From ea705359844164b1e7e55ae80f0ca1bc9ed57ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Sun, 29 Sep 2024 13:28:44 +0200 Subject: [PATCH] Update config variable names --- config/config.h.in | 8 ++++---- src/Discretizer.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config.h.in b/config/config.h.in index 24ae281..e365b31 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -7,7 +7,7 @@ #define PROJECT_VERSION_MINOR @PROJECT_VERSION_MINOR @ #define PROJECT_VERSION_PATCH @PROJECT_VERSION_PATCH @ -static constexpr std::string_view project_name = "@PROJECT_NAME@"; -static constexpr std::string_view project_version = "@PROJECT_VERSION@"; -static constexpr std::string_view project_description = "@PROJECT_DESCRIPTION@"; -static constexpr std::string_view git_sha = "@GIT_SHA@"; \ No newline at end of file +static constexpr std::string_view project_mdlp_name = "@PROJECT_NAME@"; +static constexpr std::string_view project_mdlp_version = "@PROJECT_VERSION@"; +static constexpr std::string_view project_mdlp_description = "@PROJECT_DESCRIPTION@"; +static constexpr std::string_view git_mdlp_sha = "@GIT_SHA@"; \ No newline at end of file diff --git a/src/Discretizer.h b/src/Discretizer.h index 27647f1..16fccb7 100644 --- a/src/Discretizer.h +++ b/src/Discretizer.h @@ -30,7 +30,7 @@ namespace mdlp { void fit_t(const torch::Tensor& X_, const torch::Tensor& y_); torch::Tensor transform_t(const torch::Tensor& X_); torch::Tensor fit_transform_t(const torch::Tensor& X_, const torch::Tensor& y_); - static inline std::string version() { return { project_version.begin(), project_version.end() };; }; + static inline std::string version() { return { project_mdlp_version.begin(), project_mdlp_version.end() };; }; protected: labels_t discretizedData = labels_t(); cutPoints_t cutPoints; // At least two cutpoints must be provided, the first and the last will be ignored in transform