Skip to content
Snippets Groups Projects
Select Git revision
  • d4bcaa97b55525972c4d043ebb93fab358d9448f
  • master default protected
  • Binary
  • add-version-information
  • os-path-join
  • develop-GA
  • timeFstatmap
  • add-higher-spindown-components
  • develop-DK
  • adds-header-to-grid-search
  • v1.3
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
15 results

semi_coherent_twoglitch_search_using_MCMC.py

Blame
  • Forked from Gregory Ashton / PyFstat
    Source project has a limited visibility.
    • Gregory Ashton's avatar
      89f200ed
      Renames sftfilepath -> sftfilepattern · 89f200ed
      Gregory Ashton authored
      This renames the input sftfilepath to sftfilepattern and adds
      documentation on how that should be used, i.e. a colon separated list of
      wildstring or exact matches. In globbing for all matches, the colon
      split is added in. sftfilepath is still used by `Writer` since
      an exact path is known.
      89f200ed
      History
      Renames sftfilepath -> sftfilepattern
      Gregory Ashton authored
      This renames the input sftfilepath to sftfilepattern and adds
      documentation on how that should be used, i.e. a colon separated list of
      wildstring or exact matches. In globbing for all matches, the colon
      split is added in. sftfilepath is still used by `Writer` since
      an exact path is known.
    FT_add_line_to_block.m 1.12 KiB
    %---------------------------------------------------------------------  
    % function [block] = FT_add_line_to_block(block,txt_line)
    % 
    % Add a line of text to a given block.
    %
    % block: block structure to which the text should be added
    % txt_line: string, one line of text, which should be added
    %
    % Part of the SimTools package
    % Andreas Freise 22.05.08 afreise@googlemail.com
    %---------------------------------------------------------------------  
    
    function [block] = FT_add_line_to_block(block,txt_line)
    
      baseid='FT_add_line_to_block';
        
      if (iscell(txt_line))
        txt_line=cell2mat(txt_line);
      end
        
      if (~isstruct(block))
        msgid=[baseid,':checkinarg'];
        result='first input argument must be a block structure';
        error(msgid,result);
      end
      
      if (~isstr(txt_line))
        msgid=[baseid,':checkinarg'];
        result='second input argument must be a string';
        error(msgid,result);
      end
      
      bl=length(block);
      if (bl>1)
        msgid=[baseid,':checksize'];
        error(msgid,'first argument must be single FTblock');
      end
      
      block.txt_lines=[block.txt_lines,{txt_line}];
      block.n_lines=block.n_lines+1;
      block.edited=1;
      end