code: def to_las(self, fname, keys=None, basis=None, **kwargs):
          
          with open(fname, 'w') as f:
              self.to_lasio(keys=keys, basis=basis).write(f, **kwargs)
  
          return
docs: Writes the current well instance as a LAS file. Essentially just wraps
          ``to_lasio()``, but is more convenient for most purposes.
  
          Args:
              fname (str): The path of the LAS file to create.
              basis (ndarray): Optional. The basis to export the curves in. If
                  you don't specify one, it will survey all the curves with
                  ``survey_basis()``.
              keys (list): List of strings: the keys of the data items to
                  include, if not all of them. You can have nested lists, such
                  as you might use for ``tracks`` in ``well.plot()``.
  
          Other keyword args are passed to lasio.LASFile.write.
  
          Returns:
              None. Writes the file as a side-effect.