Skip to content

Commit 10e2a55

Browse files
committed
>> reintegrated pydantic as hard dependency
>> moved all tests related to the ConstrainedSession class to a new test_constrained_session.py module >> moved the ConstrainedSession class and related functions and classes to a new constrained.py module >> simplified ModelMetaclass.__new__() >> added skip_validation flag to _check_key_value(), __setattr__() and __setitem__() >> updated test_create_constrainedsession_instance() and _test_io_cs() >> fix larray-project#866 : added Parameters class
1 parent a6f7141 commit 10e2a55

File tree

6 files changed

+1238
-1122
lines changed

6 files changed

+1238
-1122
lines changed

doc/source/api.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,13 +815,13 @@ Load/Save
815815
Session.to_hdf
816816
Session.to_pickle
817817

818-
ArrayDef
819-
========
818+
ConstrainedArray
819+
================
820820

821821
.. autosummary::
822822
:toctree: _generated/
823823

824-
ArrayDef
824+
ConstrainedArray
825825

826826
ConstrainedSession
827827
==================
@@ -831,6 +831,14 @@ ConstrainedSession
831831

832832
ConstrainedSession
833833

834+
Parameters
835+
==========
836+
837+
.. autosummary::
838+
:toctree: _generated/
839+
840+
Parameters
841+
834842
.. _api-editor:
835843

836844
Editor

larray/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
full_like, sequence, labels_array, ndtest, asarray, identity, diag,
1010
eye, all, any, sum, prod, cumsum, cumprod, min, max, mean, ptp, var,
1111
std, median, percentile, stack, zip_array_values, zip_array_items)
12-
from larray.core.session import Session, ConstrainedSession, ConstrainedArray, local_arrays, global_arrays, arrays
12+
from larray.core.session import Session, local_arrays, global_arrays, arrays
13+
from larray.core.constrained import ConstrainedArray, ConstrainedSession, Parameters
1314
from larray.core.constants import nan, inf, pi, e, euler_gamma
1415
from larray.core.metadata import Metadata
1516
from larray.core.ufuncs import wrap_elementwise_array_func, maximum, minimum, where
@@ -58,7 +59,9 @@
5859
'all', 'any', 'sum', 'prod', 'cumsum', 'cumprod', 'min', 'max', 'mean', 'ptp', 'var', 'std',
5960
'median', 'percentile', 'stack', 'zip_array_values', 'zip_array_items',
6061
# session
61-
'Session', 'ConstrainedSession', 'ConstrainedArray', 'local_arrays', 'global_arrays', 'arrays',
62+
'Session', 'local_arrays', 'global_arrays', 'arrays',
63+
# constrained
64+
'ConstrainedArray', 'ConstrainedSession', 'Parameters',
6265
# constants
6366
'nan', 'inf', 'pi', 'e', 'euler_gamma',
6467
# metadata

0 commit comments

Comments
 (0)