Skip to content
Snippets Groups Projects
Select Git revision
  • b5f24e3a736e2b7ce11d994bf48a00957a1ec7ff
  • 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_check_for_kat_binary.m 1.57 KiB
    %---------------------------------------------------------------------  
    % function [FT] = FT_check_for_kat_binary(FT)
    % 
    % Checks if the Finesse binary can be found and tests which
    % kat.ini file can be used
    %
    % FT: FT structure
    %
    % Part of the SimTools package
    % Andreas Freise 22.05.08 afreise@googlemail.com
    %---------------------------------------------------------------------  
    
    function [FT] = FT_check_for_kat_binary(FT)
    
      baseid='FTchekforkat';
      
      if (~isstruct(FT))
        msgid=[baseid,':checkinarg'];
        result='input argument must be a FT structure';
        error(msgid,result);
      end
      
      disp('--------------------------------------------------------------------');
      % check if katbinary exists and produces a version output
      commandstring = [FT.katbinary,' -v'];
      [status,result]=system(commandstring);
      if (status)
        msgid=[baseid,':checkbinary'];
        result=['Cannot execute kat: ',result];
        error(msgid,result);
      else
        isFinesse=strfind(result,'Finesse');
        if (isFinesse)
          disp(['Finesse binary found: ',strtrim(result)]);
        else
          msgid=[baseid,':checkversion'];
          result=[FT.katbinary, ' does not seem to be Finesse binary'];
          error(msgid,result);      
        end
      end
      
      % check if local kat.ini exists
      local=exist('./kat.ini');
      
      if (local==2)
        FT.katini='./kat.ini';
        disp(['Using local kat.ini: ',FT.katini]);
      else
        % check if global or local kat.ini exists
        FT.katini=getenv('KATINI');
        if (FT.katini)
          disp(['Found global kat.ini: ',FT.katini]);
        else
          disp('No kat.ini file found.');
        end
      end