Skip to content

Commit

Permalink
Change warnings in makeScene with multiple sceneobj.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Sep 24, 2024
1 parent dc25bde commit 0f9461c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2438,8 +2438,12 @@ def makeScene(self, module=None, sceneDict=None, radname=None,
'Available moduletypes: ' )
self.printModules() #print available module types
return
scene = SceneObj(module, hpc=self.hpc, name=f'Scene{self.scenes.__len__()}')
if self.scenes.__len__() >=1:
if not append:
if len(self.scenes) >=1:
print('Append=False in makeScene. Existing scenes being over-written. ')
self.scenes = []
scene = SceneObj(module, hpc=self.hpc, name=f'Scene{len(self.scenes)}')
if len(self.scenes) >=1:
print(f"Additional scene {scene.name} created! See list of names with RadianceObj.scenes and sceneNames")

if sceneDict is None:
Expand Down

0 comments on commit 0f9461c

Please sign in to comment.