Skip to content

Commit

Permalink
Merge pull request #7 from NREL/movementname-hotfix
Browse files Browse the repository at this point in the history
Make movement_model usage in Simulator consistent with Config
  • Loading branch information
rimplesandhu committed Jun 10, 2022
2 parents 9c185c0 + e49793e commit 1cda662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssrs/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def _get_potential_fname(self, case_id: str, real_id: int, dirname: str):

def plot_directional_potentials(self, plot_turbs=True, show=False) -> None:
""" Plot directional potential """
if self.movement_model == 'fluidflow':
if self.movement_model == 'fluid-flow':
print('Plotting directional potential..')
for case_id in self.case_ids:
updrafts = self.load_updrafts(case_id, apply_threshold=True)
Expand Down Expand Up @@ -420,7 +420,7 @@ def simulate_tracks(self):
if self.sim_seed > 0:
np.random.seed(self.sim_seed + real_id)
id_str = self._get_id_string(case_id, real_id)
if self.movement_model == 'fluidflow':
if self.movement_model == 'fluid-flow':
potential = self.get_directional_potential(
updraft, case_id, real_id)
print(f'{id_str}: Simulating {self.track_count} tracks..',
Expand Down

0 comments on commit 1cda662

Please sign in to comment.