diff --git a/tests/test_pipeline.txt b/tests/test_pipeline.txt index 31e70c0f..0613c2fc 100644 --- a/tests/test_pipeline.txt +++ b/tests/test_pipeline.txt @@ -17,6 +17,7 @@ pip install pygeodesic -U pip install pygmsh -U pip install pyacvd -U pip install pymeshfix -U +pip install pymeshlab -U pip install tetgen -U pip install pyshtools -U pip install trimesh -U @@ -34,6 +35,7 @@ cd $VDIR/examples && time ./run_all.sh 2>&1 | tee $VLOGFILE grep -aA 1 "Error" $VLOGFILE grep -aA 3 "Trace" $VLOGFILE +grep -aA 3 "failure" $VLOGFILE code $VLOGFILE #### inspect logfile # (Try normal run too with visualization to make sure all is ok) diff --git a/vedo/cli.py b/vedo/cli.py index bf301988..23540643 100644 --- a/vedo/cli.py +++ b/vedo/cli.py @@ -798,7 +798,7 @@ def draw_scene(args): args.color = "gold" plt = applications.IsosurfaceBrowser( vol, c=args.color, cmap=args.cmap, - precompute=False, progress=True, use_gpu=True, + precompute=False, use_gpu=True, ) plt.show(zoom=args.zoom, viewup="z") return diff --git a/vedo/file_io.py b/vedo/file_io.py index 7ad6e81c..2444154b 100644 --- a/vedo/file_io.py +++ b/vedo/file_io.py @@ -440,6 +440,7 @@ def _load_file(filename, unpack): actor.file_size, actor.created = file_info(filename) return actor + ######################################################################## def download(url, to_local_file="", force=False, verbose=True): """ @@ -450,7 +451,8 @@ def download(url, to_local_file="", force=False, verbose=True): The URL to download the file from. to_local_file : (str) The local file name to save the file to. - If not specified, the file name will be the same as the remote file name. + If not specified, the file name will be the same as the remote file name + in the directory specified by `settings.cache_directory + "/vedo"`. force : (bool) Force a new download even if the local file is up to date. verbose : (bool) @@ -466,6 +468,11 @@ def download(url, to_local_file="", force=False, verbose=True): from datetime import datetime import requests + url = url.replace("www.dropbox", "dl.dropbox") + + if "github.com" in url: + url = url.replace("/blob/", "/raw/") + # Get the user's home directory home_directory = os.path.expanduser("~") @@ -477,7 +484,10 @@ def download(url, to_local_file="", force=False, verbose=True): os.makedirs(cachedir) if not to_local_file: - to_local_file = os.path.join(cachedir, os.path.basename(url)) + basename = os.path.basename(url) + if "?" in basename: + basename = basename.split("?")[0] + to_local_file = os.path.join(cachedir, basename) if verbose: print(f"Using local file name: {to_local_file}") # Check if the local file exists and get its last modified time diff --git a/vedo/plotter.py b/vedo/plotter.py index 23196032..2871a29d 100644 --- a/vedo/plotter.py +++ b/vedo/plotter.py @@ -4177,12 +4177,11 @@ def _keypress(self, iren, event): ob.add_scalarbar3d(title=arrnames[i]) self.add(ob.scalarbar) else: - vedo.printc(f"Active pointdata array: '{arrnames[i]}'", c="g", bold=0) - vedo.printc( - f"Name:'{ob.name}'," if ob.name else '', - f"active pointdata array: '{arrnames[i]}'", - c="g", bold=False, - ) + vedo.printc( + f"Name:'{ob.name}'," if ob.name else '', + f"active pointdata array: '{arrnames[i]}'", + c="g", bold=False, + ) elif key == "6": # cycle celldata array ob = self.clicked_object @@ -4230,12 +4229,11 @@ def _keypress(self, iren, event): ob.add_scalarbar3d(title=arrnames[i]) self.add(ob.scalarbar) else: - vedo.printc(f"Active celldata array: '{arrnames[i]}'", c="g", bold=0) - vedo.printc( - f"Name:'{ob.name}'," if ob.name else '', - f"active celldata array: '{arrnames[i]}'", - c="g", bold=False, - ) + vedo.printc( + f"Name:'{ob.name}'," if ob.name else '', + f"active celldata array: '{arrnames[i]}'", + c="g", bold=False, + ) elif key == "7": bgc = np.array(renderer.GetBackground()).sum() / 3