-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cc1b5f
commit 9755059
Showing
10 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# This file is automatically generated by pyo3_stub_gen | ||
# ruff: noqa: E501, F401 | ||
|
||
import typing | ||
from enum import Enum, auto | ||
|
||
class DurationError: | ||
def __new__(cls,* _args,* * _kwargs): ... | ||
... | ||
|
||
class Epoch: | ||
r""" | ||
Defines a nanosecond-precision Epoch. | ||
Refer to the appropriate functions for initializing this Epoch from different time scales or representations. | ||
""" | ||
... | ||
|
||
class HifitimeError: | ||
def __new__(cls,* _args,* * _kwargs): ... | ||
... | ||
|
||
class LatestLeapSeconds: | ||
r""" | ||
List of leap seconds from https://www.ietf.org/timezones/data/leap-seconds.list . | ||
This list corresponds the number of seconds in TAI to the UTC offset and to whether it was an announced leap second or not. | ||
The unannoucned leap seconds come from dat.c in the SOFA library. | ||
""" | ||
def __new__(cls,): ... | ||
def __repr__(self) -> str: | ||
... | ||
|
||
|
||
class LeapSecond: | ||
r""" | ||
A structure representing a leap second | ||
""" | ||
... | ||
|
||
class LeapSecondsFile: | ||
r""" | ||
A leap second provider that uses an IERS formatted leap seconds file. | ||
""" | ||
def __new__(cls,path:str): ... | ||
def __repr__(self) -> str: | ||
... | ||
|
||
|
||
class ParsingError: | ||
def __new__(cls,* _args,* * _kwargs): ... | ||
... | ||
|
||
class TimeSeries: | ||
r""" | ||
An iterator of a sequence of evenly spaced Epochs. | ||
""" | ||
... | ||
|
||
class Ut1Provider: | ||
r""" | ||
A structure storing all of the TAI-UT1 data | ||
""" | ||
def __new__(cls,): ... | ||
def __repr__(self) -> str: | ||
... | ||
|
||
|
||
class TimeScale(Enum): | ||
r""" | ||
Enum of the different time systems available | ||
""" | ||
TAI = auto() | ||
TT = auto() | ||
ET = auto() | ||
TDB = auto() | ||
UTC = auto() | ||
GPST = auto() | ||
GST = auto() | ||
BDT = auto() | ||
QZSST = auto() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use pyo3_stub_gen::Result; | ||
|
||
#[cfg(feature = "python")] | ||
fn main() -> Result<()> { | ||
let stub = hifitime::python::stub_info()?; | ||
stub.generate()?; | ||
Ok(()) | ||
} | ||
|
||
#[cfg(not(feature = "python"))] | ||
fn main() -> Result<()> { | ||
Ok(()) | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters