core
    
            category
    
            CategoryCollection
    
              Bases: CollectionBase
Handles loop-style category containers (e.g. AtomSites).
Each item is a CategoryItem (component).
Source code in src/easydiffraction/core/category.py
                42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82  |  | 
            __str__()
    Human-readable representation of this component.
Source code in src/easydiffraction/core/category.py
              48 49 50 51 52  |  | 
            add(item)
    Add an item to the collection.
Source code in src/easydiffraction/core/category.py
              71 72 73 74  |  | 
            add_from_args(*args, **kwargs)
    Create and add a new child instance from the provided arguments.
Source code in src/easydiffraction/core/category.py
              76 77 78 79 80 81 82  |  | 
            as_cif
  
      property
  
    Return CIF representation of this object.
            parameters
  
      property
  
    All parameters from all items in this collection.
            CategoryItem
    
              Bases: GuardedBase
Base class for items in a category collection.
Source code in src/easydiffraction/core/category.py
                14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39  |  | 
            __str__()
    Human-readable representation of this component.
Source code in src/easydiffraction/core/category.py
              17 18 19 20 21  |  | 
            as_cif
  
      property
  
    Return CIF representation of this object.
            collection
    Lightweight container for guarded items with name-based indexing.
CollectionBase maintains an ordered list of items and a lazily rebuilt
index by the item's identity key. It supports dict-like access for get,
set and delete, along with iteration over the items.
            CollectionBase
    
              Bases: GuardedBase
A minimal collection with stable iteration and name indexing.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                item_type
             | 
            
               Type of items accepted by the collection. Used for validation and tooling; not enforced at runtime here.  | 
            required | 
Source code in src/easydiffraction/core/collection.py
                15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102  |  | 
            __delitem__(name)
    Delete an item by key or raise KeyError if missing.
Source code in src/easydiffraction/core/collection.py
              54 55 56 57 58 59 60 61 62 63  |  | 
            __getitem__(name)
    Return an item by its identity key.
Rebuilds the internal index on a cache miss to stay consistent with recent mutations.
Source code in src/easydiffraction/core/collection.py
              29 30 31 32 33 34 35 36 37 38 39  |  | 
            __iter__()
    Iterate over items in insertion order.
Source code in src/easydiffraction/core/collection.py
              65 66 67  |  | 
            __len__()
    Return the number of items in the collection.
Source code in src/easydiffraction/core/collection.py
              69 70 71  |  | 
            __setitem__(name, item)
    Insert or replace an item under the given identity key.
Source code in src/easydiffraction/core/collection.py
              41 42 43 44 45 46 47 48 49 50 51 52  |  | 
            items()
    Yield (key, item) pairs in insertion order.
Source code in src/easydiffraction/core/collection.py
              95 96 97  |  | 
            keys()
    Yield keys for all items in insertion order.
Source code in src/easydiffraction/core/collection.py
              87 88 89  |  | 
            names
  
      property
  
    List of all item keys in the collection.
            values()
    Yield items in insertion order.
Source code in src/easydiffraction/core/collection.py
              91 92 93  |  | 
            datablock
    
            DatablockCollection
    
              Bases: CollectionBase
Handles top-level category collections (e.g. SampleModels, Experiments).
Each item is a DatablockItem.
Source code in src/easydiffraction/core/datablock.py
                47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90  |  | 
            __str__()
    Human-readable representation of this component.
Source code in src/easydiffraction/core/datablock.py
              54 55 56 57 58  |  | 
            add(item)
    Add an item to the collection.
Source code in src/easydiffraction/core/datablock.py
              87 88 89 90  |  | 
            as_cif
  
      property
  
    Return CIF representation of this object.
            parameters
  
      property
  
    All parameters from all datablocks in this collection.
            DatablockItem
    
              Bases: GuardedBase
Base class for items in a datablock collection.
Source code in src/easydiffraction/core/datablock.py
                17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44  |  | 
            __str__()
    Human-readable representation of this component.
Source code in src/easydiffraction/core/datablock.py
              20 21 22 23 24  |  | 
            as_cif
  
      property
  
    Return CIF representation of this object.
            parameters
  
      property
  
    All parameters from all categories contained in this datablock.
            diagnostic
    Diagnostics helpers for logging validation messages.
This module centralizes human-friendly error and debug logs for attribute validation and configuration checks.
            Diagnostics
    Centralized logger for attribute errors and validation hints.
Source code in src/easydiffraction/core/diagnostic.py
                14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217  |  | 
            attr_error(name, key, allowed, label='Allowed')
  
      staticmethod
  
    Log access to an unknown attribute and suggest closest key.
