File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,13 @@ def generate_linked_table(model: str):
6565    examples_df  =  pd .read_csv (example_file , quoting = 1 ).fillna ("" )
6666
6767    # First select only the columns we want from annotation_df 
68-     df  =  annotation_df [
69-         [
70-             "Attribute" ,
71-             "Description" ,
72-             "Required" ,
73-             "Validation Rules" ,
74-             "Valid Values" ,
75-         ]
76-     ]
68+     df  =  annotation_df [[
69+         "Attribute" ,
70+         "Description" ,
71+         "Required" ,
72+         "Validation Rules" ,
73+         "Valid Values" ,
74+     ]]
7775
7876    # Then add the Example column and rename it to Examples 
7977    df  =  df .merge (
@@ -102,9 +100,8 @@ def generate_valid_values_markdown(model: str):
102100    """Generate docs page for standard terms of the given data model.""" 
103101    dest_parent_dir  =  join ("docs" , "valid_values" )
104102
105-     with  open (join ("modules" , MAPPING_FILENAME )) as  f , open (
106-         join (dest_parent_dir , f"{ model }  ), "w" 
107-     ) as  md :
103+     with  open (join ("modules" , MAPPING_FILENAME )) as  f , \
104+          open (join (dest_parent_dir , f"{ model }  ), "w" ) as  md :
108105        mapping  =  yaml .safe_load (f )
109106
110107        # Create a section in the docs page for each attribute that has a list 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments