From f164f74246960926ee63fee63f9e958678fbfdc9 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Thu, 10 Dec 2020 21:53:44 +0100 Subject: [PATCH] mv Examples/Python/utils to devtools/view --- Tests/Functional/Core/Std/Check.cpp | 6 +++--- cmake/BornAgain/Config.cmake | 5 ----- {Examples/Python/utils => devtools/view}/plot_diff_int.py | 0 {Examples/Python/utils => devtools/view}/plot_int.py | 0 .../utils/show2d.py => devtools/view/plot_numpy_array.py | 0 5 files changed, 3 insertions(+), 8 deletions(-) rename {Examples/Python/utils => devtools/view}/plot_diff_int.py (100%) rename {Examples/Python/utils => devtools/view}/plot_int.py (100%) rename Examples/Python/utils/show2d.py => devtools/view/plot_numpy_array.py (100%) diff --git a/Tests/Functional/Core/Std/Check.cpp b/Tests/Functional/Core/Std/Check.cpp index d66137a610f..204cf538d0a 100644 --- a/Tests/Functional/Core/Std/Check.cpp +++ b/Tests/Functional/Core/Std/Check.cpp @@ -59,10 +59,10 @@ bool checkSimulation(const std::string& name, const ISimulation& direct_simulati std::string out_fname = FileSystemUtils::jointPath(BATesting::TestOutDir_Std(), name + ".int.gz"); IntensityDataIOFactory::writeOutputData(*result_data, out_fname); - std::cout << "Notes:\n- to visualize an intensity map, use " << BABuild::buildBinDir() - << "/plot_int.py\n" + std::cout << "Notes:\n- to visualize an intensity map, use " + << "devtools/view/plot_int.py\n" << "- to plot a difference image, use " << BABuild::buildBinDir() - << "/plot_diff_int.py\n" + << "devtools/view/plot_diff_int.py\n" << "- if the new simulation result\n" << out_fname << "\n" << " is correct, then move it to the reference directory\n" diff --git a/cmake/BornAgain/Config.cmake b/cmake/BornAgain/Config.cmake index 072c1cd8660..bb905cbb5d2 100644 --- a/cmake/BornAgain/Config.cmake +++ b/cmake/BornAgain/Config.cmake @@ -23,11 +23,6 @@ configure_file(${CONFIGURABLES_DIR}/BABuild.h.in ${BUILD_INC_DIR}/BABuild.h @ON configure_file(${CONFIGURABLES_DIR}/BATesting.h.in ${BUILD_INC_DIR}/BATesting.h @ONLY) string(APPEND CMAKE_CXX_FLAGS " -I${BUILD_INC_DIR}") -configure_file(${CMAKE_SOURCE_DIR}/Examples/Python/utils/plot_int.py - ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/plot_int.py COPYONLY) -configure_file(${CMAKE_SOURCE_DIR}/Examples/Python/utils/plot_diff_int.py - ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/plot_diff_int.py COPYONLY) - # ----------------------------------------------------------------------------- # configure BornAgain launch scripts # ----------------------------------------------------------------------------- diff --git a/Examples/Python/utils/plot_diff_int.py b/devtools/view/plot_diff_int.py similarity index 100% rename from Examples/Python/utils/plot_diff_int.py rename to devtools/view/plot_diff_int.py diff --git a/Examples/Python/utils/plot_int.py b/devtools/view/plot_int.py similarity index 100% rename from Examples/Python/utils/plot_int.py rename to devtools/view/plot_int.py diff --git a/Examples/Python/utils/show2d.py b/devtools/view/plot_numpy_array.py similarity index 100% rename from Examples/Python/utils/show2d.py rename to devtools/view/plot_numpy_array.py -- GitLab