numpyimage 2.6.4__tar.gz → 2.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: numpyimage
3
- Version: 2.6.4
3
+ Version: 2.7.0
4
4
  Summary: Load, save, & manipulate image files as numpy arrays
5
5
  Author-email: Jasper Phelps <jasper.s.phelps@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -309,6 +309,20 @@ class VideoStreamer:
309
309
  else:
310
310
  return self.timestep
311
311
 
312
+ @property
313
+ def framerate(self):
314
+ """
315
+ Returns the frame rate of the video in frames per second.
316
+ """
317
+ if self.timestep == 'variable':
318
+ return 1 / self.average_timestep
319
+ else:
320
+ return 1 / self.timestep
321
+
322
+ @property
323
+ def fps(self):
324
+ return self.framerate
325
+
312
326
  @property
313
327
  def first_frame(self):
314
328
  if self._first_frame is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: numpyimage
3
- Version: 2.6.4
3
+ Version: 2.7.0
4
4
  Summary: Load, save, & manipulate image files as numpy arrays
5
5
  Author-email: Jasper Phelps <jasper.s.phelps@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
4
4
 
5
5
  [project]
6
6
  name = 'numpyimage'
7
- version = '2.6.4'
7
+ version = '2.7.0'
8
8
  description = 'Load, save, & manipulate image files as numpy arrays'
9
9
  readme.file = 'README.md'
10
10
  readme.content-type = 'text/markdown'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes