Skip to content

Commit 3c71d18

Browse files
refactor: removed ods udfs as they were functionally useless
1 parent 562ca2b commit 3c71d18

1 file changed

Lines changed: 0 additions & 110 deletions

File tree

‎src/dve/core_engine/functions/implementations.py‎

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -42,116 +42,6 @@ def date_in_current_financial_year(test_date: datetime.date) -> bool:
4242
return test_date >= current_fiscal_year_start
4343

4444

45-
def is_valid_ods_code(check_ods_code: str) -> bool:
46-
"""A test ODS code lookup, contains some actual valid codes"""
47-
if (not check_ods_code) or (not isinstance(check_ods_code, str)):
48-
return False
49-
valid_ods_codes = [
50-
"EE142976",
51-
"EE144430",
52-
"EE143473",
53-
"EE148112",
54-
"EE142863",
55-
"EE147862",
56-
"EE142472",
57-
"EE141208",
58-
"EE143149",
59-
"EE140862",
60-
"EE140319",
61-
"EE144899",
62-
"EE144475",
63-
"EE141850",
64-
"EE147934",
65-
"EE141068",
66-
"EE143825",
67-
"EE147805",
68-
"EE143489",
69-
"EE146813",
70-
"EE145703",
71-
"EE148295",
72-
"EE140156",
73-
"EE145502",
74-
"EE148396",
75-
"EE144126",
76-
"EE145590",
77-
"EE141566",
78-
"EE142081",
79-
"EE143640",
80-
"EE144911",
81-
"EE145935",
82-
"EE145279",
83-
"EE143156",
84-
"EE146556",
85-
"EE140781",
86-
"EE144734",
87-
"EE144841",
88-
"EE140419",
89-
"EE140040",
90-
"EE147342",
91-
"EE143330",
92-
"EE140926",
93-
"EE140926",
94-
"EE146438",
95-
"EE142137",
96-
"EE143856",
97-
"EE141067",
98-
"EE148534",
99-
"EE141310",
100-
"EE146899",
101-
"EE146996",
102-
"EE147487",
103-
"EE148447",
104-
"EE144311",
105-
"EE142147",
106-
"EE147605",
107-
"EE142117",
108-
"EE144087",
109-
"EE147326",
110-
"EE147614",
111-
"EE143703",
112-
"EE146135",
113-
"EE140782",
114-
"EE143603",
115-
"EE143554",
116-
"EE146659",
117-
"EE140321",
118-
"EE141185",
119-
"EE147648",
120-
"EE144527",
121-
"EE142680",
122-
"EE141620",
123-
"EE145274",
124-
"EE146251",
125-
"EE148209",
126-
"EE142574",
127-
"EE148162",
128-
"EE143118",
129-
"EE142977",
130-
"EE147798",
131-
"EE147902",
132-
"EE145780",
133-
"EE146992",
134-
"EE142916",
135-
"EE144777",
136-
"EE146935",
137-
"EE145586",
138-
"EE144570",
139-
"EE147122",
140-
"EE140874",
141-
"EE141338",
142-
"EE143244",
143-
]
144-
return check_ods_code in valid_ods_codes
145-
146-
147-
def is_valid_national_org(check_org_code: str) -> bool:
148-
"""Simple test org code lookup"""
149-
if (not check_org_code) or (not isinstance(check_org_code, str)):
150-
return False
151-
valid_org_codes = ["ORG01", "ORG02"]
152-
return check_org_code in valid_org_codes
153-
154-
15545
def check_correct_numeric_signage(
15646
val: Union[float, int, Decimal], expected_sign: str = "+/-"
15747
) -> Optional[bool]:

0 commit comments

Comments
 (0)