test_inpaint_equivalence.py
..
----------------------------------------------------------------------
Ran 2 tests in 1.908s
OK
(.conda) user@user-NUC8i7BEH:~/Documents/repos/OpenOpticalFlow_PIV_v1$ /home/user/Documents/repos/OpenOpticalFlow_PIV_v1/.conda/bin/python /home/user/Documents/repos/OpenOpticalFlow_PIV_v1/test_inpaint_equivalence.py
..
----------------------------------------------------------------------
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import numpy as np | |
| from matplotlib import pyplot as plt | |
| from typing import Optional, Tuple, Union | |
| def nhist_scipy( | |
| y: np.ndarray, | |
| bins: Union[int, np.ndarray] = 20, | |
| plot: bool = True, | |
| density: bool = True, | |
| kde: bool = False | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM ubuntu:20.04 as builder | |
| FROM python:3.10.7 | |
| # Create a user to run the application | |
| RUN apt-get update && \ | |
| apt-get -y install sudo | |
| RUN useradd -ms /bin/bash docker && echo "docker:docker" | chpasswd && adduser docker sudo | 
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import numpy as np | |
| from scipy.interpolate import RBFInterpolator | |
| import matplotlib.pyplot as plt | |
| import matplotlib.colors as mcolors | |
| def process_frames_average(particles, N, corner_m, fps, max_frames=None): | |
| """ | |
| Process multiple frames to create average velocity maps. | |
| Args: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import pandas as pd | |
| from flowtracks.scene import Scene | |
| import numpy as np | |
| h5_name = r'../corner_51.h5' | |
| particles = Scene(h5_name) | |
| ids = particles.trajectory_ids() | |
| dataframes = [] | 
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    NewerOlder
        