Skip to content

Commit

Permalink
cleanup customtext
Browse files Browse the repository at this point in the history
  • Loading branch information
shirubana committed Aug 4, 2022
1 parent 5a61669 commit 6731e43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,8 @@ def appendtoScene(self, radfile=None, customObject=None):
radfile: str
Directory and name of where .rad scene file is stored
customObject : str
Directory and name of custom object .rad file is stored
Directory and name of custom object .rad file is stored, and any geometry
modifications needed for it.
Returns
Expand Down Expand Up @@ -2308,7 +2309,12 @@ def makeScene1axis(self, trackerdict=None, module=None, sceneDict=None,
cumulativesky : bool
Defines if sky will be generated with cumulativesky or gendaylit.
moduletype: DEPRECATED. use the `module` kwarg instead.
appendtoScene : str
Appends to each scene a custom text pointing to a custom object
created by the user; format of the text should start with the rad
file path and name, and then any other geometry transformations
native to Radiance necessary.
Returns
--------
trackerdict
Expand Down
4 changes: 3 additions & 1 deletion bifacial_radiance/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,9 @@ def _makeModuleFromDict(self, x=None, y=None, z=None, xgap=None, ygap=None,
text += frametext
if hasattr(self, 'omega'):
text += self.omega.text
text += '\n' + self.customtext # For adding any other racking details at the module level that the user might want.

if self.customtext != "":
text += '\n' + self.customtext # For adding any other racking details at the module level that the user might want.

self.text = text
return text
Expand Down

0 comments on commit 6731e43

Please sign in to comment.