Source code in src/easydiffraction/core/diagnostic.py
              51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67  |  | 
            choice_mismatch(name, value, allowed, current=None, default=None)
  
      staticmethod
  
    Log an invalid choice against allowed values.
Source code in src/easydiffraction/core/diagnostic.py
              106 107 108 109 110 111 112 113 114 115 116 117 118 119 120  |  | 
            no_value(name, default)
  
      staticmethod
  
    Log that default will be used due to missing value.
Source code in src/easydiffraction/core/diagnostic.py
              138 139 140 141  |  | 
            none_value(name)
  
      staticmethod
  
    Log explicit None provided by a user.
Source code in src/easydiffraction/core/diagnostic.py
              143 144 145 146  |  | 
            none_value_skip_range(name)
  
      staticmethod
  
    Log that range validation is skipped due to None.
Source code in src/easydiffraction/core/diagnostic.py
              148 149 150 151 152 153  |  | 
            range_mismatch(name, value, ge, le, current=None, default=None)
  
      staticmethod
  
    Log range violation for a numeric value.
Source code in src/easydiffraction/core/diagnostic.py
              91 92 93 94 95 96 97 98 99 100 101 102 103 104  |  | 
            readonly_error(name, key=None)
  
      staticmethod
  
    Log an attempt to change a read-only attribute.
Source code in src/easydiffraction/core/diagnostic.py
              40 41 42 43 44 45 46 47 48 49  |  | 
            regex_mismatch(name, value, pattern, current=None, default=None)
  
      staticmethod
  
    Log a regex mismatch with the expected pattern.
Source code in src/easydiffraction/core/diagnostic.py
              122 123 124 125 126 127 128 129 130 131 132 133 134 135 136  |  | 
            type_mismatch(name, value, expected_type, current=None, default=None)
  
      staticmethod
  
    Log a type mismatch and keep current or default value.
Source code in src/easydiffraction/core/diagnostic.py
              73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89  |  | 
            type_override_error(cls_name, expected, got)
  
      staticmethod
  
    Report an invalid DataTypes override.
Used when descriptor and AttributeSpec types conflict.
Source code in src/easydiffraction/core/diagnostic.py
              21 22 23 24 25 26 27 28 29 30 31 32 33 34  |  | 
            validated(name, value, stage=None)
  
      staticmethod
  
    Log that a value passed a validation stage.
Source code in src/easydiffraction/core/diagnostic.py
              155 156 157 158 159  |  | 
            factory
    
            FactoryBase
    Reusable argument validation mixin.
Source code in src/easydiffraction/core/factory.py
                8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36  |  | 
            guard
    
            GuardedBase
    
              Bases: ABC
Base class enforcing controlled attribute access and parent linkage.
Source code in src/easydiffraction/core/guard.py
                11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144  |  | 
            as_cif
  
      abstractmethod
      property
  
    Return CIF representation of this object (to be implemented by subclasses).
            parameters
  
      abstractmethod
      property
  
    Return a list of parameter objects (to be implemented by subclasses).
            identity
    Identity helpers to build CIF-like hierarchical names.
Used by containers and items to expose datablock/category/entry names without tight coupling.
            Identity
    Resolve datablock/category/entry relationships lazily.
Source code in src/easydiffraction/core/identity.py
                12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77  |  | 
            category_code
  
      property
      writable
  
    Category code like 'atom_site' or 'background'.
            category_entry_name
  
      property
      writable
  
    Category entry name or None if not set.
            datablock_entry_name
  
      property
      writable
  
    Datablock entry name or None if not set.
            parameters
    
            GenericDescriptorBase
    
              Bases: GuardedBase
Base class for all parameter-like descriptors.
A descriptor encapsulates a typed value with validation, human-readable name/description and a globally unique identifier that is stable across the session. Concrete subclasses specialize the expected data type and can extend the public API with additional behavior (e.g. units).
Attributes:
| Name | Type | Description | 
|---|---|---|
name | 
            
                  str
             | 
            
               Local parameter name (e.g. 'a', 'b_iso').  | 
          
description | 
            
               Optional human-readable description.  | 
          |
uid | 
            
               Stable random identifier for external references.  | 
          
Source code in src/easydiffraction/core/parameters.py
                26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156  |  | 
            __init__(*, value_spec, name, description=None)
    Initialize the descriptor with validation and identity.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                value_spec
             | 
            
                  AttributeSpec
             | 
            
               Validation specification for the value.  | 
            required | 
                name
             | 
            
                  str
             | 
            
               Local name of the descriptor within its category.  | 
            required | 
                description
             | 
            
                  str
             | 
            
               Optional human-readable description.  | 
            
                  None
             | 
          
