ltc-code 0.1.93__tar.gz → 0.1.94__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ltc-code
3
- Version: 0.1.93
3
+ Version: 0.1.94
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.9
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ltc-code"
3
- version = "0.1.93"
3
+ version = "0.1.94"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -413,6 +413,12 @@ final = df.pipe(
413
413
 
414
414
 
415
415
 
416
+ import re
417
+ from typing import Mapping, Optional, Sequence, Union
418
+
419
+ import polars as pl
420
+
421
+
416
422
  import re
417
423
  from typing import Mapping, Optional, Sequence, Union
418
424
 
@@ -421,11 +427,12 @@ import polars as pl
421
427
 
422
428
  PRIORITY_PATTERNS_BY_CMO = {
423
429
  "yes_prep": {
424
- # Patterns used to create broad 1/0 priority flags.
425
430
  "concept_patterns": {
426
431
  "sibling": [
427
432
  r"\bsibling\s+attending\b",
428
- r"\bdynamic\s+sa\b",
433
+ ],
434
+ "sibling_concur": [
435
+ r"\bdynamic\b",
429
436
  ],
430
437
  "staff": [
431
438
  r"\bemployee\b",
@@ -439,13 +446,12 @@ PRIORITY_PATTERNS_BY_CMO = {
439
446
  ],
440
447
  },
441
448
 
442
- # Patterns used to flag repeated concepts.
443
- # Example: "Sibling Attending - Sibling Attending Ben Holt"
444
- # gives sibling_repeat = 1.
445
449
  "repeat_patterns": {
446
450
  "sibling_repeat": [
447
451
  r"\bsibling\s+attending\b",
448
- r"\bdynamic\s+sa\b",
452
+ ],
453
+ "sibling_concur_repeat": [
454
+ r"\bdynamic\b",
449
455
  ],
450
456
  "zoned_repeat": [
451
457
  r"\bzoned\s+for\b",
@@ -455,12 +461,12 @@ PRIORITY_PATTERNS_BY_CMO = {
455
461
  ],
456
462
  },
457
463
 
458
- # Patterns used to normalize each dash/plus-separated component.
459
- # Anything unmatched is preserved as lowercased text.
460
464
  "component_replacements": {
461
465
  "sibling": [
462
466
  r"\bsibling\s+attending(?:\s+.+)?\b",
463
- r"\bdynamic\s+sa\b",
467
+ ],
468
+ "sibling_concur": [
469
+ r"\bdynamic(?:\s+.+)?\b",
464
470
  ],
465
471
  "staff": [
466
472
  r"\bemployee\b",
@@ -482,6 +488,9 @@ PRIORITY_PATTERNS_BY_CMO = {
482
488
  r"\bmultiples\b",
483
489
  r"\bmutiples\b",
484
490
  ],
491
+ "sibling_concur": [
492
+ r"\bdynamic\b",
493
+ ],
485
494
  "staff": [
486
495
  r"\bemployee\b",
487
496
  ],
@@ -499,6 +508,9 @@ PRIORITY_PATTERNS_BY_CMO = {
499
508
  r"\bmultiples\b",
500
509
  r"\bmutiples\b",
501
510
  ],
511
+ "sibling_concur_repeat": [
512
+ r"\bdynamic\b",
513
+ ],
502
514
  "transfer_repeat": [
503
515
  r"\btransfer\b",
504
516
  ],
@@ -513,6 +525,9 @@ PRIORITY_PATTERNS_BY_CMO = {
513
525
  r"\bmultiples\b",
514
526
  r"\bmutiples\b",
515
527
  ],
528
+ "sibling_concur": [
529
+ r"\bdynamic(?:\s+.+)?\b",
530
+ ],
516
531
  "staff": [
517
532
  r"\bemployee\b",
518
533
  ],
@@ -639,6 +654,7 @@ def add_priority_flags(
639
654
  return result.drop("_priority_text")
640
655
 
641
656
 
657
+
642
658
  df = df.pipe(
643
659
  add_priority_flags,
644
660
  priority_col="priority_group_name",
File without changes