using pathlib based local module import (#722)

* using pathlib based local module import

* remove unused import
This commit is contained in:
Atsushi Sakai
2022-09-11 07:21:37 +09:00
committed by GitHub
parent 1ff3095c14
commit 76b0d04a3c
39 changed files with 142 additions and 245 deletions

View File

@@ -9,10 +9,9 @@ Ensemble Kalman filtering
(https://rmets.onlinelibrary.wiley.com/doi/10.1256/qj.05.135)
"""
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../utils/")
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
import math
import matplotlib.pyplot as plt

View File

@@ -5,10 +5,9 @@ Extended kalman filter (EKF) localization sample
author: Atsushi Sakai (@Atsushi_twi)
"""
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../utils/")
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
import math
import matplotlib.pyplot as plt

View File

@@ -6,8 +6,8 @@ author: Atsushi Sakai (@Atsushi_twi)
"""
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../utils/")
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
import math

View File

@@ -7,8 +7,8 @@ author: Atsushi Sakai (@Atsushi_twi)
"""
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../utils/")
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
import math