Ts-salobj

Latest version: v6.9.1

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 13

7.0.0

------

* Update the way configuration is handled to handle our new standard.

* Write ``configurationApplied`` and ``configurationsAvailable`` events, instead of the obsolete ``settingsApplied`` and ``settingVersions``.
* Stop writing the obsolete ``appliedSettingsMatchStart`` event.
* Rename ``start`` command ``settingsToApply`` field to ``configurationOverride``.
* Rename ``settings_to_apply`` arguments to ``override``.
* Rename the ``--settings`` CSC command-line argument to ``--override``.
* Ignore the ``require_settings`` CSC class constant.
The new configuration system makes default configuration site-specific, and the default is usually fine.

* Warning: `ConfigurableCsc` now requires that environment variable ``LSST_SITE`` be defined.
As a result:

* `BaseCscTestCse`: set environment variable ``LSST_SITE`` in ``setUp`` and restore it in ``tearDown``.
Subclasses with ``setUp`` and/or ``tearDown`` methods should call ``super().setUp()`` and/or ``super().tearDown()``.
* If you have unit tests that do not inherit from `BaseCscTestCase` and construct a configurable CSC, you will have to manage the environment variable yourself.

* Breaking Changes:

* Eliminate `BaseCsc.report_summary_state`. Use ``handle_summary_state`` instead.
* Make `BaseCsc.fault` async.
* Make `BaseScript.set_state` async.
* Make `Controller.put_log_level` async.
* Change `topics.CommandEvent`, `topics.CommandTelemetry` and `topics.WriteTopic` ``put`` and ``set_put`` to asynchronous `write` and `set_write`.
``write`` does not support writing a data instance; call ``set`` or ``set_write`` to set data.
* Make `topics.ControllerCommand.ack` and ``ack_in_progress`` async and delete deprecated ``ackInProgress``.
* `TestCsc`: eliminate the topic-type-specific ``make_random_[cmd/evt/tel]_[arrays/scalars]`` methods.
Use the new ``make_random_[arrays/scalars]_dict`` methods, instead.
* Delete ``assert_black_formatted`` and ``tests/test_black.py``; use pytest-black instead.
* `IdlMetadata`: eliminate the ``str_length`` field (RFC-827).
* Modify `topics.BaseTopic`, `topics.ReadTopic`, and `topics.WriteTopic`: use constructor argument ``attr_name`` instead of ``name`` and ``sal_prefix``.

* Eliminate the following deprecated features:

* Configuration schema must be defined in code; salobj will no longer read it from a file:

* `ConfigurableCsc`: eliminate the deprecated ``schema_path`` constructor argument.
* Update `check_standard_config_files` to require that the config schema be a module constant.

* `BaseCsc`: class variable ``valid_simulation_modes`` may no longer be None and class variable ``version`` is required.
* `CscCommander`: ``get_rounded_public_fields`` is gone; use ``get_rounded_public_data`` with the same arguments.
* `Remote`: the ``tel_max_history`` constructor argument is gone.
* `SalInfo`:

* The ``makeAckCmd`` method is gone; use ``make_ackcmd``.
* The ``truncate_result`` argument of ``make_ackcmd`` and the ``MAX_RESULT_LEN`` constant are gone.
Don't worry about length limits.

* `topics.ReadTopic.get`: eliminate the ``flush`` argument.
* `topics.RemoteTelemetry`: the constructor no longer accepts the ``max_history`` argument.
* Delete constants ``MJD_MINUS_UNIX_SECONDS`` and ``SECONDS_PER_DAY`` (use the values in ts_utils).
* Delete functions (use the same-named version in ts_utils, unless otherwise noted):

* ``angle_diff``
* ``angle_wrap_center``
* ``angle_wrap_nonnegative``
* ``assertAnglesAlmostEqual``: use ts_utils ``assert_angles_almost_equal``
* ``astropy_time_from_tai_unix``
* ``current_tai``
* ``index_generator``
* ``make_done_future``
* ``modify_environ``
* ``set_random_lsst_dds_domain``: use ``set_random_lsst_dds_partition_prefix``
* ``tai_from_utc_unix``
* ``tai_from_utc``
* ``utc_from_tai_unix``

* Enhance `CscCommander.make_from_cmd_line` to support index = an IntEnum subclass.
* Update ``Jenkinsfile`` to checkout ts_config_ocs.

Requirements:

* ts_ddsconfig
* ts_idl 2
* ts_utils 1.1
* IDL files for Test and Script generated from ts_xml 11

6.9.3

------

* Updated the version of astropy.

Requirements:

* ts_ddsconfig
* ts_idl 2
* ts_utils 1.1
* ts_xml 10.1
* IDL files for Test and Script generated by ts_sal 5
* SALPY_Test generated by ts_sal 5 or 6

6.9.2

------

* Change `set_random_lsst_dds_partition_prefix` to use ``os.urandom``, which cannot be seeded, and to generate shorter strings.
* Fix a few places where ts_salobj's deprecated index_generator was still in use, instead of the version in ts_utils.
* `BaseCscTestCase`: add a ``setUp`` method that calls `set_random_lsst_dds_partition_prefix`.
Retain the existing calls for backwards compatibility with subclasses that define ``setUp`` and don't call ``super().setUp()``.
* `SalInfo`: make ``start`` raise an exception if the instance is already closing or closed.

Requirements:

* ts_ddsconfig
* ts_idl 2
* ts_utils 1.1
* ts_xml 10.1
* IDL files for Test and Script generated by ts_sal 5
* SALPY_Test generated by ts_sal 5 or 6

6.9.1

------

* Move index_generator to ts_utils.
Keep a deprecated copy in ts_salobj, for backwards compatiblity.

Requirements:

* ts_ddsconfig
* ts_idl 2
* ts_utils 1.1
* ts_xml 10.1
* IDL files for Test and Script generated by ts_sal 5
* SALPY_Test generated by ts_sal 5 or 6

6.9.0

------
* Use the new `parse_idl_file` and `make_dds_topic_class` functions in ADLink's ``ddsutil.py``, instead of our versions.
This change requires ts-dds version 6.9 (community) or 6.10 (licensed) build 18.
* Remove deprecated support for environment variable ``LSST_DDS_DOMAIN``.
* `Remote` and `SalInfo`: improve retrieval of historical data in one special case:
reading an indexed SAL component using index=0 in the `Remote` (meaning "read data from all indices").
Formerly there would be only 1 sample of historical data: the most recent sample output with any index.
Now retrieve the most recent sample *for each index*, in the order received.

Requirements:

* ts_ddsconfig
* ts_idl 2
* ts_utils 1
* ts_xml 10.1
* IDL files for Test and Script generated by ts_sal 5
* SALPY_Test generated by ts_sal 5 or 6

6.8.1

------

Changes:

* ``test_dds_utils.py``: fix ``test_dds_get_version`` to handle the case that the ``dds`` module has a ``__version__`` attribute.
This makes the test compatible with OpenSplice 6.11, while retaining compatibility with 6.10.

Requirements:

* ts_ddsconfig
* ts_idl 2
* ts_utils 1
* ts_xml 6.2
* IDL files for Test and Script generated by ts_sal 5
* SALPY_Test generated by ts_sal 5 or 6

Page 1 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.