<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/dedf4c47220e/">https://bitbucket.org/yt_analysis/yt/commits/dedf4c47220e/</a> Changeset: dedf4c47220e Branch: yt User: ngoldbaum Date: 2016-05-04 18:04:02+00:00 Summary: Merged in yihaochen/yt (pull request #2153)</p>
<p>Try to guess and load particle file for FLASH dataset. Closes #1179 Affected #: 1 file</p>
<p>diff -r 236cd5cc2b6a0b7b96ebe64a9a223f14bc86728e -r dedf4c47220e9551cf8ce24f10c9259da92f4361 yt/frontends/flash/data_structures.py --- a/yt/frontends/flash/data_structures.py +++ b/yt/frontends/flash/data_structures.py @@ -192,12 +192,26 @@</p>
<pre> self.particle_filename = particle_filename
if self.particle_filename is None:</pre>
<ul><li><p>self._particle_handle = self._handle</p></li></ul>
<p>+ # try to guess the particle filename + try: + self._particle_handle = HDF5FileHandler(filename.replace('plt_cnt', ‘part')) + self.particle_filename = filename.replace('plt_cnt’, ‘part’) + mylog.info('Particle file found: %s' % self.particle_filename.split('/')[-1]) + except IOError: + self._particle_handle = self._handle</p>
<pre>else:</pre>
<p>+ # particle_filename is specified by user</p>
<pre>try:
self._particle_handle = HDF5FileHandler(self.particle_filename)
except:
raise IOError(self.particle_filename)</pre>
<p>+ # Check if the particle file has the same time + if self._particle_handle != self._handle: + part_time = self._particle_handle.handle.get('real scalars')[0][1] + plot_time = self._handle.handle.get('real scalars')[0][1] + if not np.isclose(part_time, plot_time): + raise IOError('%s and %s are not at the same time.' % (self.particle_filename, filename)) +</p>
<pre># These should be explicitly obtained from the file, but for now that
# will wait until a reorganization of the source tree and better
# generalization.</pre>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>
<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27DSvwdiWilwRFI2YuIOT-2Bml4PNf2tbFZ0fQGzl-2BqJKYrJaa7zQOSyVTNDV5J5MxVoEtvPYvMrTb4OSFcX56x8jSI4srzEhfgU8bdnsELzhhPquv2j4V3xTK5GxfqXyBojxAIN718S5uDVFiCnRRNdHyZNA3VfkM-2BwKUb47oQb8CzFltes-2FAbekoeFc3CKRthNM-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>