Source code in src/easydiffraction/core/parameters.py
              46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90  |  | 
            as_cif
  
      property
  
    Serialize this descriptor to a CIF-formatted string.
            description
  
      property
  
    Optional human-readable description.
            name
  
      property
  
    Local name of the descriptor (without category/datablock).
            parameters
  
      property
  
    Return a flat list of parameters contained by this object.
For a single descriptor, it returns a one-element list with itself. Composite objects override this to flatten nested structures.
            uid
  
      property
  
    Stable random identifier for this descriptor.
            unique_name
  
      property
  
    Fully qualified name including datablock, category and entry name.
            value
  
      property
      writable
  
    Current validated value.
            GenericNumericDescriptor
    
              Bases: GenericDescriptorBase
Source code in src/easydiffraction/core/parameters.py
                169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191  |  | 
            units
  
      property
  
    Units associated with the numeric value, if any.
            GenericParameter
    
              Bases: GenericNumericDescriptor
Numeric descriptor extended with fitting-related attributes.
Adds standard attributes used by minimizers: "free" flag, uncertainty, bounds and an optional starting value. Subclasses can integrate with specific backends while preserving this interface.
Source code in src/easydiffraction/core/parameters.py
                194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311  |  | 
            constrained
  
      property
  
    Whether this parameter is part of a constraint expression.
            fit_max
  
      property
      writable
  
    Upper fitting bound.
            fit_min
  
      property
      writable
  
    Lower fitting bound.
            free
  
      property
      writable
  
    Whether this parameter is currently varied during fitting.
            name
  
      property
  
    Local name of the parameter (without category/datablock).
            uncertainty
  
      property
      writable
  
    Estimated standard uncertainty of the fitted value, if available.
            unique_name
  
      property
  
    Fully qualified parameter name including its context path.
            NumericDescriptor
    
              Bases: GenericNumericDescriptor
Source code in src/easydiffraction/core/parameters.py
                332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347  |  | 
            __init__(*, cif_handler, **kwargs)
    Numeric descriptor bound to a CIF handler.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                cif_handler
             | 
            
                  CifHandler
             | 
            
               Object that tracks CIF identifiers.  | 
            required | 
                **kwargs
             | 
            
                  Any
             | 
            
               Forwarded to GenericNumericDescriptor.  | 
            
                  {}
             | 
          
Source code in src/easydiffraction/core/parameters.py
              333 334 335 336 337 338 339 340 341 342 343 344 345 346 347  |  | 
            Parameter
    
              Bases: GenericParameter
Source code in src/easydiffraction/core/parameters.py
                350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365  |  | 
            __init__(*, cif_handler, **kwargs)
    Fittable parameter bound to a CIF handler.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                cif_handler
             | 
            
                  CifHandler
             | 
            
               Object that tracks CIF identifiers.  | 
            required | 
                **kwargs
             | 
            
                  Any
             | 
            
               Forwarded to GenericParameter.  | 
            
                  {}
             | 
          
Source code in src/easydiffraction/core/parameters.py
              351 352 353 354 355 356 357 358 359 360 361 362 363 364 365  |  | 
            StringDescriptor
    
              Bases: GenericStringDescriptor
Source code in src/easydiffraction/core/parameters.py
                314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329  |  | 
            __init__(*, cif_handler, **kwargs)
    String descriptor bound to a CIF handler.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                cif_handler
             | 
            
                  CifHandler
             | 
            
               Object that tracks CIF identifiers.  | 
            required | 
                **kwargs
             | 
            
                  Any
             | 
            
               Forwarded to GenericStringDescriptor.  | 
            
                  {}
             | 
          
Source code in src/easydiffraction/core/parameters.py
              315 316 317 318 319 320 321 322 323 324 325 326 327 328 329  |  | 
            singletons
    
            ConstraintsHandler
    
              Bases: SingletonBase
Manages user-defined parameter constraints using aliases and expressions.
Uses the asteval interpreter for safe evaluation of mathematical expressions. Constraints are defined as: lhs_alias = expression(rhs_aliases).
Source code in src/easydiffraction/core/singletons.py
                76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171  |  | 
            apply()
    Evaluates constraints and applies them to dependent parameters.
For each constraint: - Evaluate RHS using current values of aliases - Locate the dependent parameter by alias → uid → param - Update its value and mark it as constrained
Source code in src/easydiffraction/core/singletons.py
              130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171  |  | 
            set_aliases(aliases)
    Sets the alias map (name → parameter wrapper).
Called when user registers parameter aliases like
alias='biso_La', param=model.atom_sites['La'].b_iso
Source code in src/easydiffraction/core/singletons.py
              97 98 99 100 101 102 103  |  | 
            set_constraints(constraints)
    Sets the constraints and triggers parsing into internal format.
