Skip to content

Commit

Permalink
Deploying to pdoc from @ 11a1406 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Jul 31, 2024
1 parent 3502a17 commit 8cc43ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
23 changes: 21 additions & 2 deletions PySDM/impl/particle_attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ <h2 class="section-title" id="header-classes">Classes</h2>
attributes: Dict[str, Attribute],
):
self.__valid_n_sd = particulator.n_sd
self.healthy = True
self.__healthy_memory = particulator.Storage.from_ndarray(np.full((1,), 1))
self.__idx = idx

Expand All @@ -78,6 +77,14 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self.__sorted = False
self.__attributes = attributes

@property
def healthy(self) -&gt; bool:
return bool(self.__healthy_memory[0])

@healthy.setter
def healthy(self, value: bool):
self.__healthy_memory[:] = value

@property
def cell_start(self):
if not self.__sorted:
Expand All @@ -101,7 +108,6 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self.__idx.remove_zero_n_or_flagged(self[&#34;multiplicity&#34;])
self.__valid_n_sd = self.__idx.length
self.healthy = True
self.__healthy_memory[:] = 1
self.__sorted = False

def cut_working_length(self, length):
Expand Down Expand Up @@ -167,6 +173,18 @@ <h3>Instance variables</h3>
return self.__cell_start</code></pre>
</details>
</dd>
<dt id="PySDM.impl.particle_attributes.ParticleAttributes.healthy"><code class="name">prop <span class="ident">healthy</span> : bool</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def healthy(self) -&gt; bool:
return bool(self.__healthy_memory[0])</code></pre>
</details>
</dd>
<dt id="PySDM.impl.particle_attributes.ParticleAttributes.super_droplet_count"><code class="name">prop <span class="ident">super_droplet_count</span></code></dt>
<dd>
<div class="desc"><p>returns the number of super-droplets in the system
Expand Down Expand Up @@ -281,6 +299,7 @@ <h4><code><a title="PySDM.impl.particle_attributes.ParticleAttributes" href="#Py
<li><code><a title="PySDM.impl.particle_attributes.ParticleAttributes.get_extensive_attribute_storage" href="#PySDM.impl.particle_attributes.ParticleAttributes.get_extensive_attribute_storage">get_extensive_attribute_storage</a></code></li>
<li><code><a title="PySDM.impl.particle_attributes.ParticleAttributes.get_working_length" href="#PySDM.impl.particle_attributes.ParticleAttributes.get_working_length">get_working_length</a></code></li>
<li><code><a title="PySDM.impl.particle_attributes.ParticleAttributes.has_attribute" href="#PySDM.impl.particle_attributes.ParticleAttributes.has_attribute">has_attribute</a></code></li>
<li><code><a title="PySDM.impl.particle_attributes.ParticleAttributes.healthy" href="#PySDM.impl.particle_attributes.ParticleAttributes.healthy">healthy</a></code></li>
<li><code><a title="PySDM.impl.particle_attributes.ParticleAttributes.keys" href="#PySDM.impl.particle_attributes.ParticleAttributes.keys">keys</a></code></li>
<li><code><a title="PySDM.impl.particle_attributes.ParticleAttributes.mark_updated" href="#PySDM.impl.particle_attributes.ParticleAttributes.mark_updated">mark_updated</a></code></li>
<li><code><a title="PySDM.impl.particle_attributes.ParticleAttributes.permutation" href="#PySDM.impl.particle_attributes.ParticleAttributes.permutation">permutation</a></code></li>
Expand Down
9 changes: 0 additions & 9 deletions PySDM/particulator.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ <h2 class="section-title" id="header-classes">Classes</h2>
coalescence_rate=coalescence_rate,
is_first_in_pair=is_first_in_pair,
)
self.attributes.healthy = bool(
self.attributes._ParticleAttributes__healthy_memory
)
self.attributes.sanitize()
self.attributes.mark_updated(&#34;multiplicity&#34;)
for key in self.attributes.get_extensive_attribute_keys():
Expand Down Expand Up @@ -444,9 +441,6 @@ <h2 class="section-title" id="header-classes">Classes</h2>
precipitation_counting_level_index=precipitation_counting_level_index,
displacement=displacement,
)
self.attributes.healthy = bool(
self.attributes._ParticleAttributes__healthy_memory
)
self.attributes.sanitize()
return res

Expand All @@ -459,9 +453,6 @@ <h2 class="section-title" id="header-classes">Classes</h2>
healthy=self.attributes._ParticleAttributes__healthy_memory,
domain_top_level_index=self.mesh.grid[-1],
)
self.attributes.healthy = bool(
self.attributes._ParticleAttributes__healthy_memory
)
self.attributes.sanitize()

def calculate_displacement(
Expand Down

0 comments on commit 8cc43ab

Please sign in to comment.