pfc-geometry 0.2.11__py3-none-any.whl → 0.2.12__py3-none-any.whl

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.
geometry/time.py CHANGED
@@ -22,9 +22,9 @@ class Time(Base):
22
22
  return Time(t, dt)
23
23
 
24
24
  @staticmethod
25
- def uniform(duration: float, npoints: int | None) -> Time:
25
+ def uniform(duration: float, npoints: int | None, minpoints:int=1) -> Time:
26
26
  return Time.from_t(
27
- np.linspace(0, duration, npoints if npoints else int(np.ceil(duration * 25)))
27
+ np.linspace(0, duration, npoints if npoints else max(int(np.ceil(duration * 25)), minpoints))
28
28
  )
29
29
 
30
30
  def scale(self, duration) -> Self:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pfc-geometry
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: A package for handling 3D geometry with a nice interface
5
5
  Author-email: Thomas David <thomasdavid0@gmail.com>
6
6
  License: GNU GPL v3
@@ -6,10 +6,10 @@ geometry/mass.py,sha256=BUWBSITwpdRfpJR5-oJTd16BI7FLZt8rhxdzr0cx1HY,1675
6
6
  geometry/point.py,sha256=XF7sdCaCD-si9UAumpyvxzMOTX3utVogJ2tt_7vt7b0,5185
7
7
  geometry/quaternion.py,sha256=nggmRu_8xCQNYlf8GcilC4zJZLsac3dwUQKu5pxL_38,9522
8
8
  geometry/testing.py,sha256=o8yMBAdU5Vy0EspBYaof4fPGgRSFZhRDhzBjRPsLd0M,375
9
- geometry/time.py,sha256=ZWO6yThXesHkNsROJfUruF-G4Lpcx149x0H__0HPLvw,1206
9
+ geometry/time.py,sha256=ljQxAYxphHU4AE_gdUT7DDTXOF1QvYKpWyGpXw_zWQA,1239
10
10
  geometry/transformation.py,sha256=eunEC924zPBLhaVSEWE-IClrRfitvUKjSdOTaa2tdDQ,4705
11
- pfc_geometry-0.2.11.dist-info/LICENSE,sha256=z72U6pv-bQgJ_Svr4uCXnMjemsp38aSerhHEdEAOMJ4,7632
12
- pfc_geometry-0.2.11.dist-info/METADATA,sha256=lEO6DesuEkg7KVSx98UNygwFmmH4eyYTTA6q80cTcK0,1979
13
- pfc_geometry-0.2.11.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
14
- pfc_geometry-0.2.11.dist-info/top_level.txt,sha256=RWbWhWYclEM-OFtXLCB4eLv-jxNnlJB-NPC2YM587Fo,9
15
- pfc_geometry-0.2.11.dist-info/RECORD,,
11
+ pfc_geometry-0.2.12.dist-info/LICENSE,sha256=z72U6pv-bQgJ_Svr4uCXnMjemsp38aSerhHEdEAOMJ4,7632
12
+ pfc_geometry-0.2.12.dist-info/METADATA,sha256=XWJCEDQo_oLtadDdxf280EPGmQ3BU8xpyaOaMIsK2yE,1979
13
+ pfc_geometry-0.2.12.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
14
+ pfc_geometry-0.2.12.dist-info/top_level.txt,sha256=RWbWhWYclEM-OFtXLCB4eLv-jxNnlJB-NPC2YM587Fo,9
15
+ pfc_geometry-0.2.12.dist-info/RECORD,,