Add if: statement to example notebook
"cell_type": "code",
"execution_count": 2,
"metadata": {
- "collapsed": false
+ "collapsed": false,
+ "scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "path = C:\\Users\\cdeline\\Documents\\Python Scripts\\TestFolder\n",
- "Making path: images/\n",
- "Making path: objects/\n",
- "Making path: results/\n",
- "Making path: skies/\n",
- "Making path: materials/\n",
+ "path = E:\\Documents\\Python Scripts\\TestFolder\n",
"Getting weather file: USA_VA_Richmond.Intl.AP.724010_TMY.epw ... OK!\n",
+ "error: There were 4255 sun up hours in this climate file\n",
+ "Total Ibh/Lbh: 0.000000\n",
"incorrect panel type selection\n",
"created simple_panel.oct linescan in process: simple_panel_Front\n",
"linescan in process: simple_panel_Back\n",
"saved: results\\irr_simple_panel.csv\n",
- "Annual bifacial ratio: 0.089 - 0.131\n"
+ "Annual bifacial ratio: 0.095 - 0.133\n"
]
}
],
"source": [
"# Simple example system using Radiance.\n",
- "testfolder = r'C:\\Users\\cdeline\\Documents\\Python Scripts\\TestFolder' #point to an empty directory or existing Radiance directory\n",
+ "testfolder = r'E:\\Documents\\Python Scripts\\TestFolder' #point to an empty directory or existing Radiance directory\n",
"demo = RadianceObj('simple_panel',testfolder) # Create a RadianceObj 'object'\n",
"demo.setGround(0.62) # input albedo number or material name like 'concrete'. To see options, run this without any input.\n",
"try:\n",
" \n",
"metdata = demo.readEPW('EPWs\\\\USA_VA_Richmond.Intl.AP.724010_TMY.epw') # read in the weather data\n",
"# Now we either choose a single time point, or use cumulativesky for the entire year. \n",
+ "fullYear = True\n",
+ "if fullYear:\n",
+ " demo.genCumSky(demo.epwfile) # entire year.\n",
+ "else:\n",
" demo.gendaylit(metdata,4020) # Noon, June 17th\n",
- "#demo.genCumSky(demo.epwfile) # entire year.\n",
+ " \n",
"# create a scene using panels in landscape at 10 deg tilt, 1.5m pitch. 0.2 m ground clearance\n",
"sceneDict = {'tilt':10,'pitch':1.5,'height':0.2,'orientation':'landscape','azimuth':180} \n",
"scene = demo.makeScene('simple_panel',sceneDict) #makeScene creates a .rad file with 10 modules per row, 3 rows.\n",
