Skip to content

Commit

Permalink
change analyzeRow defaults to sensorsy=9 and sensorsx=1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Oct 4, 2024
1 parent ac4d491 commit 5c6e0d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5267,7 +5267,7 @@ def groundAnalysis(self, scene, modWanted=None, rowWanted=None,
return groundscan

def analyzeRow(self, octfile, scene, rowWanted=None, name=None,
sensorsy=None, sensorsx=None ):
sensorsy=9, sensorsx=1 ):
'''
Function to Analyze every module in the row.
Expand Down
3 changes: 2 additions & 1 deletion docs/sphinx/source/whatsnew/v0.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Bug fixes
* Updated Github Actions to use Node20: checkout@v4, setup-python@v5, coactions/setup-xvfb, setup-buildx-action@v3 (:pull:`517`)
* Fix PerformanceWarning and SettingWithCopyWarning (:issue:`515`)
* Fix error where rearX, rearY, rearZ parameters are not properly saved (:issue:`501`)
* More appropriate significant digits saved and displayed. (this changed some x,y,z values by < .003 due to rounding differences.)
* More appropriate significant digits saved and displayed. (this changed some x,y,z values by < .003 due to rounding differences.) (:pull:`558`)
* :py:func:`bifacial_radiance.AnalysisObj.analyzeRow` default values changed for `sensorsy` and `sensorsx` from `None` to 9 and 1, respectively (:pull:`558`)

Documentation
~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion tests/test_bifacial_radiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ def test_analyzeRow():
assert (analysis.__printval__('x')[2] == 0) & (analysis.x[2] == 0)
assert any( analysis.__printval__('Wm2Front') != analysis.Wm2Front)
temp = analysis.__repr__() # does the repr compile at all?

assert analysis.rearX == pytest.approx([0.25, 0, -0.25])
assert analysis.x == pytest.approx([.333, .167, 0, -.167, -.333], abs=.001)

def test_addMaterialGroundRad():
# test addMaterialGroundRad. requires metdata for boulder.
Expand Down

0 comments on commit 5c6e0d1

Please sign in to comment.