- 
                Notifications
    
You must be signed in to change notification settings  - Fork 67
 
Release Delphi Epidata 4.1.37 #1682
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
          
     Merged
      
      
    
                
     Merged
            
            
          
      
        
          +1,668
        
        
          −345
        
        
          
        
      
    
  
Conversation
  
    
      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
    
  
  
    
    chore: sync main->dev
Update Google Docs Meta Data
* initial switch to new API endpoint; doesn't account for format change * separate fetch fn for whole api obj * get_current_issue to use existing json response * cleanup names and comments - rename input arg to `update` to avoid reassignment later - comment and reuse args_insert - spelling - comment magic constant used in output format - rename location-network/catchmentid map * store extracted rates by strata name rather than position Previously, age strata were numbered sequentially which allowed us to store rate values by position in a list. With the introduction of the new strata, this system is not robust enough to track all the different groups (e.g. ageids are no longer sequential and there are now race and sex groupings with separate numbering systems). * define function to convert json obs to dict grouped by location and epiweek * auto-map from valueids to ordinal and label-based group names * add new strata to sql insert statement by name, not order * pass seasonids around to use in requests for location-specific data * include old and new example API responses * flusurv tests * pass metadata around to reduce API calls * add season label as a descriptive column * move example API responses to make it clear they are not for prod use * add new columns to flusurv endpoint spec * add new age, sex, race strata, and season to schema * list new signals in documentation * move new season column to end of table * add migration script to add new fields to flusurv table * add field descriptions; reformat table so don't need to match line lengths * point from acquisition script to docs and schema def to deduplicate * review cleanup * capitalize constant max_age * move paren to subtract from # of dates Co-authored-by: melange396 <[email protected]> * move n_exected_groups and big groupid comment to global * convert asserts to if-raise * for robust group checking, list all expected groups and do set diff * separate data fetching fns into metadata and location classes * programmatically create location-networkid map; create constants file * switch missing data assert to exception * mock metadata and api objs for tests * stop doing recent season filtering Catchment metadata is not updated with most recent season, so doing this will stop us from fetching data. * warn when no location data returned * test metadata attributes together * correct local module name to load classes from * map some long race groups to abbreviated names * programmatically create sql query to avoid ordering issues * return empty result with right format when no data available * warning prefix * add tests for geo-abbr conversion and location fetching * don't error for missing groups -- some are expected * fn to add empty sex breakdowns to UT * with UT sex subsets getting filled, error on missing groups again * Update flusurv schema and docs with new age, sex, and race groups (#1287) * add new columns to flusurv endpoint spec * add new age, sex, race strata, and season to schema * list new signals in documentation * move new season column to end of table * add migration script to add new fields to flusurv table * add field descriptions; reformat table so don't need to match line lengths * point from acquisition script to docs and schema def to deduplicate * Revert "Update flusurv schema and docs with new age, sex, and race groups" (#1426) This reverts commit 9de7d64. * add new age rate signals * add new columns to flusurv endpoint spec * add schema migration script * move base url to constants * add max age as CLI arg * add flu a/b to DB table * hardcode valueid->signal name; add flu signals * remove ordinal conditional blocks from _groupid_to_name definition * add back female col to sql schema * make error types more specific * add new cols to integration test * remove trailing comma * specify flusurv return fields * warn on unexpected or missing keys and fill in * use unexpected key's ids as suffix; drop UT sex group handling * cast ids to str * drop trailing location * comments and cleanup * cast CLI args to types * note format issue in reference JSONs; rename metadata methods for clarity * filter weeks with user-provided age threshold * add season field to test --------- Co-authored-by: melange396 <[email protected]>
          
 | 
    
              
                    melange396
  
              
              approved these changes
              
                  
                    Nov 3, 2025 
                  
              
              
            
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  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.
  
    
  
    


Releasing Delphi Epidata 4.1.37.
Includes:
flusurvAPI endpoint #1278 (requires migration of theflusurvtable, which was just done)