From 92ccd235d997f950f4080ff7cf0de8e1a5a1ef72 Mon Sep 17 00:00:00 2001 From: ShisatoYano Date: Wed, 4 Dec 2024 15:10:49 +0000 Subject: [PATCH] import cubic spline 2d class for course creation --- .../cubic_spline_course/cubic_spline_course.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/components/course/cubic_spline_course/cubic_spline_course.py b/src/components/course/cubic_spline_course/cubic_spline_course.py index f67a061..fffb4f9 100644 --- a/src/components/course/cubic_spline_course/cubic_spline_course.py +++ b/src/components/course/cubic_spline_course/cubic_spline_course.py @@ -3,3 +3,17 @@ Author: Shisato Yano """ + +# import path setting +import sys +from pathlib import Path + +abs_dir_path = str(Path(__file__).absolute().parent) +relative_path = "/../../../components/" + +sys.path.append(abs_dir_path + relative_path + "course/cubic_spline_course") + +#import component modules +from cubic_spline_2d import CubicSpline2D + +print(CubicSpline2D)