Skip to content

Commit

Permalink
set default of initial configuration to be zero
Browse files Browse the repository at this point in the history
  • Loading branch information
aoymt committed Nov 29, 2023
1 parent 8e880c7 commit 2d00528
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/hwave/solver/uhfk.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,12 @@ def _initial_green(self, green_info):
_data = self._initial_green_random_conv()
#_data = self._initial_green_random_conv_reshape()
elif green_info["initial_mode"] == "random":
pass # default
logger.info("initialize green function with random numbers")
_data = self._initial_green_random_simple()

if _data is None: # default
logger.info("initialize green function with random numbers")
_data = self._initial_green_random_simple()
if _data is None: # default = zero
logger.info("initialize green function with zeros")
_data = self._initial_green_zero()
return _data

def _initial_green_zero(self):
Expand Down

0 comments on commit 2d00528

Please sign in to comment.