@climateriskcommons/crc-framework 0.6.0 → 1.0.0-alpha.1

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.
@@ -0,0 +1,2631 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "package": "crc-framework",
4
+ "canonical_module": "crc_framework",
5
+ "type_aliases": {
6
+ "ArrayLike": "Sequence[float] | FloatArray",
7
+ "Values": "float | ArrayLike",
8
+ "ValueResult": "float | FloatArray",
9
+ "FloatArray": "numpy.typing.NDArray[numpy.float64]",
10
+ "Unit": "LengthUnit | TimeUnit | RatioUnit | TemperatureUnit | SpeedUnit | PrecipitationRateUnit | DegreeDayUnit",
11
+ "ScientificValue": "None | bool | int | float | str | Sequence[ScientificValue] | Mapping[str, ScientificValue]",
12
+ "ConvergedFitDiagnostic": "SampleFitDiagnostic | QuantileFitDiagnostic | CensoredQuantileFitDiagnostic | HurdleQuantileFitDiagnostic"
13
+ },
14
+ "exports": {
15
+ "Aggregation": {
16
+ "kind": "enum",
17
+ "members": {
18
+ "MAXIMUM": "maximum",
19
+ "MINIMUM": "minimum",
20
+ "MEAN": "mean",
21
+ "SUM": "sum",
22
+ "COUNT": "count"
23
+ }
24
+ },
25
+ "AssetType": {
26
+ "kind": "enum",
27
+ "members": {
28
+ "RESIDENTIAL": "residential",
29
+ "COMMERCIAL": "commercial",
30
+ "INDUSTRIAL": "industrial",
31
+ "AGRICULTURAL_BUILDING": "agricultural_building",
32
+ "TRANSPORT": "transport",
33
+ "ROADS": "roads",
34
+ "AGRICULTURAL_LAND": "agricultural_land"
35
+ }
36
+ },
37
+ "BinaryOutcome": {
38
+ "kind": "class",
39
+ "constructor": {
40
+ "parameters": [
41
+ {
42
+ "name": "id",
43
+ "kind": "positional_or_keyword",
44
+ "annotation": "str"
45
+ },
46
+ {
47
+ "name": "lower_rank_mass",
48
+ "kind": "keyword_only",
49
+ "annotation": "float"
50
+ },
51
+ {
52
+ "name": "lower_impact",
53
+ "kind": "keyword_only",
54
+ "annotation": "float"
55
+ },
56
+ {
57
+ "name": "upper_rank_mass",
58
+ "kind": "keyword_only",
59
+ "annotation": "float"
60
+ },
61
+ {
62
+ "name": "upper_impact",
63
+ "kind": "keyword_only",
64
+ "annotation": "float"
65
+ }
66
+ ],
67
+ "returns": "BinaryOutcome"
68
+ },
69
+ "properties": {
70
+ "id": "str",
71
+ "lower_rank_mass": "float",
72
+ "lower_impact": "float",
73
+ "upper_rank_mass": "float",
74
+ "upper_impact": "float"
75
+ }
76
+ },
77
+ "BuiltinImpact": {
78
+ "kind": "enum",
79
+ "members": {
80
+ "FREEZE_THAW_CYCLES": "crc:freeze_thaw_cycles",
81
+ "FROST_DAYS": "crc:frost_days",
82
+ "MAXIMUM_DAILY_PRECIPITATION": "crc:maximum_daily_precipitation",
83
+ "CYCLONE": "crc:cyclone",
84
+ "MAXIMUM_DAILY_WIND_SPEED": "crc:maximum_daily_wind_speed",
85
+ "FIRE_WEATHER_INDEX": "crc:fire_weather_index",
86
+ "HOT_DAYS": "crc:hot_days",
87
+ "COASTAL_FLOOD": "crc:coastal_flood",
88
+ "RIVER_FLOOD": "crc:river_flood",
89
+ "INUNDATION": "crc:inundation",
90
+ "STANDARDIZED_PRECIPITATION_EVAPOTRANSPIRATION_INDEX": "crc:standardized_precipitation_evapotranspiration_index",
91
+ "COOLING_DEGREE_DAYS": "crc:cooling_degree_days",
92
+ "COOLING_DEGREE_DAYS_CROP_YIELD": "crc:cooling_degree_days_crop_yield",
93
+ "CONSECUTIVE_DRY_DAYS": "crc:consecutive_dry_days"
94
+ }
95
+ },
96
+ "CellContext": {
97
+ "kind": "class",
98
+ "constructor": {
99
+ "parameters": [
100
+ {
101
+ "name": "cell",
102
+ "kind": "keyword_only",
103
+ "annotation": "int | ContextValue"
104
+ }
105
+ ],
106
+ "returns": "CellContext"
107
+ },
108
+ "properties": {
109
+ "schema": "Mapping[str, ScientificValue]",
110
+ "cell": "int | ContextValue"
111
+ },
112
+ "methods": {
113
+ "to_json": {
114
+ "parameters": [],
115
+ "returns": "str",
116
+ "binding": "instance"
117
+ },
118
+ "from_json": {
119
+ "parameters": [
120
+ {
121
+ "name": "text",
122
+ "kind": "positional_or_keyword",
123
+ "annotation": "str"
124
+ }
125
+ ],
126
+ "returns": "ImpactContext",
127
+ "binding": "class"
128
+ }
129
+ }
130
+ },
131
+ "CensoredQuantileFit": {
132
+ "kind": "class",
133
+ "constructor": {
134
+ "parameters": [
135
+ {
136
+ "name": "family",
137
+ "kind": "keyword_only",
138
+ "annotation": "DistributionFamily"
139
+ },
140
+ {
141
+ "name": "censor_location",
142
+ "kind": "keyword_only",
143
+ "annotation": "float"
144
+ },
145
+ {
146
+ "name": "minimum_knots",
147
+ "kind": "keyword_only",
148
+ "annotation": "int",
149
+ "default": 4
150
+ },
151
+ {
152
+ "name": "residual_scale_floor_ratio",
153
+ "kind": "keyword_only",
154
+ "annotation": "float",
155
+ "default": 0.001
156
+ },
157
+ {
158
+ "name": "constraints",
159
+ "kind": "keyword_only",
160
+ "annotation": "FitConstraints | None",
161
+ "default": null
162
+ }
163
+ ],
164
+ "returns": "CensoredQuantileFit"
165
+ },
166
+ "methods": {
167
+ "to_json": {
168
+ "parameters": [],
169
+ "returns": "str",
170
+ "binding": "instance"
171
+ },
172
+ "from_json": {
173
+ "parameters": [
174
+ {
175
+ "name": "text",
176
+ "kind": "positional_or_keyword",
177
+ "annotation": "str"
178
+ }
179
+ ],
180
+ "returns": "FitSpec",
181
+ "binding": "class"
182
+ }
183
+ },
184
+ "properties": {
185
+ "kind": "FitKind",
186
+ "family": "DistributionFamily",
187
+ "censor_location": "float",
188
+ "minimum_knots": "int",
189
+ "residual_scale_floor_ratio": "float",
190
+ "constraints": "FitConstraints | None"
191
+ }
192
+ },
193
+ "CensoredQuantileFitDiagnostic": {
194
+ "kind": "class",
195
+ "properties": {
196
+ "iterations": "int",
197
+ "evaluations": "int",
198
+ "normalized_rmse": "float",
199
+ "normalization_scale": "float",
200
+ "rmse": "float",
201
+ "weighted_r_squared": "float",
202
+ "maximum_absolute_residual": "float",
203
+ "negative_log_likelihood": "float",
204
+ "residual_scale": "float",
205
+ "residual_scale_floor": "float",
206
+ "censored_count": "int",
207
+ "uncensored_count": "int"
208
+ }
209
+ },
210
+ "ClimateIndex": {
211
+ "kind": "class",
212
+ "constructor": {
213
+ "parameters": [
214
+ {
215
+ "name": "index",
216
+ "kind": "keyword_only",
217
+ "annotation": "ClimateIndexKind"
218
+ },
219
+ {
220
+ "name": "accumulation_duration",
221
+ "kind": "keyword_only",
222
+ "annotation": "Duration | None",
223
+ "default": null
224
+ },
225
+ {
226
+ "name": "reference_period",
227
+ "kind": "keyword_only",
228
+ "annotation": "ReferencePeriod | None",
229
+ "default": null
230
+ }
231
+ ],
232
+ "returns": "ClimateIndex"
233
+ },
234
+ "properties": {
235
+ "quantity": "str",
236
+ "unit": "RatioUnit",
237
+ "fields": "Mapping[str, ScientificValue]",
238
+ "schema": "Mapping[str, ScientificValue] | None",
239
+ "index": "ClimateIndexKind",
240
+ "accumulation_duration": "Duration | None",
241
+ "reference_period": "ReferencePeriod | None"
242
+ },
243
+ "methods": {
244
+ "to_json": {
245
+ "parameters": [],
246
+ "returns": "str",
247
+ "binding": "instance"
248
+ },
249
+ "from_json": {
250
+ "parameters": [
251
+ {
252
+ "name": "text",
253
+ "kind": "positional_or_keyword",
254
+ "annotation": "str"
255
+ }
256
+ ],
257
+ "returns": "Measurement",
258
+ "binding": "class"
259
+ }
260
+ }
261
+ },
262
+ "ClimateIndexKind": {
263
+ "kind": "enum",
264
+ "members": {
265
+ "FIRE_WEATHER_INDEX": "fire_weather_index",
266
+ "STANDARDIZED_PRECIPITATION_EVAPOTRANSPIRATION_INDEX": "standardized_precipitation_evapotranspiration_index"
267
+ }
268
+ },
269
+ "ContextField": {
270
+ "kind": "class",
271
+ "properties": {
272
+ "name": "str",
273
+ "annotation": "str",
274
+ "required": "bool",
275
+ "choices": "tuple[str, ...]",
276
+ "choices_by_asset_type": "Mapping[AssetType, tuple[str, ...]]"
277
+ }
278
+ },
279
+ "ContextValue": {
280
+ "kind": "protocol",
281
+ "properties": {
282
+ "name": "str"
283
+ }
284
+ },
285
+ "CoolingCostContext": {
286
+ "kind": "class",
287
+ "constructor": {
288
+ "parameters": [
289
+ {
290
+ "name": "country",
291
+ "kind": "keyword_only",
292
+ "annotation": "str | ContextValue"
293
+ },
294
+ {
295
+ "name": "asset_type",
296
+ "kind": "keyword_only",
297
+ "annotation": "AssetType | ContextValue"
298
+ },
299
+ {
300
+ "name": "historic_mean",
301
+ "kind": "keyword_only",
302
+ "annotation": "float | ContextValue"
303
+ }
304
+ ],
305
+ "returns": "CoolingCostContext"
306
+ },
307
+ "properties": {
308
+ "schema": "Mapping[str, ScientificValue]",
309
+ "country": "str | ContextValue",
310
+ "asset_type": "AssetType | ContextValue",
311
+ "historic_mean": "float | ContextValue"
312
+ },
313
+ "methods": {
314
+ "to_json": {
315
+ "parameters": [],
316
+ "returns": "str",
317
+ "binding": "instance"
318
+ },
319
+ "from_json": {
320
+ "parameters": [
321
+ {
322
+ "name": "text",
323
+ "kind": "positional_or_keyword",
324
+ "annotation": "str"
325
+ }
326
+ ],
327
+ "returns": "ImpactContext",
328
+ "binding": "class"
329
+ }
330
+ }
331
+ },
332
+ "CountryContext": {
333
+ "kind": "class",
334
+ "constructor": {
335
+ "parameters": [
336
+ {
337
+ "name": "country",
338
+ "kind": "keyword_only",
339
+ "annotation": "str | ContextValue"
340
+ }
341
+ ],
342
+ "returns": "CountryContext"
343
+ },
344
+ "properties": {
345
+ "schema": "Mapping[str, ScientificValue]",
346
+ "country": "str | ContextValue"
347
+ },
348
+ "methods": {
349
+ "to_json": {
350
+ "parameters": [],
351
+ "returns": "str",
352
+ "binding": "instance"
353
+ },
354
+ "from_json": {
355
+ "parameters": [
356
+ {
357
+ "name": "text",
358
+ "kind": "positional_or_keyword",
359
+ "annotation": "str"
360
+ }
361
+ ],
362
+ "returns": "ImpactContext",
363
+ "binding": "class"
364
+ }
365
+ }
366
+ },
367
+ "CropContext": {
368
+ "kind": "class",
369
+ "constructor": {
370
+ "parameters": [
371
+ {
372
+ "name": "country",
373
+ "kind": "keyword_only",
374
+ "annotation": "str | ContextValue"
375
+ },
376
+ {
377
+ "name": "historic_mean",
378
+ "kind": "keyword_only",
379
+ "annotation": "float | ContextValue"
380
+ }
381
+ ],
382
+ "returns": "CropContext"
383
+ },
384
+ "properties": {
385
+ "schema": "Mapping[str, ScientificValue]",
386
+ "country": "str | ContextValue",
387
+ "historic_mean": "float | ContextValue"
388
+ },
389
+ "methods": {
390
+ "to_json": {
391
+ "parameters": [],
392
+ "returns": "str",
393
+ "binding": "instance"
394
+ },
395
+ "from_json": {
396
+ "parameters": [
397
+ {
398
+ "name": "text",
399
+ "kind": "positional_or_keyword",
400
+ "annotation": "str"
401
+ }
402
+ ],
403
+ "returns": "ImpactContext",
404
+ "binding": "class"
405
+ }
406
+ }
407
+ },
408
+ "DegreeDayUnit": {
409
+ "kind": "enum",
410
+ "members": {
411
+ "KELVIN_DAYS": "K.d",
412
+ "CELSIUS_DAYS": "degC.d"
413
+ }
414
+ },
415
+ "DegreeDays": {
416
+ "kind": "class",
417
+ "constructor": {
418
+ "parameters": [
419
+ {
420
+ "name": "unit",
421
+ "kind": "keyword_only",
422
+ "annotation": "DegreeDayUnit"
423
+ },
424
+ {
425
+ "name": "threshold",
426
+ "kind": "keyword_only",
427
+ "annotation": "Threshold"
428
+ },
429
+ {
430
+ "name": "duration",
431
+ "kind": "keyword_only",
432
+ "annotation": "Duration"
433
+ }
434
+ ],
435
+ "returns": "DegreeDays"
436
+ },
437
+ "properties": {
438
+ "quantity": "str",
439
+ "unit": "DegreeDayUnit",
440
+ "fields": "Mapping[str, ScientificValue]",
441
+ "schema": "Mapping[str, ScientificValue] | None",
442
+ "threshold": "Threshold",
443
+ "duration": "Duration"
444
+ },
445
+ "methods": {
446
+ "to_json": {
447
+ "parameters": [],
448
+ "returns": "str",
449
+ "binding": "instance"
450
+ },
451
+ "from_json": {
452
+ "parameters": [
453
+ {
454
+ "name": "text",
455
+ "kind": "positional_or_keyword",
456
+ "annotation": "str"
457
+ }
458
+ ],
459
+ "returns": "Measurement",
460
+ "binding": "class"
461
+ }
462
+ }
463
+ },
464
+ "DepthAboveGround": {
465
+ "kind": "class",
466
+ "constructor": {
467
+ "parameters": [
468
+ {
469
+ "name": "unit",
470
+ "kind": "keyword_only",
471
+ "annotation": "LengthUnit"
472
+ }
473
+ ],
474
+ "returns": "DepthAboveGround"
475
+ },
476
+ "properties": {
477
+ "quantity": "str",
478
+ "unit": "LengthUnit",
479
+ "fields": "Mapping[str, ScientificValue]",
480
+ "schema": "Mapping[str, ScientificValue] | None"
481
+ },
482
+ "methods": {
483
+ "to_json": {
484
+ "parameters": [],
485
+ "returns": "str",
486
+ "binding": "instance"
487
+ },
488
+ "from_json": {
489
+ "parameters": [
490
+ {
491
+ "name": "text",
492
+ "kind": "positional_or_keyword",
493
+ "annotation": "str"
494
+ }
495
+ ],
496
+ "returns": "Measurement",
497
+ "binding": "class"
498
+ }
499
+ }
500
+ },
501
+ "Diagnostic": {
502
+ "kind": "class",
503
+ "properties": {
504
+ "code": "str",
505
+ "message": "str",
506
+ "severity": "DiagnosticSeverity",
507
+ "path": "str",
508
+ "details": "Mapping[str, ScientificValue]"
509
+ }
510
+ },
511
+ "DiagnosticSeverity": {
512
+ "kind": "enum",
513
+ "members": {
514
+ "ERROR": "error",
515
+ "WARNING": "warning",
516
+ "INFO": "info"
517
+ }
518
+ },
519
+ "Distribution": {
520
+ "kind": "class",
521
+ "methods": {
522
+ "parametric": {
523
+ "parameters": [
524
+ {
525
+ "name": "family",
526
+ "kind": "positional_or_keyword",
527
+ "annotation": "DistributionFamily"
528
+ },
529
+ {
530
+ "name": "location",
531
+ "kind": "keyword_only",
532
+ "annotation": "float"
533
+ },
534
+ {
535
+ "name": "scale",
536
+ "kind": "keyword_only",
537
+ "annotation": "float"
538
+ },
539
+ {
540
+ "name": "shape",
541
+ "kind": "keyword_only",
542
+ "annotation": "float | None",
543
+ "default": null
544
+ }
545
+ ],
546
+ "returns": "Distribution",
547
+ "binding": "class"
548
+ },
549
+ "empirical": {
550
+ "parameters": [
551
+ {
552
+ "name": "samples",
553
+ "kind": "positional_or_keyword",
554
+ "annotation": "ArrayLike"
555
+ }
556
+ ],
557
+ "returns": "Distribution",
558
+ "binding": "class"
559
+ },
560
+ "discrete": {
561
+ "parameters": [
562
+ {
563
+ "name": "values",
564
+ "kind": "positional_or_keyword",
565
+ "annotation": "ArrayLike"
566
+ },
567
+ {
568
+ "name": "probabilities",
569
+ "kind": "positional_or_keyword",
570
+ "annotation": "ArrayLike"
571
+ }
572
+ ],
573
+ "returns": "Distribution",
574
+ "binding": "class"
575
+ },
576
+ "histogram": {
577
+ "parameters": [
578
+ {
579
+ "name": "edges",
580
+ "kind": "positional_or_keyword",
581
+ "annotation": "ArrayLike"
582
+ },
583
+ {
584
+ "name": "probabilities",
585
+ "kind": "positional_or_keyword",
586
+ "annotation": "ArrayLike"
587
+ }
588
+ ],
589
+ "returns": "Distribution",
590
+ "binding": "class"
591
+ },
592
+ "point_mass": {
593
+ "parameters": [
594
+ {
595
+ "name": "value",
596
+ "kind": "positional_or_keyword",
597
+ "annotation": "float"
598
+ }
599
+ ],
600
+ "returns": "Distribution",
601
+ "binding": "class"
602
+ },
603
+ "hurdle": {
604
+ "parameters": [
605
+ {
606
+ "name": "base",
607
+ "kind": "positional_or_keyword",
608
+ "annotation": "Distribution"
609
+ },
610
+ {
611
+ "name": "atom_probability",
612
+ "kind": "keyword_only",
613
+ "annotation": "float"
614
+ },
615
+ {
616
+ "name": "atom_location",
617
+ "kind": "keyword_only",
618
+ "annotation": "float",
619
+ "default": 0.0
620
+ }
621
+ ],
622
+ "returns": "Distribution",
623
+ "binding": "class"
624
+ },
625
+ "quantile": {
626
+ "parameters": [
627
+ {
628
+ "name": "probabilities",
629
+ "kind": "positional_or_keyword",
630
+ "annotation": "Values"
631
+ }
632
+ ],
633
+ "returns": "ValueResult",
634
+ "binding": "instance"
635
+ },
636
+ "cdf": {
637
+ "parameters": [
638
+ {
639
+ "name": "values",
640
+ "kind": "positional_or_keyword",
641
+ "annotation": "Values"
642
+ },
643
+ {
644
+ "name": "inclusive",
645
+ "kind": "keyword_only",
646
+ "annotation": "bool",
647
+ "default": true
648
+ }
649
+ ],
650
+ "returns": "ValueResult",
651
+ "binding": "instance"
652
+ },
653
+ "exceedance": {
654
+ "parameters": [
655
+ {
656
+ "name": "values",
657
+ "kind": "positional_or_keyword",
658
+ "annotation": "Values"
659
+ },
660
+ {
661
+ "name": "inclusive",
662
+ "kind": "keyword_only",
663
+ "annotation": "bool",
664
+ "default": false
665
+ }
666
+ ],
667
+ "returns": "ValueResult",
668
+ "binding": "instance"
669
+ },
670
+ "mass": {
671
+ "parameters": [
672
+ {
673
+ "name": "values",
674
+ "kind": "positional_or_keyword",
675
+ "annotation": "Values"
676
+ }
677
+ ],
678
+ "returns": "ValueResult",
679
+ "binding": "instance"
680
+ },
681
+ "sample": {
682
+ "parameters": [
683
+ {
684
+ "name": "size",
685
+ "kind": "positional_or_keyword",
686
+ "annotation": "int | tuple[int, ...]"
687
+ },
688
+ {
689
+ "name": "seed",
690
+ "kind": "keyword_only",
691
+ "annotation": "int | None",
692
+ "default": null
693
+ }
694
+ ],
695
+ "returns": "FloatArray",
696
+ "binding": "instance"
697
+ },
698
+ "statistics": {
699
+ "parameters": [
700
+ {
701
+ "name": "metrics",
702
+ "kind": "keyword_only",
703
+ "annotation": "Sequence[Statistic]"
704
+ },
705
+ {
706
+ "name": "level",
707
+ "kind": "keyword_only",
708
+ "annotation": "float",
709
+ "default": 0.95
710
+ },
711
+ {
712
+ "name": "tail",
713
+ "kind": "keyword_only",
714
+ "annotation": "Tail",
715
+ "default": {
716
+ "enum": "Tail.UPPER"
717
+ }
718
+ }
719
+ ],
720
+ "returns": "StatisticalSummary",
721
+ "binding": "instance"
722
+ },
723
+ "from_json": {
724
+ "parameters": [
725
+ {
726
+ "name": "text",
727
+ "kind": "positional_or_keyword",
728
+ "annotation": "str"
729
+ }
730
+ ],
731
+ "returns": "Distribution",
732
+ "binding": "class"
733
+ },
734
+ "to_json": {
735
+ "parameters": [],
736
+ "returns": "str",
737
+ "binding": "instance"
738
+ }
739
+ },
740
+ "properties": {
741
+ "kind": "DistributionKind",
742
+ "support": "tuple[float, float]"
743
+ }
744
+ },
745
+ "DistributionFamily": {
746
+ "kind": "enum",
747
+ "members": {
748
+ "GENERALIZED_EXTREME_VALUE": "genextreme",
749
+ "WEIBULL_MINIMUM": "weibull_min",
750
+ "WEIBULL_MAXIMUM": "weibull_max",
751
+ "SKEW_NORMAL": "skewnorm",
752
+ "GUMBEL_RIGHT": "gumbel_r",
753
+ "GUMBEL_LEFT": "gumbel_l",
754
+ "GENERALIZED_PARETO": "genpareto"
755
+ }
756
+ },
757
+ "DistributionKind": {
758
+ "kind": "enum",
759
+ "members": {
760
+ "PARAMETRIC": "parametric",
761
+ "DISCRETE": "discrete",
762
+ "HISTOGRAM": "histogram",
763
+ "POINT_MASS": "point_mass",
764
+ "HURDLE": "hurdle",
765
+ "QUANTILE": "quantile",
766
+ "TRANSFORMED": "transformed"
767
+ }
768
+ },
769
+ "Duration": {
770
+ "kind": "class",
771
+ "constructor": {
772
+ "parameters": [
773
+ {
774
+ "name": "value",
775
+ "kind": "positional_or_keyword",
776
+ "annotation": "float"
777
+ },
778
+ {
779
+ "name": "unit",
780
+ "kind": "keyword_only",
781
+ "annotation": "TimeUnit"
782
+ }
783
+ ],
784
+ "returns": "Duration"
785
+ },
786
+ "properties": {
787
+ "value": "float",
788
+ "unit": "TimeUnit"
789
+ },
790
+ "methods": {
791
+ "to_json": {
792
+ "parameters": [],
793
+ "returns": "str",
794
+ "binding": "instance"
795
+ }
796
+ }
797
+ },
798
+ "EmptyContext": {
799
+ "kind": "class",
800
+ "constructor": {
801
+ "parameters": [],
802
+ "returns": "EmptyContext"
803
+ },
804
+ "properties": {
805
+ "schema": "Mapping[str, ScientificValue]"
806
+ },
807
+ "methods": {
808
+ "to_json": {
809
+ "parameters": [],
810
+ "returns": "str",
811
+ "binding": "instance"
812
+ },
813
+ "from_json": {
814
+ "parameters": [
815
+ {
816
+ "name": "text",
817
+ "kind": "positional_or_keyword",
818
+ "annotation": "str"
819
+ }
820
+ ],
821
+ "returns": "ImpactContext",
822
+ "binding": "class"
823
+ }
824
+ }
825
+ },
826
+ "Event": {
827
+ "kind": "enum",
828
+ "members": {
829
+ "FREEZE_THAW_CYCLE": "freeze_thaw_cycle",
830
+ "FROST_DAY": "frost_day",
831
+ "HOT_DAY": "hot_day",
832
+ "DRY_DAY": "dry_day"
833
+ }
834
+ },
835
+ "EventCount": {
836
+ "kind": "class",
837
+ "constructor": {
838
+ "parameters": [
839
+ {
840
+ "name": "event",
841
+ "kind": "keyword_only",
842
+ "annotation": "Event"
843
+ },
844
+ {
845
+ "name": "aggregation",
846
+ "kind": "keyword_only",
847
+ "annotation": "Aggregation"
848
+ },
849
+ {
850
+ "name": "threshold",
851
+ "kind": "keyword_only",
852
+ "annotation": "Threshold | None",
853
+ "default": null
854
+ },
855
+ {
856
+ "name": "duration",
857
+ "kind": "keyword_only",
858
+ "annotation": "Duration | None",
859
+ "default": null
860
+ }
861
+ ],
862
+ "returns": "EventCount"
863
+ },
864
+ "properties": {
865
+ "quantity": "str",
866
+ "unit": "str",
867
+ "fields": "Mapping[str, ScientificValue]",
868
+ "schema": "Mapping[str, ScientificValue] | None",
869
+ "event": "Event",
870
+ "aggregation": "Aggregation",
871
+ "threshold": "Threshold | None",
872
+ "duration": "Duration | None"
873
+ },
874
+ "methods": {
875
+ "to_json": {
876
+ "parameters": [],
877
+ "returns": "str",
878
+ "binding": "instance"
879
+ },
880
+ "from_json": {
881
+ "parameters": [
882
+ {
883
+ "name": "text",
884
+ "kind": "positional_or_keyword",
885
+ "annotation": "str"
886
+ }
887
+ ],
888
+ "returns": "Measurement",
889
+ "binding": "class"
890
+ }
891
+ }
892
+ },
893
+ "ExpectationMethod": {
894
+ "kind": "enum",
895
+ "members": {
896
+ "AUTO": "auto",
897
+ "EXACT": "exact"
898
+ }
899
+ },
900
+ "FitAttempt": {
901
+ "kind": "class",
902
+ "properties": {
903
+ "specification": "FitSpec",
904
+ "status": "FitStatus",
905
+ "diagnostic": "ConvergedFitDiagnostic | FitFailureDiagnostic"
906
+ }
907
+ },
908
+ "FitConstraints": {
909
+ "kind": "class",
910
+ "constructor": {
911
+ "parameters": [
912
+ {
913
+ "name": "minimum_value",
914
+ "kind": "keyword_only",
915
+ "annotation": "float | None",
916
+ "default": null
917
+ },
918
+ {
919
+ "name": "maximum_value",
920
+ "kind": "keyword_only",
921
+ "annotation": "float | None",
922
+ "default": null
923
+ },
924
+ {
925
+ "name": "probability",
926
+ "kind": "keyword_only",
927
+ "annotation": "float | None",
928
+ "default": null
929
+ },
930
+ {
931
+ "name": "require_sample_support",
932
+ "kind": "keyword_only",
933
+ "annotation": "bool",
934
+ "default": false
935
+ }
936
+ ],
937
+ "returns": "FitConstraints"
938
+ },
939
+ "properties": {
940
+ "minimum_value": "float | None",
941
+ "maximum_value": "float | None",
942
+ "probability": "float | None",
943
+ "require_sample_support": "bool"
944
+ }
945
+ },
946
+ "FitError": {
947
+ "kind": "class",
948
+ "properties": {
949
+ "code": "str",
950
+ "message": "str",
951
+ "record": "FitRecord"
952
+ }
953
+ },
954
+ "FitFailureDiagnostic": {
955
+ "kind": "class",
956
+ "properties": {
957
+ "message": "str"
958
+ }
959
+ },
960
+ "FitKind": {
961
+ "kind": "enum",
962
+ "members": {
963
+ "SAMPLES": "samples",
964
+ "QUANTILES": "quantiles",
965
+ "CENSORED_QUANTILES": "censored_quantiles",
966
+ "HURDLE_QUANTILES": "hurdle_quantiles",
967
+ "MODEL_SELECTION": "model_selection"
968
+ }
969
+ },
970
+ "FitRecord": {
971
+ "kind": "class",
972
+ "properties": {
973
+ "specification": "FitSpec",
974
+ "attempts": "tuple[FitAttempt, ...]",
975
+ "estimator": "SampleEstimator | None",
976
+ "converged": "bool",
977
+ "evidence_count": "int",
978
+ "used_count": "int",
979
+ "excluded_count": "int",
980
+ "weights": "tuple[float, ...] | None",
981
+ "value_interval": "tuple[float, float] | None",
982
+ "probability_interval": "tuple[float, float] | None",
983
+ "engine_version": "str",
984
+ "selected_attempt": "int | None"
985
+ },
986
+ "methods": {
987
+ "to_json": {
988
+ "parameters": [],
989
+ "returns": "str",
990
+ "binding": "instance"
991
+ },
992
+ "from_json": {
993
+ "parameters": [
994
+ {
995
+ "name": "text",
996
+ "kind": "positional_or_keyword",
997
+ "annotation": "str"
998
+ }
999
+ ],
1000
+ "returns": "FitRecord",
1001
+ "binding": "class"
1002
+ }
1003
+ }
1004
+ },
1005
+ "FitResult": {
1006
+ "kind": "class",
1007
+ "properties": {
1008
+ "distribution": "Distribution",
1009
+ "record": "FitRecord",
1010
+ "diagnostic": "DiagnosticT_co"
1011
+ },
1012
+ "generic_parameters": [
1013
+ "DiagnosticT_co"
1014
+ ]
1015
+ },
1016
+ "FitSpec": {
1017
+ "kind": "class",
1018
+ "methods": {
1019
+ "to_json": {
1020
+ "parameters": [],
1021
+ "returns": "str",
1022
+ "binding": "instance"
1023
+ },
1024
+ "from_json": {
1025
+ "parameters": [
1026
+ {
1027
+ "name": "text",
1028
+ "kind": "positional_or_keyword",
1029
+ "annotation": "str"
1030
+ }
1031
+ ],
1032
+ "returns": "FitSpec",
1033
+ "binding": "class"
1034
+ }
1035
+ },
1036
+ "properties": {
1037
+ "kind": "FitKind"
1038
+ }
1039
+ },
1040
+ "FitStatus": {
1041
+ "kind": "enum",
1042
+ "members": {
1043
+ "CONVERGED": "converged",
1044
+ "REJECTED": "rejected",
1045
+ "FAILED": "failed"
1046
+ }
1047
+ },
1048
+ "FloodRegion": {
1049
+ "kind": "enum",
1050
+ "members": {
1051
+ "AFRICA": "africa",
1052
+ "ASIA": "asia",
1053
+ "EUROPE": "europe",
1054
+ "NORTH_AMERICA": "north_america",
1055
+ "SOUTH_AMERICA": "south_america",
1056
+ "OCEANIA": "oceania",
1057
+ "GLOBAL": "global"
1058
+ }
1059
+ },
1060
+ "Geography": {
1061
+ "kind": "class",
1062
+ "properties": {
1063
+ "continent": "str",
1064
+ "countries": "tuple[str, ...]"
1065
+ }
1066
+ },
1067
+ "HurdleQuantileFit": {
1068
+ "kind": "class",
1069
+ "constructor": {
1070
+ "parameters": [
1071
+ {
1072
+ "name": "family",
1073
+ "kind": "keyword_only",
1074
+ "annotation": "DistributionFamily"
1075
+ },
1076
+ {
1077
+ "name": "atom_probability",
1078
+ "kind": "keyword_only",
1079
+ "annotation": "float"
1080
+ },
1081
+ {
1082
+ "name": "atom_location",
1083
+ "kind": "keyword_only",
1084
+ "annotation": "float",
1085
+ "default": 0.0
1086
+ },
1087
+ {
1088
+ "name": "minimum_knots",
1089
+ "kind": "keyword_only",
1090
+ "annotation": "int",
1091
+ "default": 4
1092
+ },
1093
+ {
1094
+ "name": "constraints",
1095
+ "kind": "keyword_only",
1096
+ "annotation": "FitConstraints | None",
1097
+ "default": null
1098
+ }
1099
+ ],
1100
+ "returns": "HurdleQuantileFit"
1101
+ },
1102
+ "methods": {
1103
+ "to_json": {
1104
+ "parameters": [],
1105
+ "returns": "str",
1106
+ "binding": "instance"
1107
+ },
1108
+ "from_json": {
1109
+ "parameters": [
1110
+ {
1111
+ "name": "text",
1112
+ "kind": "positional_or_keyword",
1113
+ "annotation": "str"
1114
+ }
1115
+ ],
1116
+ "returns": "FitSpec",
1117
+ "binding": "class"
1118
+ }
1119
+ },
1120
+ "properties": {
1121
+ "kind": "FitKind",
1122
+ "family": "DistributionFamily",
1123
+ "atom_probability": "float",
1124
+ "atom_location": "float",
1125
+ "minimum_knots": "int",
1126
+ "constraints": "FitConstraints | None"
1127
+ }
1128
+ },
1129
+ "HurdleQuantileFitDiagnostic": {
1130
+ "kind": "class",
1131
+ "properties": {
1132
+ "iterations": "int",
1133
+ "evaluations": "int",
1134
+ "normalized_rmse": "float",
1135
+ "normalization_scale": "float",
1136
+ "tail_rmse": "float",
1137
+ "tail_weighted_r_squared": "float",
1138
+ "tail_maximum_absolute_residual": "float",
1139
+ "atom_count": "int",
1140
+ "tail_count": "int"
1141
+ }
1142
+ },
1143
+ "Impact": {
1144
+ "kind": "class",
1145
+ "methods": {
1146
+ "builtin": {
1147
+ "parameters": [
1148
+ {
1149
+ "name": "model",
1150
+ "kind": "positional_or_keyword",
1151
+ "annotation": "BuiltinImpact"
1152
+ }
1153
+ ],
1154
+ "returns": "ImpactReference",
1155
+ "binding": "class"
1156
+ },
1157
+ "linear": {
1158
+ "parameters": [
1159
+ {
1160
+ "name": "slope",
1161
+ "kind": "keyword_only",
1162
+ "annotation": "float"
1163
+ },
1164
+ {
1165
+ "name": "input",
1166
+ "kind": "keyword_only",
1167
+ "annotation": "Measurement"
1168
+ },
1169
+ {
1170
+ "name": "output",
1171
+ "kind": "keyword_only",
1172
+ "annotation": "Measurement"
1173
+ },
1174
+ {
1175
+ "name": "intercept",
1176
+ "kind": "keyword_only",
1177
+ "annotation": "float",
1178
+ "default": 0.0
1179
+ },
1180
+ {
1181
+ "name": "minimum",
1182
+ "kind": "keyword_only",
1183
+ "annotation": "float | None",
1184
+ "default": null
1185
+ },
1186
+ {
1187
+ "name": "maximum",
1188
+ "kind": "keyword_only",
1189
+ "annotation": "float | None",
1190
+ "default": null
1191
+ }
1192
+ ],
1193
+ "returns": "Impact",
1194
+ "binding": "class"
1195
+ },
1196
+ "sigmoid": {
1197
+ "parameters": [
1198
+ {
1199
+ "name": "midpoint",
1200
+ "kind": "keyword_only",
1201
+ "annotation": "float"
1202
+ },
1203
+ {
1204
+ "name": "steepness",
1205
+ "kind": "keyword_only",
1206
+ "annotation": "float"
1207
+ },
1208
+ {
1209
+ "name": "input",
1210
+ "kind": "keyword_only",
1211
+ "annotation": "Measurement"
1212
+ },
1213
+ {
1214
+ "name": "output",
1215
+ "kind": "keyword_only",
1216
+ "annotation": "Measurement"
1217
+ },
1218
+ {
1219
+ "name": "offset",
1220
+ "kind": "keyword_only",
1221
+ "annotation": "float",
1222
+ "default": 0.0
1223
+ },
1224
+ {
1225
+ "name": "amplitude",
1226
+ "kind": "keyword_only",
1227
+ "annotation": "float",
1228
+ "default": 1.0
1229
+ }
1230
+ ],
1231
+ "returns": "Impact",
1232
+ "binding": "class"
1233
+ },
1234
+ "tabulated": {
1235
+ "parameters": [
1236
+ {
1237
+ "name": "points",
1238
+ "kind": "positional_or_keyword",
1239
+ "annotation": "Sequence[tuple[float, float]]"
1240
+ },
1241
+ {
1242
+ "name": "input",
1243
+ "kind": "keyword_only",
1244
+ "annotation": "Measurement"
1245
+ },
1246
+ {
1247
+ "name": "output",
1248
+ "kind": "keyword_only",
1249
+ "annotation": "Measurement"
1250
+ }
1251
+ ],
1252
+ "returns": "Impact",
1253
+ "binding": "class"
1254
+ },
1255
+ "binned": {
1256
+ "parameters": [
1257
+ {
1258
+ "name": "edges",
1259
+ "kind": "positional_or_keyword",
1260
+ "annotation": "ArrayLike"
1261
+ },
1262
+ {
1263
+ "name": "values",
1264
+ "kind": "positional_or_keyword",
1265
+ "annotation": "ArrayLike"
1266
+ },
1267
+ {
1268
+ "name": "input",
1269
+ "kind": "keyword_only",
1270
+ "annotation": "Measurement"
1271
+ },
1272
+ {
1273
+ "name": "output",
1274
+ "kind": "keyword_only",
1275
+ "annotation": "Measurement"
1276
+ }
1277
+ ],
1278
+ "returns": "Impact",
1279
+ "binding": "class"
1280
+ },
1281
+ "evaluate": {
1282
+ "parameters": [
1283
+ {
1284
+ "name": "values",
1285
+ "kind": "positional_or_keyword",
1286
+ "annotation": "Values"
1287
+ }
1288
+ ],
1289
+ "returns": "ValueResult",
1290
+ "binding": "instance"
1291
+ },
1292
+ "expectation": {
1293
+ "parameters": [
1294
+ {
1295
+ "name": "distribution",
1296
+ "kind": "positional_or_keyword",
1297
+ "annotation": "Distribution"
1298
+ },
1299
+ {
1300
+ "name": "method",
1301
+ "kind": "keyword_only",
1302
+ "annotation": "ExpectationMethod",
1303
+ "default": {
1304
+ "enum": "ExpectationMethod.AUTO"
1305
+ }
1306
+ }
1307
+ ],
1308
+ "returns": "float",
1309
+ "binding": "instance"
1310
+ },
1311
+ "pushforward": {
1312
+ "parameters": [
1313
+ {
1314
+ "name": "distribution",
1315
+ "kind": "positional_or_keyword",
1316
+ "annotation": "Distribution"
1317
+ }
1318
+ ],
1319
+ "returns": "Distribution",
1320
+ "binding": "instance"
1321
+ },
1322
+ "from_json": {
1323
+ "parameters": [
1324
+ {
1325
+ "name": "text",
1326
+ "kind": "positional_or_keyword",
1327
+ "annotation": "str"
1328
+ }
1329
+ ],
1330
+ "returns": "Impact",
1331
+ "binding": "class"
1332
+ },
1333
+ "to_json": {
1334
+ "parameters": [],
1335
+ "returns": "str",
1336
+ "binding": "instance"
1337
+ }
1338
+ },
1339
+ "properties": {
1340
+ "input": "Measurement",
1341
+ "output": "Measurement",
1342
+ "sha256": "str"
1343
+ }
1344
+ },
1345
+ "ImpactContext": {
1346
+ "kind": "class",
1347
+ "methods": {
1348
+ "to_json": {
1349
+ "parameters": [],
1350
+ "returns": "str",
1351
+ "binding": "instance"
1352
+ },
1353
+ "from_json": {
1354
+ "parameters": [
1355
+ {
1356
+ "name": "text",
1357
+ "kind": "positional_or_keyword",
1358
+ "annotation": "str"
1359
+ }
1360
+ ],
1361
+ "returns": "ImpactContext",
1362
+ "binding": "class"
1363
+ }
1364
+ },
1365
+ "properties": {
1366
+ "schema": "Mapping[str, ScientificValue]"
1367
+ }
1368
+ },
1369
+ "ImpactError": {
1370
+ "kind": "class",
1371
+ "properties": {
1372
+ "code": "str",
1373
+ "path": "str",
1374
+ "message": "str"
1375
+ }
1376
+ },
1377
+ "ImpactReference": {
1378
+ "kind": "class",
1379
+ "methods": {
1380
+ "resolve": {
1381
+ "parameters": [
1382
+ {
1383
+ "name": "context",
1384
+ "kind": "positional_or_keyword",
1385
+ "annotation": "ImpactContext | None",
1386
+ "default": null
1387
+ }
1388
+ ],
1389
+ "returns": "Impact",
1390
+ "binding": "instance"
1391
+ },
1392
+ "to_json": {
1393
+ "parameters": [],
1394
+ "returns": "str",
1395
+ "binding": "instance"
1396
+ },
1397
+ "from_json": {
1398
+ "parameters": [
1399
+ {
1400
+ "name": "text",
1401
+ "kind": "positional_or_keyword",
1402
+ "annotation": "str"
1403
+ }
1404
+ ],
1405
+ "returns": "ImpactReference",
1406
+ "binding": "class"
1407
+ }
1408
+ },
1409
+ "properties": {
1410
+ "requirements": "ImpactRequirements",
1411
+ "id": "str",
1412
+ "version": "str",
1413
+ "sha256": "str"
1414
+ }
1415
+ },
1416
+ "ImpactRequirements": {
1417
+ "kind": "class",
1418
+ "properties": {
1419
+ "input": "Measurement",
1420
+ "measurement_type": "type[Measurement]",
1421
+ "measurement_schema": "Mapping[str, ScientificValue]",
1422
+ "accepted_units": "tuple[Unit | str, ...]",
1423
+ "context_type": "type[ImpactContext]",
1424
+ "context_fields": "tuple[ContextField, ...]",
1425
+ "unestablished_facts": "tuple[str, ...]",
1426
+ "output": "Measurement"
1427
+ },
1428
+ "methods": {
1429
+ "bind": {
1430
+ "parameters": [
1431
+ {
1432
+ "name": "measurement",
1433
+ "kind": "positional_or_keyword",
1434
+ "annotation": "Measurement"
1435
+ }
1436
+ ],
1437
+ "returns": "None",
1438
+ "binding": "instance"
1439
+ }
1440
+ }
1441
+ },
1442
+ "InundationContext": {
1443
+ "kind": "class",
1444
+ "constructor": {
1445
+ "parameters": [
1446
+ {
1447
+ "name": "region",
1448
+ "kind": "keyword_only",
1449
+ "annotation": "FloodRegion | ContextValue"
1450
+ },
1451
+ {
1452
+ "name": "asset_type",
1453
+ "kind": "keyword_only",
1454
+ "annotation": "AssetType | ContextValue"
1455
+ }
1456
+ ],
1457
+ "returns": "InundationContext"
1458
+ },
1459
+ "properties": {
1460
+ "schema": "Mapping[str, ScientificValue]",
1461
+ "region": "FloodRegion | ContextValue",
1462
+ "asset_type": "AssetType | ContextValue"
1463
+ },
1464
+ "methods": {
1465
+ "to_json": {
1466
+ "parameters": [],
1467
+ "returns": "str",
1468
+ "binding": "instance"
1469
+ },
1470
+ "from_json": {
1471
+ "parameters": [
1472
+ {
1473
+ "name": "text",
1474
+ "kind": "positional_or_keyword",
1475
+ "annotation": "str"
1476
+ }
1477
+ ],
1478
+ "returns": "ImpactContext",
1479
+ "binding": "class"
1480
+ }
1481
+ }
1482
+ },
1483
+ "LengthUnit": {
1484
+ "kind": "enum",
1485
+ "members": {
1486
+ "METRE": "m",
1487
+ "CENTIMETRE": "cm",
1488
+ "MILLIMETRE": "mm",
1489
+ "FOOT": "ft"
1490
+ }
1491
+ },
1492
+ "Measurement": {
1493
+ "kind": "class",
1494
+ "constructor": {
1495
+ "parameters": [
1496
+ {
1497
+ "name": "quantity",
1498
+ "kind": "keyword_only",
1499
+ "annotation": "str | None",
1500
+ "default": null
1501
+ },
1502
+ {
1503
+ "name": "unit",
1504
+ "kind": "keyword_only",
1505
+ "annotation": "Unit | str | None",
1506
+ "default": null
1507
+ },
1508
+ {
1509
+ "name": "fields",
1510
+ "kind": "keyword_only",
1511
+ "annotation": "Mapping[str, ScientificValue] | None",
1512
+ "default": null
1513
+ },
1514
+ {
1515
+ "name": "schema",
1516
+ "kind": "keyword_only",
1517
+ "annotation": "Mapping[str, ScientificValue] | None",
1518
+ "default": null
1519
+ }
1520
+ ],
1521
+ "returns": "Measurement"
1522
+ },
1523
+ "methods": {
1524
+ "to_json": {
1525
+ "parameters": [],
1526
+ "returns": "str",
1527
+ "binding": "instance"
1528
+ },
1529
+ "from_json": {
1530
+ "parameters": [
1531
+ {
1532
+ "name": "text",
1533
+ "kind": "positional_or_keyword",
1534
+ "annotation": "str"
1535
+ }
1536
+ ],
1537
+ "returns": "Measurement",
1538
+ "binding": "class"
1539
+ }
1540
+ },
1541
+ "properties": {
1542
+ "quantity": "str | None",
1543
+ "unit": "Unit | str | None",
1544
+ "fields": "Mapping[str, ScientificValue]",
1545
+ "schema": "Mapping[str, ScientificValue] | None"
1546
+ }
1547
+ },
1548
+ "ModelSelection": {
1549
+ "kind": "class",
1550
+ "constructor": {
1551
+ "parameters": [
1552
+ {
1553
+ "name": "candidates",
1554
+ "kind": "keyword_only",
1555
+ "annotation": "tuple[FitSpec, ...]"
1556
+ },
1557
+ {
1558
+ "name": "criterion",
1559
+ "kind": "keyword_only",
1560
+ "annotation": "SelectionCriterion",
1561
+ "default": {
1562
+ "enum": "SelectionCriterion.KOLMOGOROV_SMIRNOV"
1563
+ }
1564
+ }
1565
+ ],
1566
+ "returns": "ModelSelection"
1567
+ },
1568
+ "methods": {
1569
+ "to_json": {
1570
+ "parameters": [],
1571
+ "returns": "str",
1572
+ "binding": "instance"
1573
+ },
1574
+ "from_json": {
1575
+ "parameters": [
1576
+ {
1577
+ "name": "text",
1578
+ "kind": "positional_or_keyword",
1579
+ "annotation": "str"
1580
+ }
1581
+ ],
1582
+ "returns": "FitSpec",
1583
+ "binding": "class"
1584
+ }
1585
+ },
1586
+ "properties": {
1587
+ "kind": "FitKind",
1588
+ "candidates": "tuple[FitSpec, ...]",
1589
+ "criterion": "SelectionCriterion"
1590
+ }
1591
+ },
1592
+ "PrecipitationAmount": {
1593
+ "kind": "class",
1594
+ "constructor": {
1595
+ "parameters": [
1596
+ {
1597
+ "name": "unit",
1598
+ "kind": "keyword_only",
1599
+ "annotation": "LengthUnit"
1600
+ },
1601
+ {
1602
+ "name": "accumulation_duration",
1603
+ "kind": "keyword_only",
1604
+ "annotation": "Duration"
1605
+ }
1606
+ ],
1607
+ "returns": "PrecipitationAmount"
1608
+ },
1609
+ "properties": {
1610
+ "quantity": "str",
1611
+ "unit": "LengthUnit",
1612
+ "fields": "Mapping[str, ScientificValue]",
1613
+ "schema": "Mapping[str, ScientificValue] | None",
1614
+ "accumulation_duration": "Duration"
1615
+ },
1616
+ "methods": {
1617
+ "to_json": {
1618
+ "parameters": [],
1619
+ "returns": "str",
1620
+ "binding": "instance"
1621
+ },
1622
+ "from_json": {
1623
+ "parameters": [
1624
+ {
1625
+ "name": "text",
1626
+ "kind": "positional_or_keyword",
1627
+ "annotation": "str"
1628
+ }
1629
+ ],
1630
+ "returns": "Measurement",
1631
+ "binding": "class"
1632
+ }
1633
+ }
1634
+ },
1635
+ "PrecipitationRate": {
1636
+ "kind": "class",
1637
+ "constructor": {
1638
+ "parameters": [
1639
+ {
1640
+ "name": "unit",
1641
+ "kind": "keyword_only",
1642
+ "annotation": "PrecipitationRateUnit"
1643
+ },
1644
+ {
1645
+ "name": "accumulation_duration",
1646
+ "kind": "keyword_only",
1647
+ "annotation": "Duration"
1648
+ },
1649
+ {
1650
+ "name": "aggregation",
1651
+ "kind": "keyword_only",
1652
+ "annotation": "Aggregation"
1653
+ }
1654
+ ],
1655
+ "returns": "PrecipitationRate"
1656
+ },
1657
+ "properties": {
1658
+ "quantity": "str",
1659
+ "unit": "PrecipitationRateUnit",
1660
+ "fields": "Mapping[str, ScientificValue]",
1661
+ "schema": "Mapping[str, ScientificValue] | None",
1662
+ "accumulation_duration": "Duration",
1663
+ "aggregation": "Aggregation"
1664
+ },
1665
+ "methods": {
1666
+ "to_json": {
1667
+ "parameters": [],
1668
+ "returns": "str",
1669
+ "binding": "instance"
1670
+ },
1671
+ "from_json": {
1672
+ "parameters": [
1673
+ {
1674
+ "name": "text",
1675
+ "kind": "positional_or_keyword",
1676
+ "annotation": "str"
1677
+ }
1678
+ ],
1679
+ "returns": "Measurement",
1680
+ "binding": "class"
1681
+ }
1682
+ }
1683
+ },
1684
+ "PrecipitationRateUnit": {
1685
+ "kind": "enum",
1686
+ "members": {
1687
+ "MILLIMETRES_PER_DAY": "mm/day",
1688
+ "MILLIMETRES_PER_HOUR": "mm/h",
1689
+ "KILOGRAMS_PER_SQUARE_METRE_PER_SECOND": "kg m-2 s-1"
1690
+ }
1691
+ },
1692
+ "QuantileCurve": {
1693
+ "kind": "class",
1694
+ "constructor": {
1695
+ "parameters": [
1696
+ {
1697
+ "name": "probabilities",
1698
+ "kind": "positional_or_keyword",
1699
+ "annotation": "ArrayLike"
1700
+ },
1701
+ {
1702
+ "name": "values",
1703
+ "kind": "positional_or_keyword",
1704
+ "annotation": "ArrayLike"
1705
+ }
1706
+ ],
1707
+ "returns": "QuantileCurve"
1708
+ },
1709
+ "methods": {
1710
+ "quantile": {
1711
+ "parameters": [
1712
+ {
1713
+ "name": "probabilities",
1714
+ "kind": "positional_or_keyword",
1715
+ "annotation": "Values"
1716
+ }
1717
+ ],
1718
+ "returns": "ValueResult",
1719
+ "binding": "instance"
1720
+ },
1721
+ "condition": {
1722
+ "parameters": [
1723
+ {
1724
+ "name": "q_min",
1725
+ "kind": "keyword_only",
1726
+ "annotation": "float"
1727
+ },
1728
+ {
1729
+ "name": "q_max",
1730
+ "kind": "keyword_only",
1731
+ "annotation": "float"
1732
+ }
1733
+ ],
1734
+ "returns": "Distribution",
1735
+ "binding": "instance"
1736
+ },
1737
+ "complete": {
1738
+ "parameters": [
1739
+ {
1740
+ "name": "policy",
1741
+ "kind": "positional_or_keyword",
1742
+ "annotation": "TailCompletion"
1743
+ }
1744
+ ],
1745
+ "returns": "Distribution",
1746
+ "binding": "instance"
1747
+ },
1748
+ "from_samples": {
1749
+ "parameters": [
1750
+ {
1751
+ "name": "samples",
1752
+ "kind": "positional_or_keyword",
1753
+ "annotation": "ArrayLike"
1754
+ }
1755
+ ],
1756
+ "returns": "QuantileCurve",
1757
+ "binding": "class"
1758
+ },
1759
+ "from_json": {
1760
+ "parameters": [
1761
+ {
1762
+ "name": "text",
1763
+ "kind": "positional_or_keyword",
1764
+ "annotation": "str"
1765
+ }
1766
+ ],
1767
+ "returns": "QuantileCurve",
1768
+ "binding": "class"
1769
+ },
1770
+ "to_json": {
1771
+ "parameters": [],
1772
+ "returns": "str",
1773
+ "binding": "instance"
1774
+ }
1775
+ },
1776
+ "properties": {
1777
+ "probabilities": "FloatArray",
1778
+ "values": "FloatArray",
1779
+ "probability_interval": "tuple[float, float]"
1780
+ }
1781
+ },
1782
+ "QuantileFit": {
1783
+ "kind": "class",
1784
+ "constructor": {
1785
+ "parameters": [
1786
+ {
1787
+ "name": "family",
1788
+ "kind": "keyword_only",
1789
+ "annotation": "DistributionFamily"
1790
+ },
1791
+ {
1792
+ "name": "weights",
1793
+ "kind": "keyword_only",
1794
+ "annotation": "tuple[float, ...] | None",
1795
+ "default": null
1796
+ },
1797
+ {
1798
+ "name": "minimum_knots",
1799
+ "kind": "keyword_only",
1800
+ "annotation": "int",
1801
+ "default": 4
1802
+ },
1803
+ {
1804
+ "name": "constraints",
1805
+ "kind": "keyword_only",
1806
+ "annotation": "FitConstraints | None",
1807
+ "default": null
1808
+ }
1809
+ ],
1810
+ "returns": "QuantileFit"
1811
+ },
1812
+ "methods": {
1813
+ "to_json": {
1814
+ "parameters": [],
1815
+ "returns": "str",
1816
+ "binding": "instance"
1817
+ },
1818
+ "from_json": {
1819
+ "parameters": [
1820
+ {
1821
+ "name": "text",
1822
+ "kind": "positional_or_keyword",
1823
+ "annotation": "str"
1824
+ }
1825
+ ],
1826
+ "returns": "FitSpec",
1827
+ "binding": "class"
1828
+ }
1829
+ },
1830
+ "properties": {
1831
+ "kind": "FitKind",
1832
+ "family": "DistributionFamily",
1833
+ "weights": "tuple[float, ...] | None",
1834
+ "minimum_knots": "int",
1835
+ "constraints": "FitConstraints | None"
1836
+ }
1837
+ },
1838
+ "QuantileFitDiagnostic": {
1839
+ "kind": "class",
1840
+ "properties": {
1841
+ "iterations": "int",
1842
+ "evaluations": "int",
1843
+ "normalized_rmse": "float",
1844
+ "normalization_scale": "float",
1845
+ "rmse": "float",
1846
+ "weighted_r_squared": "float",
1847
+ "maximum_absolute_residual": "float"
1848
+ }
1849
+ },
1850
+ "RankScenario": {
1851
+ "kind": "class",
1852
+ "properties": {
1853
+ "probability": "float",
1854
+ "value": "float",
1855
+ "lower_rank_mass": "float",
1856
+ "upper_rank_mass": "float"
1857
+ }
1858
+ },
1859
+ "Ratio": {
1860
+ "kind": "class",
1861
+ "constructor": {
1862
+ "parameters": [
1863
+ {
1864
+ "name": "unit",
1865
+ "kind": "keyword_only",
1866
+ "annotation": "RatioUnit",
1867
+ "default": {
1868
+ "enum": "RatioUnit.FRACTION"
1869
+ }
1870
+ }
1871
+ ],
1872
+ "returns": "Ratio"
1873
+ },
1874
+ "properties": {
1875
+ "quantity": "str",
1876
+ "unit": "RatioUnit",
1877
+ "fields": "Mapping[str, ScientificValue]",
1878
+ "schema": "Mapping[str, ScientificValue] | None"
1879
+ },
1880
+ "methods": {
1881
+ "to_json": {
1882
+ "parameters": [],
1883
+ "returns": "str",
1884
+ "binding": "instance"
1885
+ },
1886
+ "from_json": {
1887
+ "parameters": [
1888
+ {
1889
+ "name": "text",
1890
+ "kind": "positional_or_keyword",
1891
+ "annotation": "str"
1892
+ }
1893
+ ],
1894
+ "returns": "Measurement",
1895
+ "binding": "class"
1896
+ }
1897
+ }
1898
+ },
1899
+ "RatioUnit": {
1900
+ "kind": "enum",
1901
+ "members": {
1902
+ "FRACTION": "1",
1903
+ "PERCENT": "percent"
1904
+ }
1905
+ },
1906
+ "ReferencePeriod": {
1907
+ "kind": "class",
1908
+ "constructor": {
1909
+ "parameters": [
1910
+ {
1911
+ "name": "start",
1912
+ "kind": "positional_or_keyword",
1913
+ "annotation": "int"
1914
+ },
1915
+ {
1916
+ "name": "end",
1917
+ "kind": "positional_or_keyword",
1918
+ "annotation": "int"
1919
+ }
1920
+ ],
1921
+ "returns": "ReferencePeriod"
1922
+ },
1923
+ "properties": {
1924
+ "start": "int",
1925
+ "end": "int"
1926
+ },
1927
+ "methods": {
1928
+ "to_json": {
1929
+ "parameters": [],
1930
+ "returns": "str",
1931
+ "binding": "instance"
1932
+ }
1933
+ }
1934
+ },
1935
+ "RiskAttribution": {
1936
+ "kind": "class",
1937
+ "properties": {
1938
+ "id": "str",
1939
+ "value_at_risk": "float",
1940
+ "conditional_value_at_risk": "float"
1941
+ }
1942
+ },
1943
+ "RiskLevel": {
1944
+ "kind": "class",
1945
+ "properties": {
1946
+ "probability": "float",
1947
+ "value_at_risk": "float",
1948
+ "conditional_value_at_risk": "float",
1949
+ "attribution": "tuple[RiskAttribution, ...]"
1950
+ }
1951
+ },
1952
+ "RiskResult": {
1953
+ "kind": "class",
1954
+ "methods": {
1955
+ "at": {
1956
+ "parameters": [
1957
+ {
1958
+ "name": "probability",
1959
+ "kind": "positional_or_keyword",
1960
+ "annotation": "float"
1961
+ }
1962
+ ],
1963
+ "returns": "RiskLevel",
1964
+ "binding": "instance"
1965
+ }
1966
+ },
1967
+ "properties": {
1968
+ "levels": "tuple[RiskLevel, ...]",
1969
+ "branch_count": "int"
1970
+ }
1971
+ },
1972
+ "SampleEstimator": {
1973
+ "kind": "enum",
1974
+ "members": {
1975
+ "MAXIMUM_LIKELIHOOD": "mle",
1976
+ "L_MOMENTS": "lmoments"
1977
+ }
1978
+ },
1979
+ "SampleFit": {
1980
+ "kind": "class",
1981
+ "constructor": {
1982
+ "parameters": [
1983
+ {
1984
+ "name": "family",
1985
+ "kind": "keyword_only",
1986
+ "annotation": "DistributionFamily"
1987
+ },
1988
+ {
1989
+ "name": "estimator",
1990
+ "kind": "keyword_only",
1991
+ "annotation": "SampleEstimator",
1992
+ "default": {
1993
+ "enum": "SampleEstimator.MAXIMUM_LIKELIHOOD"
1994
+ }
1995
+ },
1996
+ {
1997
+ "name": "minimum_samples",
1998
+ "kind": "keyword_only",
1999
+ "annotation": "int",
2000
+ "default": 3
2001
+ },
2002
+ {
2003
+ "name": "constraints",
2004
+ "kind": "keyword_only",
2005
+ "annotation": "FitConstraints | None",
2006
+ "default": null
2007
+ },
2008
+ {
2009
+ "name": "fallbacks",
2010
+ "kind": "keyword_only",
2011
+ "annotation": "tuple[SampleFit, ...]",
2012
+ "default": {
2013
+ "tuple": []
2014
+ }
2015
+ }
2016
+ ],
2017
+ "returns": "SampleFit"
2018
+ },
2019
+ "methods": {
2020
+ "to_json": {
2021
+ "parameters": [],
2022
+ "returns": "str",
2023
+ "binding": "instance"
2024
+ },
2025
+ "from_json": {
2026
+ "parameters": [
2027
+ {
2028
+ "name": "text",
2029
+ "kind": "positional_or_keyword",
2030
+ "annotation": "str"
2031
+ }
2032
+ ],
2033
+ "returns": "FitSpec",
2034
+ "binding": "class"
2035
+ }
2036
+ },
2037
+ "properties": {
2038
+ "kind": "FitKind",
2039
+ "family": "DistributionFamily",
2040
+ "estimator": "SampleEstimator",
2041
+ "minimum_samples": "int",
2042
+ "constraints": "FitConstraints | None",
2043
+ "fallbacks": "tuple[SampleFit, ...]"
2044
+ }
2045
+ },
2046
+ "SampleFitDiagnostic": {
2047
+ "kind": "class",
2048
+ "properties": {
2049
+ "iterations": "int",
2050
+ "evaluations": "int",
2051
+ "ks_statistic": "float",
2052
+ "ks_pvalue": "float",
2053
+ "rmse": "float",
2054
+ "r_squared": "float"
2055
+ }
2056
+ },
2057
+ "SelectionCriterion": {
2058
+ "kind": "enum",
2059
+ "members": {
2060
+ "KOLMOGOROV_SMIRNOV": "ks",
2061
+ "NORMALIZED_ROOT_MEAN_SQUARE_ERROR": "normalized_rmse"
2062
+ }
2063
+ },
2064
+ "SpeedUnit": {
2065
+ "kind": "enum",
2066
+ "members": {
2067
+ "METRES_PER_SECOND": "m/s",
2068
+ "KILOMETRES_PER_HOUR": "km/h"
2069
+ }
2070
+ },
2071
+ "Statistic": {
2072
+ "kind": "enum",
2073
+ "members": {
2074
+ "MEAN": "mean",
2075
+ "VARIANCE": "variance",
2076
+ "STANDARD_DEVIATION": "standard_deviation",
2077
+ "MINIMUM": "minimum",
2078
+ "MAXIMUM": "maximum",
2079
+ "CVAR": "cvar"
2080
+ }
2081
+ },
2082
+ "StatisticStatus": {
2083
+ "kind": "enum",
2084
+ "members": {
2085
+ "FINITE": "finite",
2086
+ "POSITIVE_INFINITY": "positive_infinity",
2087
+ "NEGATIVE_INFINITY": "negative_infinity",
2088
+ "UNDEFINED": "undefined"
2089
+ }
2090
+ },
2091
+ "StatisticValue": {
2092
+ "kind": "class",
2093
+ "properties": {
2094
+ "status": "StatisticStatus",
2095
+ "value": "float | None",
2096
+ "diagnostics": "tuple[Diagnostic, ...]"
2097
+ }
2098
+ },
2099
+ "StatisticalSummary": {
2100
+ "kind": "class",
2101
+ "properties": {
2102
+ "values": "Mapping[Statistic, StatisticValue]",
2103
+ "level": "float | None",
2104
+ "tail": "Tail | None"
2105
+ }
2106
+ },
2107
+ "Tail": {
2108
+ "kind": "enum",
2109
+ "members": {
2110
+ "UPPER": "upper",
2111
+ "LOWER": "lower"
2112
+ }
2113
+ },
2114
+ "TailCompletion": {
2115
+ "kind": "class",
2116
+ "constructor": {
2117
+ "parameters": [
2118
+ {
2119
+ "name": "lower",
2120
+ "kind": "keyword_only",
2121
+ "annotation": "float"
2122
+ },
2123
+ {
2124
+ "name": "upper",
2125
+ "kind": "keyword_only",
2126
+ "annotation": "float"
2127
+ }
2128
+ ],
2129
+ "returns": "TailCompletion"
2130
+ },
2131
+ "methods": {
2132
+ "to_json": {
2133
+ "parameters": [],
2134
+ "returns": "str",
2135
+ "binding": "instance"
2136
+ }
2137
+ },
2138
+ "properties": {
2139
+ "name": "str",
2140
+ "lower": "float",
2141
+ "upper": "float"
2142
+ }
2143
+ },
2144
+ "Temperature": {
2145
+ "kind": "class",
2146
+ "constructor": {
2147
+ "parameters": [
2148
+ {
2149
+ "name": "unit",
2150
+ "kind": "keyword_only",
2151
+ "annotation": "TemperatureUnit"
2152
+ }
2153
+ ],
2154
+ "returns": "Temperature"
2155
+ },
2156
+ "properties": {
2157
+ "quantity": "str",
2158
+ "unit": "TemperatureUnit",
2159
+ "fields": "Mapping[str, ScientificValue]",
2160
+ "schema": "Mapping[str, ScientificValue] | None"
2161
+ },
2162
+ "methods": {
2163
+ "to_json": {
2164
+ "parameters": [],
2165
+ "returns": "str",
2166
+ "binding": "instance"
2167
+ },
2168
+ "from_json": {
2169
+ "parameters": [
2170
+ {
2171
+ "name": "text",
2172
+ "kind": "positional_or_keyword",
2173
+ "annotation": "str"
2174
+ }
2175
+ ],
2176
+ "returns": "Measurement",
2177
+ "binding": "class"
2178
+ }
2179
+ }
2180
+ },
2181
+ "TemperatureUnit": {
2182
+ "kind": "enum",
2183
+ "members": {
2184
+ "CELSIUS": "degC",
2185
+ "KELVIN": "K",
2186
+ "FAHRENHEIT": "degF"
2187
+ }
2188
+ },
2189
+ "Threshold": {
2190
+ "kind": "class",
2191
+ "constructor": {
2192
+ "parameters": [
2193
+ {
2194
+ "name": "value",
2195
+ "kind": "positional_or_keyword",
2196
+ "annotation": "float"
2197
+ },
2198
+ {
2199
+ "name": "unit",
2200
+ "kind": "keyword_only",
2201
+ "annotation": "Unit | str"
2202
+ }
2203
+ ],
2204
+ "returns": "Threshold"
2205
+ },
2206
+ "properties": {
2207
+ "value": "float",
2208
+ "unit": "Unit | str"
2209
+ },
2210
+ "methods": {
2211
+ "to_json": {
2212
+ "parameters": [],
2213
+ "returns": "str",
2214
+ "binding": "instance"
2215
+ }
2216
+ }
2217
+ },
2218
+ "TimeDuration": {
2219
+ "kind": "class",
2220
+ "constructor": {
2221
+ "parameters": [
2222
+ {
2223
+ "name": "unit",
2224
+ "kind": "keyword_only",
2225
+ "annotation": "TimeUnit"
2226
+ }
2227
+ ],
2228
+ "returns": "TimeDuration"
2229
+ },
2230
+ "properties": {
2231
+ "quantity": "str",
2232
+ "unit": "TimeUnit",
2233
+ "fields": "Mapping[str, ScientificValue]",
2234
+ "schema": "Mapping[str, ScientificValue] | None"
2235
+ },
2236
+ "methods": {
2237
+ "to_json": {
2238
+ "parameters": [],
2239
+ "returns": "str",
2240
+ "binding": "instance"
2241
+ },
2242
+ "from_json": {
2243
+ "parameters": [
2244
+ {
2245
+ "name": "text",
2246
+ "kind": "positional_or_keyword",
2247
+ "annotation": "str"
2248
+ }
2249
+ ],
2250
+ "returns": "Measurement",
2251
+ "binding": "class"
2252
+ }
2253
+ }
2254
+ },
2255
+ "TimeUnit": {
2256
+ "kind": "enum",
2257
+ "members": {
2258
+ "SECOND": "s",
2259
+ "HOUR": "h",
2260
+ "DAY": "d",
2261
+ "YEAR": "yr",
2262
+ "MONTH": "month"
2263
+ }
2264
+ },
2265
+ "WaterCostContext": {
2266
+ "kind": "class",
2267
+ "constructor": {
2268
+ "parameters": [
2269
+ {
2270
+ "name": "country",
2271
+ "kind": "keyword_only",
2272
+ "annotation": "str | ContextValue"
2273
+ },
2274
+ {
2275
+ "name": "asset_type",
2276
+ "kind": "keyword_only",
2277
+ "annotation": "AssetType | ContextValue"
2278
+ }
2279
+ ],
2280
+ "returns": "WaterCostContext"
2281
+ },
2282
+ "properties": {
2283
+ "schema": "Mapping[str, ScientificValue]",
2284
+ "country": "str | ContextValue",
2285
+ "asset_type": "AssetType | ContextValue"
2286
+ },
2287
+ "methods": {
2288
+ "to_json": {
2289
+ "parameters": [],
2290
+ "returns": "str",
2291
+ "binding": "instance"
2292
+ },
2293
+ "from_json": {
2294
+ "parameters": [
2295
+ {
2296
+ "name": "text",
2297
+ "kind": "positional_or_keyword",
2298
+ "annotation": "str"
2299
+ }
2300
+ ],
2301
+ "returns": "ImpactContext",
2302
+ "binding": "class"
2303
+ }
2304
+ }
2305
+ },
2306
+ "WaterSurfaceElevation": {
2307
+ "kind": "class",
2308
+ "constructor": {
2309
+ "parameters": [
2310
+ {
2311
+ "name": "unit",
2312
+ "kind": "keyword_only",
2313
+ "annotation": "LengthUnit"
2314
+ },
2315
+ {
2316
+ "name": "datum",
2317
+ "kind": "keyword_only",
2318
+ "annotation": "str"
2319
+ }
2320
+ ],
2321
+ "returns": "WaterSurfaceElevation"
2322
+ },
2323
+ "properties": {
2324
+ "quantity": "str",
2325
+ "unit": "LengthUnit",
2326
+ "fields": "Mapping[str, ScientificValue]",
2327
+ "schema": "Mapping[str, ScientificValue] | None",
2328
+ "datum": "str"
2329
+ },
2330
+ "methods": {
2331
+ "to_json": {
2332
+ "parameters": [],
2333
+ "returns": "str",
2334
+ "binding": "instance"
2335
+ },
2336
+ "from_json": {
2337
+ "parameters": [
2338
+ {
2339
+ "name": "text",
2340
+ "kind": "positional_or_keyword",
2341
+ "annotation": "str"
2342
+ }
2343
+ ],
2344
+ "returns": "Measurement",
2345
+ "binding": "class"
2346
+ }
2347
+ }
2348
+ },
2349
+ "WindSpeed": {
2350
+ "kind": "class",
2351
+ "constructor": {
2352
+ "parameters": [
2353
+ {
2354
+ "name": "unit",
2355
+ "kind": "keyword_only",
2356
+ "annotation": "SpeedUnit"
2357
+ },
2358
+ {
2359
+ "name": "averaging_duration",
2360
+ "kind": "keyword_only",
2361
+ "annotation": "Duration | None",
2362
+ "default": null
2363
+ },
2364
+ {
2365
+ "name": "aggregation",
2366
+ "kind": "keyword_only",
2367
+ "annotation": "Aggregation | None",
2368
+ "default": null
2369
+ }
2370
+ ],
2371
+ "returns": "WindSpeed"
2372
+ },
2373
+ "properties": {
2374
+ "quantity": "str",
2375
+ "unit": "SpeedUnit",
2376
+ "fields": "Mapping[str, ScientificValue]",
2377
+ "schema": "Mapping[str, ScientificValue] | None",
2378
+ "averaging_duration": "Duration | None",
2379
+ "aggregation": "Aggregation | None"
2380
+ },
2381
+ "methods": {
2382
+ "to_json": {
2383
+ "parameters": [],
2384
+ "returns": "str",
2385
+ "binding": "instance"
2386
+ },
2387
+ "from_json": {
2388
+ "parameters": [
2389
+ {
2390
+ "name": "text",
2391
+ "kind": "positional_or_keyword",
2392
+ "annotation": "str"
2393
+ }
2394
+ ],
2395
+ "returns": "Measurement",
2396
+ "binding": "class"
2397
+ }
2398
+ }
2399
+ },
2400
+ "compute_risk": {
2401
+ "kind": "function",
2402
+ "parameters": [
2403
+ {
2404
+ "name": "outcomes",
2405
+ "kind": "positional_or_keyword",
2406
+ "annotation": "Sequence[BinaryOutcome]"
2407
+ },
2408
+ {
2409
+ "name": "levels",
2410
+ "kind": "keyword_only",
2411
+ "annotation": "Sequence[float]"
2412
+ },
2413
+ {
2414
+ "name": "max_branches",
2415
+ "kind": "keyword_only",
2416
+ "annotation": "int | None",
2417
+ "default": null
2418
+ }
2419
+ ],
2420
+ "returns": "RiskResult"
2421
+ },
2422
+ "fit_quantiles": {
2423
+ "kind": "function",
2424
+ "parameters": [
2425
+ {
2426
+ "name": "curve",
2427
+ "kind": "positional_or_keyword",
2428
+ "annotation": "QuantileCurve"
2429
+ },
2430
+ {
2431
+ "name": "specification",
2432
+ "kind": "positional_or_keyword",
2433
+ "annotation": "QuantileFit | CensoredQuantileFit | HurdleQuantileFit | ModelSelection"
2434
+ }
2435
+ ],
2436
+ "returns": "FitResult[QuantileFitDiagnostic | CensoredQuantileFitDiagnostic | HurdleQuantileFitDiagnostic]"
2437
+ },
2438
+ "fit_samples": {
2439
+ "kind": "function",
2440
+ "parameters": [
2441
+ {
2442
+ "name": "samples",
2443
+ "kind": "positional_or_keyword",
2444
+ "annotation": "ArrayLike"
2445
+ },
2446
+ {
2447
+ "name": "specification",
2448
+ "kind": "positional_or_keyword",
2449
+ "annotation": "SampleFit | ModelSelection"
2450
+ }
2451
+ ],
2452
+ "returns": "FitResult[SampleFitDiagnostic]"
2453
+ },
2454
+ "lookup_continent": {
2455
+ "kind": "function",
2456
+ "parameters": [
2457
+ {
2458
+ "name": "cell",
2459
+ "kind": "positional_or_keyword",
2460
+ "annotation": "int"
2461
+ }
2462
+ ],
2463
+ "returns": "str | None"
2464
+ },
2465
+ "lookup_geography": {
2466
+ "kind": "function",
2467
+ "parameters": [
2468
+ {
2469
+ "name": "cell",
2470
+ "kind": "positional_or_keyword",
2471
+ "annotation": "int"
2472
+ }
2473
+ ],
2474
+ "returns": "Geography | None"
2475
+ },
2476
+ "lookup_ipcc_region": {
2477
+ "kind": "function",
2478
+ "parameters": [
2479
+ {
2480
+ "name": "cell",
2481
+ "kind": "positional_or_keyword",
2482
+ "annotation": "int"
2483
+ }
2484
+ ],
2485
+ "returns": "str | None"
2486
+ },
2487
+ "rank_scenarios": {
2488
+ "kind": "function",
2489
+ "parameters": [
2490
+ {
2491
+ "name": "distribution",
2492
+ "kind": "positional_or_keyword",
2493
+ "annotation": "Distribution"
2494
+ },
2495
+ {
2496
+ "name": "probabilities",
2497
+ "kind": "keyword_only",
2498
+ "annotation": "Sequence[float]"
2499
+ }
2500
+ ],
2501
+ "returns": "tuple[RankScenario, ...]"
2502
+ }
2503
+ },
2504
+ "semantics": {
2505
+ "canonical_imports": "Every public symbol is imported from crc_framework; implementation modules expose no alternate public aliases.",
2506
+ "empirical_law": "Empirical observations always form the ECDF; interpolated sample quantiles form a QuantileCurve explicitly.",
2507
+ "partial_curve": "A QuantileCurve has no whole-law statistics or sampling; queries outside its actual interval fail.",
2508
+ "statistics": "Statistics use the complete law, preserve atoms and rare masses, and explicitly represent divergent or undefined outcomes.",
2509
+ "impacts": "Event evaluation, expectation, and exact pushforward are separate operations. Expectation uses exact calculation where available and adaptive quadrature otherwise; callers can require an exact calculation. Approximate transforms and context resolution are never implicit.",
2510
+ "mle": "An MLE result requires successful likelihood optimization; alternative estimators run only when explicitly configured and appear in the fit record.",
2511
+ "fitting_scope": "Only the requested family or explicit candidate specifications execute.",
2512
+ "measurement": "Custom quantity and unit identifiers are data; specialized measurement requirements apply only to operations that need them.",
2513
+ "immutability": "Public scientific objects and returned array snapshots are immutable.",
2514
+ "protocols": "Unresolved context references and resolved point functions have distinct call contracts.",
2515
+ "enum_inputs": "Closed Python choices require the declared enum; schema loaders hydrate canonical serialized values without aliases.",
2516
+ "risk_aggregation": "Independent binary outcomes contribute additive impacts in their supplied units; there is no implicit weighting or averaging. Tied VaR states use probability-weighted attribution.",
2517
+ "hurdle": "The base is conditioned strictly above atom_location before mixing the declared atom. For atom_probability < 1 a positive base survival mass is required; the truncation is explicit in the representation.",
2518
+ "selection_criterion": "Kolmogorov-Smirnov selection applies only to observed samples. Quantile model selection explicitly requests normalized RMSE; probability-labelled evidence is not treated as an empirical sample.",
2519
+ "model_requirements": "Typed named measurement and context records share authoritative schemas. Model-owned unestablished calibration facts prevent binding, never trigger invented defaults. Numerical resolution remains separate from scientific data binding."
2520
+ },
2521
+ "removals": {
2522
+ "modules": [
2523
+ "crc_framework.constants",
2524
+ "crc_framework.distributions",
2525
+ "crc_framework.transforms",
2526
+ "crc_framework.metrics",
2527
+ "crc_framework.statistics",
2528
+ "crc_framework.models",
2529
+ "crc_framework.spatial",
2530
+ "crc_framework.impacts"
2531
+ ],
2532
+ "methods": {
2533
+ "Distribution": [
2534
+ "ppf",
2535
+ "quantiles",
2536
+ "pdf",
2537
+ "as_ecdf",
2538
+ "as_interpolated"
2539
+ ],
2540
+ "QuantileCurve": [
2541
+ "ppf",
2542
+ "quantiles",
2543
+ "cdf",
2544
+ "sample",
2545
+ "statistics"
2546
+ ],
2547
+ "Impact": [
2548
+ "__call__",
2549
+ "transform_distribution",
2550
+ "expected_value",
2551
+ "quantile_curve",
2552
+ "image_curve"
2553
+ ]
2554
+ },
2555
+ "wire_formats": [
2556
+ "Historical curve parameter dictionaries and abbreviated point-mass records",
2557
+ "Impact schema 1.0 definitions, references and records",
2558
+ "Legacy summary and approximation modes"
2559
+ ],
2560
+ "symbols": [
2561
+ "crc_framework.HORIZONS",
2562
+ "crc_framework.PATHWAYS",
2563
+ "crc_framework.RISK_FACTORS",
2564
+ "crc_framework.Pathway",
2565
+ "crc_framework.RiskFactor",
2566
+ "crc_framework.EmpiricalDistribution",
2567
+ "crc_framework.FittedDistribution",
2568
+ "crc_framework.HurdleDistribution",
2569
+ "crc_framework.PointMassDistribution",
2570
+ "crc_framework.TabulatedDistribution",
2571
+ "crc_framework.StatisticalLaw",
2572
+ "crc_framework.ProbabilitySupport",
2573
+ "crc_framework.QuantileFunction",
2574
+ "crc_framework.ImpactSource",
2575
+ "crc_framework.as_impact_source",
2576
+ "crc_framework.statistical_law",
2577
+ "crc_framework.distribution_statistics",
2578
+ "crc_framework.interval_statistics",
2579
+ "crc_framework.probability_masses",
2580
+ "crc_framework.approximate_quantile_law",
2581
+ "crc_framework.complete_quantile_tails",
2582
+ "crc_framework.fit_distribution",
2583
+ "crc_framework.fit_all",
2584
+ "crc_framework.fit_censored_quantiles",
2585
+ "crc_framework.fit_hurdle_quantiles",
2586
+ "crc_framework.quality_metrics",
2587
+ "crc_framework.CensoredQuantileFitDiagnostics",
2588
+ "crc_framework.CensoredQuantileFitResult",
2589
+ "crc_framework.HurdleQuantileFitDiagnostics",
2590
+ "crc_framework.HurdleQuantileFitResult",
2591
+ "crc_framework.QuantileFitDiagnostics",
2592
+ "crc_framework.QuantileFitResult",
2593
+ "crc_framework.FitDiagnostics",
2594
+ "crc_framework.ImpactExpression",
2595
+ "crc_framework.ImpactFunction",
2596
+ "crc_framework.ImpactDistribution",
2597
+ "crc_framework.HistogramExposure",
2598
+ "crc_framework.DiscreteDistribution",
2599
+ "crc_framework.ImpactRegistry",
2600
+ "crc_framework.RegistryImpactReference",
2601
+ "crc_framework.LinearImpact",
2602
+ "crc_framework.SigmoidImpact",
2603
+ "crc_framework.PiecewiseLinearImpact",
2604
+ "crc_framework.CallableImpact",
2605
+ "crc_framework.CallableTransform",
2606
+ "crc_framework.ClimateImpact",
2607
+ "crc_framework.TransformContext",
2608
+ "crc_framework.ScenarioMetadata",
2609
+ "crc_framework.generate_microscores",
2610
+ "crc_framework.Microscore",
2611
+ "crc_framework.MicroscoreSuite",
2612
+ "crc_framework.compute_spanning_set",
2613
+ "crc_framework.impact_registry_manifest",
2614
+ "crc_framework.ImpactEvaluationRecord",
2615
+ "crc_framework.ImpactEvaluationResult",
2616
+ "crc_framework.GaussKronrodOptions",
2617
+ "crc_framework.BuildingType"
2618
+ ],
2619
+ "schema_fields": [
2620
+ "curve_kind",
2621
+ "curve_type",
2622
+ "curve_shape",
2623
+ "curve_location",
2624
+ "curve_scale",
2625
+ "curve_atom_probability",
2626
+ "curve_atom_location",
2627
+ "curve_probabilities",
2628
+ "curve_values"
2629
+ ]
2630
+ }
2631
+ }