-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
40 changed files
with
869 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
punchpipe.level0.flow | ||
===================== | ||
|
||
.. py:module:: punchpipe.level0.flow | ||
Classes | ||
------- | ||
|
||
.. autoapisummary:: | ||
|
||
punchpipe.level0.flow.PacketEncoder | ||
|
||
|
||
Functions | ||
--------- | ||
|
||
.. autoapisummary:: | ||
|
||
punchpipe.level0.flow.detect_new_tlm_files | ||
punchpipe.level0.flow.parse_new_tlm_files | ||
punchpipe.level0.flow.update_tlm_database | ||
punchpipe.level0.flow.ingest_raw_packets | ||
punchpipe.level0.flow.form_level0_fits | ||
punchpipe.level0.flow.form_from_jpeg_compressed | ||
|
||
|
||
Module Contents | ||
--------------- | ||
|
||
.. py:class:: PacketEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None) | ||
Bases: :py:obj:`json.JSONEncoder` | ||
|
||
|
||
Extensible JSON <https://json.org> encoder for Python data structures. | ||
|
||
Supports the following objects and types by default: | ||
|
||
+-------------------+---------------+ | ||
| Python | JSON | | ||
+===================+===============+ | ||
| dict | object | | ||
+-------------------+---------------+ | ||
| list, tuple | array | | ||
+-------------------+---------------+ | ||
| str | string | | ||
+-------------------+---------------+ | ||
| int, float | number | | ||
+-------------------+---------------+ | ||
| True | true | | ||
+-------------------+---------------+ | ||
| False | false | | ||
+-------------------+---------------+ | ||
| None | null | | ||
+-------------------+---------------+ | ||
|
||
To extend this to recognize other objects, subclass and implement a | ||
``.default()`` method with another method that returns a serializable | ||
object for ``o`` if possible, otherwise it should call the superclass | ||
implementation (to raise ``TypeError``). | ||
|
||
|
||
|
||
.. py:method:: default(obj) | ||
Implement this method in a subclass such that it returns | ||
a serializable object for ``o``, or calls the base implementation | ||
(to raise a ``TypeError``). | ||
|
||
For example, to support arbitrary iterators, you could | ||
implement default like this:: | ||
|
||
def default(self, o): | ||
try: | ||
iterable = iter(o) | ||
except TypeError: | ||
pass | ||
else: | ||
return list(iterable) | ||
# Let the base class default method raise the TypeError | ||
return super().default(o) | ||
|
||
|
||
|
||
|
||
.. py:function:: detect_new_tlm_files() -> [str] | ||
.. py:function:: parse_new_tlm_files(telemetry_file_path: str) | ||
.. py:function:: update_tlm_database(packets, telemetry_file_path: str, session=None) | ||
.. py:function:: ingest_raw_packets() | ||
.. py:function:: form_level0_fits(session=None) | ||
.. py:function:: form_from_jpeg_compressed(packets) | ||
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
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
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
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
Oops, something went wrong.