original_docstring: 
          Because the whole point of estimation is to generate new coefficient values
          we want to make it easy to put the coefficients file back in configs
          So we make a point of preserving the same filename as the original config file
          
docstring: Because the whole point of estimation is to generate new coefficient values
  we want to make it easy to put the coefficients file back in configs
  So we make a point of preserving the same filename as the original config file
docstring_tokens: Because the whole point of estimation is to generate new coefficient values we want to make it easy to put the coefficients file back in configs So we make a point of preserving the same filename as the original config file
code: def write_coefficients(self, coefficients_df=None, model_settings=None, file_name=None):
          """
          Because the whole point of estimation is to generate new coefficient values
          we want to make it easy to put the coefficients file back in configs
          So we make a point of preserving the same filename as the original config file
          """
  
          if model_settings is not None:
              assert file_name is None
              file_name = model_settings['COEFFICIENTS']
  
          assert file_name is not None
  
          if coefficients_df is None:
              coefficients_df = simulate.read_model_coefficients(file_name=file_name)
  
          # preserve original config file name
          base_file_name = os.path.basename(file_name)
  
          assert self.estimating
          self.write_table(coefficients_df, base_file_name, append=False)
code_tokens: def write_coefficients ( self , coefficients_df = None , model_settings = None , file_name = None ) : if model_settings is not None : assert file_name is None file_name = model_settings [ 'COEFFICIENTS' ] assert file_name is not None if coefficients_df is None : coefficients_df = simulate . read_model_coefficients ( file_name = file_name ) base_file_name = os . path . basename ( file_name ) assert self . estimating self . write_table ( coefficients_df , base_file_name , append = False )
short_docstring: Because the whole point of estimation is to generate new coefficient values
  we want to make it easy to put the coefficients file back in configs
  So we make a point of preserving the same filename as the original config file
short_docstring_tokens: Because the whole point of estimation is to generate new coefficient values we want to make it easy to put the coefficients file back in configs So we make a point of preserving the same filename as the original config file
comment: """
          Because the whole point of estimation is to generate new coefficient values
          we want to make it easy to put the coefficients file back in configs
          So we make a point of preserving the same filename as the original config file
          """$SEP$# preserve original config file name