bugs
This commit is contained in:
@@ -32,7 +32,12 @@ from pymses.analysis import (
|
|||||||
from pymses.filters import CellsToPoints, RegionFilter
|
from pymses.filters import CellsToPoints, RegionFilter
|
||||||
from pymses.sources.hop.hop import HOP
|
from pymses.sources.hop.hop import HOP
|
||||||
|
|
||||||
from fil_finder import FilFinder2D
|
try:
|
||||||
|
from fil_finder import FilFinder2D
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
print("WARNING: No filFinder support")
|
||||||
|
|
||||||
|
|
||||||
from scipy import fft
|
from scipy import fft
|
||||||
from scripts import pspec as pspec
|
from scripts import pspec as pspec
|
||||||
|
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ class RunSelector:
|
|||||||
def try_load_info(num):
|
def try_load_info(num):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# -- Time getter according to unit_times
|
# -- Time getter according to unit_time
|
||||||
if unit_time is None:
|
if unit_time is None:
|
||||||
|
|
||||||
def get_time(num):
|
def get_time(num):
|
||||||
@@ -437,13 +437,13 @@ class RunSelector:
|
|||||||
nums = []
|
nums = []
|
||||||
|
|
||||||
# -- Select according to time --
|
# -- Select according to time --
|
||||||
if time_min is not None:
|
if time_min is not None and len(nums) > 0:
|
||||||
imin = search(nums, time_min, "right")
|
imin = search(nums, time_min, "right")
|
||||||
if imin is not None:
|
if imin is not None:
|
||||||
nums = nums[imin:]
|
nums = nums[imin:]
|
||||||
else:
|
else:
|
||||||
nums = []
|
nums = []
|
||||||
if time_max is not None:
|
if time_max is not None and len(nums) > 0:
|
||||||
imax = search(nums, time_max, "left")
|
imax = search(nums, time_max, "left")
|
||||||
if imax is not None:
|
if imax is not None:
|
||||||
nums = nums[: imax + 1]
|
nums = nums[: imax + 1]
|
||||||
|
|||||||
Reference in New Issue
Block a user