Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
arguments={"settingsFile": None}, docString=__doc__, logLevel="DEBUG", options_first=False, projectName="rockfinder" )
# # load settings # stream = file( # "/Users/Dave/.config/rockfinder/rockfinder.yaml", 'r') # settings = yaml.load(stream) # stream.close()
# SETUP AND TEARDOWN FIXTURE FUNCTIONS FOR THE ENTIRE MODULE utKit.tearDownModule()
# load settings stream = file( pathToInputDir + "/example_settings.yaml", 'r') settings = yaml.load(stream) stream.close()
import shutil try: shutil.rmtree(pathToOutputDir) except: pass # COPY INPUT TO OUTPUT DIR shutil.copytree(pathToInputDir, pathToOutputDir)
# Recursively create missing directories if not os.path.exists(pathToOutputDir): os.makedirs(pathToOutputDir)
# xt-setup-unit-testing-files-and-folders
from rockfinder import orbfit_ephemeris this = orbfit_ephemeris( log=log, settings=settings, objectId=1, mjd=57916., verbose=True ) print this
from rockfinder import orbfit_ephemeris this = orbfit_ephemeris( log=log, settings=settings, objectId=1, mjd=[57916., 57916.1, 57916.2] ) print this
from rockfinder import orbfit_ephemeris this = orbfit_ephemeris( log=log, settings=settings, objectId=1, mjd=57916., verbose=True, astorbPath=pathToInputDir + "/astorb-partial.dat" ) print this
from rockfinder import orbfit_ephemeris this = orbfit_ephemeris( log=log, settings=settings, objectId=1, mjd=[57916., 57916.1, 57916.2], astorbPath=pathToInputDir + "/astorb-partial.dat" ) print this
log=log, settings=settings, objectId=range(1500), mjd=57916., verbose=True )
from rockfinder import orbfit_ephemeris try: this = orbfit_ephemeris( log=log, settings=settings, fakeKey="break the code" ) this.get() assert False except Exception, e: assert True print str(e)
# x-print-testpage-for-pessto-marshall-web-object
# x-class-to-test-named-worker-function |