Skip to content

Commit

Permalink
Merge pull request #235 from amoodie/bug_init_routers_after_dt
Browse files Browse the repository at this point in the history
A few minor bug fixes
  • Loading branch information
amoodie authored Nov 19, 2021
2 parents 99139d2 + 96ebd85 commit 67521cd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/pyplots/guides/output_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
delta.uw, cmap='plasma')
ax[1].set_xticks([])
ax[1].set_yticks([])
ax[0].set_title('velocity')
ax[1].set_title('velocity')

plt.tight_layout()
plt.show()
2 changes: 1 addition & 1 deletion pyDeltaRCM/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ def __version__():
Private version declaration, gets assigned to pyDeltaRCM.__version__
during import
"""
return '2.1.0a'
return '2.1.1'
4 changes: 2 additions & 2 deletions pyDeltaRCM/init_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def init_logger(self):
self.logger.setLevel(logging.INFO)

# create the logging file handler
fh = logging.FileHandler(
self.prefix_abspath + '/pyDeltaRCM_' + timestamp + '.log')
fh = logging.FileHandler(os.path.join(
self.prefix_abspath, 'pyDeltaRCM_' + timestamp + '.log'))
formatter = logging.Formatter(
'%(asctime)s - %(levelname)s - %(message)s')
fh.setFormatter(formatter)
Expand Down
1 change: 1 addition & 0 deletions pyDeltaRCM/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,7 @@ def time_step(self, new_time_step):
self.sigma = (self.sigma / self._dt) * new_time_step

self._dt = new_time_step
self.init_sediment_routers()

@property
def time_iter(self):
Expand Down

0 comments on commit 67521cd

Please sign in to comment.