Skip to content
Snippets Groups Projects
Select Git revision
  • 5ccd2e3ea35769b58438dcb21fd1df4b19b49a2b
  • master default protected
  • develop-GA
  • timeFstatmap
  • add-higher-spindown-components
  • develop-DK
  • adds-header-to-grid-search
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
11 results

semi_coherent_directed_follow_up.py

Blame
  • Forked from Gregory Ashton / PyFstat
    Source project has a limited visibility.
    orc.cpp 602 B
    #include "ResourceCompiler.h"
    
    void printUsage() {
    	cerr << "Invalid command-line options!" << endl;
    	cerr << "Usage: orc <input filename> <output filename>" << endl;
    }
    
    int main(int argc, char *argv[])
    {
    	if(argc != 3) {
    		printUsage();
    		exit(1);
    	}
    	else {
    		string inputFilename(argv[1]);
    		string outputFilename(argv[2]);
    		
    		// TODO: better filename checking
    		if( inputFilename == "." || inputFilename == ".." ||
    			outputFilename == "." || outputFilename == "..")
    		{
    			printUsage();
    			exit(1);
    		}
    		
    		ResourceCompiler rc(inputFilename, outputFilename);
    		rc.compile();
    		
    		exit(0);
    	}
    }