Skip to content

Commit

Permalink
Merge pull request #19 from elbeejay/generator-bugfix
Browse files Browse the repository at this point in the history
Generator bugfix
  • Loading branch information
elbeejay authored Nov 1, 2020
2 parents a0cb01f + 139c992 commit 4e7ac34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/userguide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Defining the parameters is required prior to doing any particle routing. Initiat
.. doctest::

>>> import dorado.particle_track as pt
>>> params = pt.params()
>>> params = pt.modelParams()

After establishing the parameter class, information about the domain must be provided. As `dorado` is a generic package designed to be used with a variety of input datasets or model outputs, we have tried to make the required input parameters as flexible as possible, however some values **must** be provided.

Expand Down
2 changes: 1 addition & 1 deletion dorado/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.1.0"
__version__ = "2.1.1"

from . import lagrangian_walker
from . import parallel_routing
Expand Down
3 changes: 1 addition & 2 deletions dorado/particle_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,7 @@ def generate_particles(self,
start_times = prev_times + start_times

# determine the new total number of particles we have now
# additive in the event we are running the generate multiple times
self.Np_tracer += Np_tracer
self.Np_tracer = len(start_xindices)

# store information in the init_walk_data dictionary and return it
init_walk_data['xinds'] = start_xindices
Expand Down

0 comments on commit 4e7ac34

Please sign in to comment.