- 
                Notifications
    You must be signed in to change notification settings 
- Fork 20
Bug fix and enhancement of pedestal tool plus scripts to analyse thermal tests data #230
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
      
      
            tibaldo
  wants to merge
  27
  commits into
  cta-observatory:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
tibaldo:thermaltests_pedestal_scripts
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
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
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            27 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      3d73d96
              
                create pedestal containers from r0 data
              
              
                tibaldo 2d258a9
              
                plotting script
              
              
                tibaldo 2b96815
              
                Fix method to compute RMS of combined sample
              
              
                tibaldo 86059c0
              
                test
              
              
                tibaldo 513ce52
              
                use a simpler, more readable way to compute combined statistics of mu…
              
              
                tibaldo 4029ca0
              
                add charge arrays to pedestal container and make code for multisample…
              
              
                tibaldo 21cbe16
              
                enhance pedestal component/tool so that also statistics for charge ar…
              
              
                tibaldo c36c2a6
              
                Fix bug in ChargeDistributionFilter for pedestal maker (#213)
              
              
                tibaldo 7eb6329
              
                enhance pedestal component/tool so that also statistics for charge ar…
              
              
                tibaldo 79033a7
              
                Fix bug in ChargeDistributionFilter for pedestal maker (#213)
              
              
                tibaldo e40c795
              
                enhance pedestal component/tool so that also statistics for charge ar…
              
              
                tibaldo 2c24faf
              
                Fix bug in ChargeDistributionFilter for pedestal maker (#213)
              
              
                tibaldo e7d4ba4
              
                Merge branch 'cta-observatory:main' into thermaltests_pedestal_scripts
              
              
                tibaldo 0c894a0
              
                reapply changes after botched rebase
              
              
                tibaldo 30ac378
              
                fix docstring
              
              
                tibaldo 072bf1d
              
                Add tests fro new functionalities in pedestal tool tests
              
              
                tibaldo b08bd3d
              
                fix example script used in doc
              
              
                tibaldo 8ab320e
              
                scripts to study pedestal variation with temperature
              
              
                tibaldo ca7c410
              
                script to plot results as a function of NSB source current
              
              
                tibaldo 296de84
              
                correction to plot labels
              
              
                tibaldo 71a5384
              
                improved script for NSB rate/temperature dependence
              
              
                tibaldo 7cd5353
              
                Avoid using hardcoded values in multiple places for number of camera …
              
              
                jlenain e92ac21
              
                Replace .format with f-strings
              
              
                jlenain 23eaa32
              
                Use of recommended environment variables (see https://nectarchain.rea…
              
              
                jlenain ea18449
              
                Rationalized use of constants (number of camera pixels)
              
              
                jlenain 8615dba
              
                Replace .format by f-strings
              
              
                jlenain 4cdec61
              
                Fix docstring for docs CI
              
              
                jlenain 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
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  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.
Hi @tibaldo !
I was wondering whether this static method is really needed. To my understanding,
numpyalready offers the possibility to compute the mean and standard deviations when input with several arrays, see e.g. https://stackoverflow.com/a/18461943. I think the same should apply tonumpy.std.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.
Hi @jlenain, thanks a lot for reviewing the PR and for the fixes you made in several places. I'm going to undraft it so that when we have solved this pending item it can be merged.
The method
mean_std_multisamplecalculates the mean and standard deviation of a combined sample from the aggregated statistics (means and standard deviations) of multiple subsamples. To my knowledgenumpy.meanandnumpy.stdalways operate directly on raw data (it is the case in the stack overflow thread you linked if I understand it correctly) — they can’t combine aggregated statistics.If you know a numpy function that calculates the mean and standard deviation of a combined sample from the aggregated statistics of multiple subsamples could you please point me to it?