libinephany 0.13.6__py3-none-any.whl → 0.13.8__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.
@@ -6,14 +6,13 @@
6
6
 
7
7
  from typing import Any
8
8
 
9
- from loguru import logger
10
-
11
9
  from libinephany.observations import observation_utils, statistic_trackers
12
10
  from libinephany.observations.observation_utils import StatisticStorageTypes
13
11
  from libinephany.observations.observers.base_observers import LocalObserver
14
12
  from libinephany.pydantic_models.schemas.observation_models import ObservationInputs
15
13
  from libinephany.pydantic_models.schemas.tensor_statistics import TensorStatistics
16
14
  from libinephany.pydantic_models.states.hyperparameter_states import HyperparameterStates
15
+ from libinephany.utils import exceptions
17
16
  from libinephany.utils.enums import ModuleTypes
18
17
  from libinephany.utils.transforms import HyperparameterTransformType
19
18
 
@@ -412,7 +411,9 @@ class ActionSchemeOneHot(LocalObserver):
412
411
  def __init__(self, **kwargs) -> None:
413
412
  super().__init__(**kwargs)
414
413
 
415
- logger.warning(f"{self.__class__.__name__} is deprecated and will be removed in an upcoming release.")
414
+ exceptions.warn_once(
415
+ f"{str(self.__class__.__name__)} is deprecated and will be removed in an upcoming release."
416
+ )
416
417
 
417
418
  @property
418
419
  def vector_length(self) -> int:
@@ -580,7 +581,7 @@ class ModuleTypeOneHot(LocalObserver):
580
581
  agent_modules = self.observer_config.agent_modules
581
582
  module_type = agent_modules[self.parameter_group_name]
582
583
 
583
- if module_type in ModuleTypes:
584
+ if module_type in {field.value for field in ModuleTypes}:
584
585
  one_hot_index = ModuleTypes.get_index(module_type)
585
586
 
586
587
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libinephany
3
- Version: 0.13.6
3
+ Version: 0.13.8
4
4
  Summary: Inephany library containing code commonly used by multiple subpackages.
5
5
  Author-email: Inephany <info@inephany.com>
6
6
  License: Apache 2.0
@@ -10,7 +10,7 @@ libinephany/observations/statistic_trackers.py,sha256=flkXquMHvY6YjnQAvRElsV5OUm
10
10
  libinephany/observations/observers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  libinephany/observations/observers/base_observers.py,sha256=RkG5SW0b6Ooy0_oscRHxyB_YFNP7k8fxu37jBZElxIM,15418
12
12
  libinephany/observations/observers/global_observers.py,sha256=-BJJaYjQSO82qskIlY_iijd3Lk1Ei1d3Hg1fzmYUPSM,38659
13
- libinephany/observations/observers/local_observers.py,sha256=sZmM2Oa2VUGhsnN6LhcHSRB3AF8lzVdvAmmXnfWNP70,36976
13
+ libinephany/observations/observers/local_observers.py,sha256=EdivrylOcmxRsu4xiMwZqwmPX8Ru9-IRwoPk6En7qvw,37050
14
14
  libinephany/observations/observers/observer_containers.py,sha256=g73ScbRRVTNbGEBb-Nyk8AQwoDhKZaqTd6OYP8FIcOs,8771
15
15
  libinephany/observations/post_processors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  libinephany/observations/post_processors/postprocessors.py,sha256=43_e5UaDPr2KbAvqc_w3wLqnlm7bgRjqgCtyQ95-8cM,5913
@@ -50,8 +50,8 @@ libinephany/utils/typing.py,sha256=rGbaPO3MaUndsWiC_wHzReD_TOLYqb43i01pKN-j7Xs,6
50
50
  libinephany/web_apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  libinephany/web_apps/error_logger.py,sha256=gAQIaqerqP4ornXZwFF1cghjnd2mMZEt3aVrTuUCr34,16653
52
52
  libinephany/web_apps/web_app_utils.py,sha256=qiq_lasPipgN1RgRudPJc342kYci8O_4RqppxmIX8NY,4095
53
- libinephany-0.13.6.dist-info/licenses/LICENSE,sha256=pogfDoMBP07ehIOvWymuWIar8pg2YLUhqOHsJQU3wdc,9250
54
- libinephany-0.13.6.dist-info/METADATA,sha256=wYUfUWjCnUSMNFqlMQlxqjiGBZ4e3PKV-8OUitF59GY,8354
55
- libinephany-0.13.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
- libinephany-0.13.6.dist-info/top_level.txt,sha256=bYAOXQdJgIoLkO2Ui0kxe7pSYegS_e38u0dMscd7COQ,12
57
- libinephany-0.13.6.dist-info/RECORD,,
53
+ libinephany-0.13.8.dist-info/licenses/LICENSE,sha256=pogfDoMBP07ehIOvWymuWIar8pg2YLUhqOHsJQU3wdc,9250
54
+ libinephany-0.13.8.dist-info/METADATA,sha256=cW9naaWcJk4FzvxOuhax_JgNqNInbOZKz-ffZQKRxuk,8354
55
+ libinephany-0.13.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
+ libinephany-0.13.8.dist-info/top_level.txt,sha256=bYAOXQdJgIoLkO2Ui0kxe7pSYegS_e38u0dMscd7COQ,12
57
+ libinephany-0.13.8.dist-info/RECORD,,