Called when user registers expressions like
lhs_alias='occ_Ba', rhs_expr='1 - occ_La'
Source code in src/easydiffraction/core/singletons.py
              105 106 107 108 109 110 111 112 113  |  | 
            SingletonBase
    Base class to implement Singleton pattern.
Ensures only one shared instance of a class is ever created. Useful for managing shared state across the library.
Source code in src/easydiffraction/core/singletons.py
                16 17 18 19 20 21 22 23 24 25 26 27 28 29 30  |  | 
            get()
  
      classmethod
  
    Returns the shared instance, creating it if needed.
Source code in src/easydiffraction/core/singletons.py
              25 26 27 28 29 30  |  | 
            UidMapHandler
    
              Bases: SingletonBase
Global handler to manage UID-to-Parameter object mapping.
Source code in src/easydiffraction/core/singletons.py
                33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69  |  | 
            add_to_uid_map(parameter)
    Adds a single Parameter or Descriptor object to the UID map.
Only Descriptor or Parameter instances are allowed (not Components or others).
Source code in src/easydiffraction/core/singletons.py
              44 45 46 47 48 49 50 51 52 53 54 55 56 57  |  | 
            get_uid_map()
    Returns the current UID-to-Parameter map.
Source code in src/easydiffraction/core/singletons.py
              40 41 42  |  | 
            replace_uid(old_uid, new_uid)
    Replaces an existing UID key in the UID map with a new UID.
Moves the associated parameter from old_uid to new_uid. Raises a KeyError if the old_uid doesn't exist.
Source code in src/easydiffraction/core/singletons.py
              59 60 61 62 63 64 65 66 67 68 69  |  | 
            validation
    Lightweight runtime validation utilities.
Provides DataTypes, type/content validators, and AttributeSpec used by descriptors and parameters. Only documentation was added here.
            AttributeSpec
    Hold metadata and validators for a single attribute.
Source code in src/easydiffraction/core/validation.py
                288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345  |  | 
            validated(value, name, current=None)
    Validate through type and content validators.
Returns validated value, possibly default or current if errors occur. None may short-circuit further checks when allowed.
Source code in src/easydiffraction/core/validation.py
              306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345  |  | 
            DataTypes
    
              Bases: Enum
Source code in src/easydiffraction/core/validation.py
                28 29 30 31 32 33 34 35 36 37 38 39 40  |  | 
            expected_type
  
      property
  
    Convenience alias for tuple of allowed Python types.
            MembershipValidator
    
              Bases: ValidatorBase
Ensure that a value is among allowed choices.
allowed may be an iterable or a callable returning a collection.
Source code in src/easydiffraction/core/validation.py
                212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248  |  | 
            validated(value, name, default=None, current=None)
    Validate membership and return value or fallback.
Source code in src/easydiffraction/core/validation.py
              222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248  |  | 
            RangeValidator
    
              Bases: ValidatorBase
Ensure a numeric value lies within [ge, le].
Source code in src/easydiffraction/core/validation.py
                174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209  |  | 
            validated(value, name, default=None, current=None)
    Validate range and return value or fallback.
Source code in src/easydiffraction/core/validation.py
              185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209  |  | 
            RegexValidator
    
              Bases: ValidatorBase
Ensure that a string matches a given regular expression.
Source code in src/easydiffraction/core/validation.py
                251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280  |  | 
            validated(value, name, default=None, current=None)
    Validate regex and return value or fallback.
Source code in src/easydiffraction/core/validation.py
              257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280  |  | 
            TypeValidator
    
              Bases: ValidatorBase
Ensure a value is of the expected Python type.
Source code in src/easydiffraction/core/validation.py
                123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171  |  | 
            validated(value, name, default=None, current=None, allow_none=False)
    Validate type and return value or fallback.
If allow_none is True, None bypasses content checks.
Source code in src/easydiffraction/core/validation.py
              133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171  |  | 
            ValidationStage
    
              Bases: Enum
Phases of validation for diagnostic logging.
Source code in src/easydiffraction/core/validation.py
                86 87 88 89 90 91 92 93 94 95  |  | 
            ValidatorBase
    
              Bases: ABC
Abstract base class for all validators.
Source code in src/easydiffraction/core/validation.py
                103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120  |  | 
            validated(value, name, default=None, current=None)
  
      abstractmethod
  
    Return a validated value or fallback.
Subclasses must implement this method.
Source code in src/easydiffraction/core/validation.py
              106 107 108 109 110 111 112  |  | 
            checktype(func=None, *, context=None)
    Runtime type check decorator using typeguard.
When a TypeCheckError occurs, the error is logged and None is returned. If context is provided, it is added to the message.
Source code in src/easydiffraction/core/validation.py
              53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78  |  |