Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shirubana committed Dec 3, 2023
1 parent 1d7fc8c commit 37fc812
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 52 deletions.
32 changes: 22 additions & 10 deletions _sources/tutorials/1 - Basic run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"%%bash\n",
"wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip\n",
"unzip radiance.zip\n",
"tar -xvf radiance-5.3.012cb17835-Linux.tar.gz\n",
"#ls -l $PWD"
"tar -xvf radiance-5.3.012cb17835-Linux.tar.gz;"
]
},
{
Expand All @@ -47,8 +46,21 @@
"metadata": {},
"outputs": [],
"source": [
"cp -r radiance-5.3.012cb17835-Linux/usr/local/radiance/bin/* /usr/local/bin\n",
"rm radiance*"
"#!cp -r radiance-5.3.012cb17835-Linux/usr/local/radiance/bin/* /usr/local/bin\n",
"#!cp -r radiance-5.3.012cb17835-Linux/usr/local/radiance/lib/* /usr/local/lib\n",
"#!rm -r radiance*"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ['PATH'] += \":radiance-5.3.012cb17835-Linux/usr/local/radiance/bin\"\n",
"os.environ['LIBRARYPATH'] += \":radiance-5.3.012cb17835-Linux/usr/local/radiance/lib\"\n",
"os.environ['RAYPATH'] = \":radiance-5.3.012cb17835-Linux/usr/local/radiance/lib\""
]
},
{
Expand Down Expand Up @@ -102,9 +114,10 @@
"simulationname = 'tutorial_1'\n",
"\n",
"# Location:\n",
"lat = 39.7407 # ° N, \n",
"lat = 25..7407 # ° N, \n",
"lon = -105.1686 # ° W\n",
"\n",
"25.2854° N, 51.5310° E\n",
"\n",
"# Scene Parameters:\n",
"azimuth_ang=90 # Facing south\n",
Expand Down Expand Up @@ -153,7 +166,7 @@
"outputs": [],
"source": [
"#Valid options: mm_dd, mm_dd_HH, mm_dd_HHMM, YYYY-mm-dd_HHMM\n",
"metdata = demo.readWeatherFile(epwfile, coerce_year=2021, starttime='2021-06-01', endtime='2021-06-30')"
"metdata = demo.readWeatherFile(epwfile, coerce_year=2023, starttime='2023-12-04', endtime='2023-12-04')"
]
},
{
Expand All @@ -162,8 +175,7 @@
"metadata": {},
"outputs": [],
"source": [
"demo.genCumSky() \n",
"#demo.gendaylit(timeindex=0) "
"demo.gendaylit(timeindex=7) "
]
},
{
Expand Down Expand Up @@ -193,7 +205,7 @@
"outputs": [],
"source": [
"analysis = br.AnalysisObj(octfile, demo.name) \n",
"frontscan, backscan, groundscan = analysis.moduleAnalysis(scene, sensorsy=sensorsy, sensorsground=sensorsground)\n"
"frontscan, backscan = analysis.moduleAnalysis(scene, sensorsy=sensorsy)\n"
]
},
{
Expand All @@ -202,7 +214,7 @@
"metadata": {},
"outputs": [],
"source": [
"analysis.analysis(octfile, simulationname+\"_groundscan_East\", groundscan, backscan) # compare the back vs front irradiance "
"analysis.analysis(octfile, simulationname+\"_modulescan\", frontscan, backscan) # compare the back vs front irradiance "
]
}
],
Expand Down
9 changes: 4 additions & 5 deletions reports/tutorials/1 - Basic run.err.log
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ nbclient.exceptions.CellExecutionError: An error occurred while executing the fo
%%bash
wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip
unzip radiance.zip
tar -xvf radiance-5.3.012cb17835-Linux.tar.gz
#ls -l $PWD
tar -xvf radiance-5.3.012cb17835-Linux.tar.gz;
------------------

---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
Cell In[1], line 1
----> 1 get_ipython().run_cell_magic('bash', '', 'wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip\nunzip radiance.zip\ntar -xvf radiance-5.3.012cb17835-Linux.tar.gz\n#ls -l $PWD\n')
----> 1 get_ipython().run_cell_magic('bash', '', 'wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip\nunzip radiance.zip\ntar -xvf radiance-5.3.012cb17835-Linux.tar.gz;\n')

File C:\ProgramData\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py:2475, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
 2473 with self.builtin_trap:
Expand All @@ -55,6 +54,6 @@ File C:\ProgramData\anaconda3\Lib\site-packages\IPython\core\magics\scrip
 304 rc = p.returncode or -9
--> 305 raise CalledProcessError(rc, cell)

CalledProcessError: Command 'b'wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip\nunzip radiance.zip\ntar -xvf radiance-5.3.012cb17835-Linux.tar.gz\n#ls -l $PWD\n'' returned non-zero exit status 1.
CalledProcessError: Command 'b'wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip\nunzip radiance.zip\ntar -xvf radiance-5.3.012cb17835-Linux.tar.gz\n#ls -l $PWD\n'' returned non-zero exit status 1.
CalledProcessError: Command 'b'wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip\nunzip radiance.zip\ntar -xvf radiance-5.3.012cb17835-Linux.tar.gz;\n'' returned non-zero exit status 1.
CalledProcessError: Command 'b'wget https://github.com/LBNL-ETA/Radiance/releases/download/012cb178/Radiance_012cb178_Linux.zip -O radiance.zip\nunzip radiance.zip\ntar -xvf radiance-5.3.012cb17835-Linux.tar.gz;\n'' returned non-zero exit status 1.

Loading

0 comments on commit 37fc812

Please sign in to comment.