- 
                Notifications
    
You must be signed in to change notification settings  - Fork 11
 
Validate 3D metrics #261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            Anirudh-Scale
  wants to merge
  16
  commits into
  master
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
metrics_3d
  
      
      
   
  
    
  
  
  
 
  
      
    base: master
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Open
                    Validate 3D metrics #261
Changes from 1 commit
      Commits
    
    
            Show all changes
          
          
            16 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      d23b075
              
                new 3d metrics
              
              
                Anirudh-Scale fc5764b
              
                flake fix
              
              
                Anirudh-Scale d380204
              
                lint
              
              
                Anirudh-Scale ee4cfc0
              
                linting for circle ci
              
              
                Anirudh-Scale c833bb7
              
                version
              
              
                Anirudh-Scale 1dfbb07
              
                used native polygon
              
              
                Anirudh-Scale aef31c9
              
                adding shapely
              
              
                Anirudh-Scale 9157287
              
                adding shapely
              
              
                Anirudh-Scale 408073f
              
                changing shapely
              
              
                Anirudh-Scale 09fc5d4
              
                changing shapely
              
              
                Anirudh-Scale 0550b51
              
                updating shapely
              
              
                Anirudh-Scale bb3ba8f
              
                poetry added shapely
              
              
                Anirudh-Scale fb15d1b
              
                edge case
              
              
                Anirudh-Scale ebf3a5a
              
                np type
              
              
                Anirudh-Scale 180fee7
              
                Merge branch 'master' into metrics_3d
              
              
                sasha-scale 4a79d13
              
                Merge branch 'metrics_3d' of github.com:scaleapi/nucleus-python-clien…
              
              
                sasha-scale File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
      
      Oops, something went wrong.
      
    
  
  
    
      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
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gatli didn't we run into problems with Shapely at some point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, we can't use it. It doesn't have wide enough binary support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what should we do about this? @Anirudh-Scale how much do we rely in the shapely dependency? Any chance we can get around this? If not, @gatli how can we still make this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pfmark I can implement a function to calculate the area intersection without Shapely, it's just going to be significantly slower. If that's a trade-off we're ok with, I can do that.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's already a function for polygon area intersection in the directory under
geometry.py. I'd suggest using that since it looks like you're using shapely only for polygon intersection area.Edit: it looks like the native polygon was used originally before changing to shapely? The native polygon intersection function is quite slow since it's written in Python, but there's a speed up for convex polygons