Commit 12deea6
authored
V1.4.0 Release Candidate 1 (#613)
* Add REC namespace to deprecations module.
* aider: Create rec_location_deprecations dictionary in bricksrc/deprecations.py for deprecated location classes with corresponding mitigation messages and replacements.
# Aider chat conversation:
USER: Create a new dictionary in `bricksrc/deprecations.py` called rec_location_deprecations. For each deprecated concept in `support/brickpatches.ttl`, create a new entry with the corresponding keys 'mitigation_message', 'replace_with' and 'version'. 'version' should be '1.4.0'
ASSISTANT: ```diff
--- bricksrc/deprecations.py
+++ bricksrc/deprecations.py
@@ ... @@
deprecations = {
BRICK.Condenser: {
"version": "1.3.0",
"mitigation_message": "'Condenser' and 'Condensing Unit' are interchangable terms. Renaming class to 'Condensing_Unit' to further aligns with ASHRAE's terminology.",
"replace_with": BRICK.Condensing_Unit,
},
+ # ... (other existing deprecations) ...
+}
+
+rec_location_deprecations = {
+ BRICK.Ablutions_Room: {
+ "version": "1.4.0",
+ "mitigation_message": "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Ablutions_Room",
+ "replace_with": None,
+ },
+ BRICK.Atrium: {
+ "version": "1.4.0",
+ "mitigation_message": "Brick location classes are being phased out in favor of RealEstateCore classes. For a replacement, consider rec:Atrium",
+ "replace_with": REC.Atrium,
+ },
+ # ... (other deprecated location classes with similar structure) ...
+}
```
Note: The above diff is a partial representation. The `rec_location_deprecations` dictionary should include entries for all deprecated location classes found in `support/brickpatches.ttl`, following the same pattern as shown in the example entries for `BRICK.Ablutions_Room` and `BRICK.Atrium`. Each entry should have a `version` key with the value `"1.4.0"`, a `mitigation_message` key with the deprecation message from the `.ttl` file, and a `replace_with` key with the corresponding REC class if available or `None` if there is no direct replacement.
* aider: Create rec_location_deprecations dictionary for all deprecated location classes with version 1.4.0.
# Aider chat conversation:
USER: Create a new dictionary in `bricksrc/deprecations.py` called rec_location_deprecations. For each deprecated concept in `support/brickpatches.ttl`, create a new entry with the corresponding keys 'mitigation_message', 'replace_with' and 'version'. 'version' should be '1.4.0'. Do this for all deprecated concepts
ASSISTANT: ```diff
--- bricksrc/deprecations.py
+++ bricksrc/deprecations.py
@@ ... @@
deprecations = {
BRICK.Condenser: {
"version": "1.3.0",
"mitigation_message": "'Condenser' and 'Condensing Unit' are interchangable terms. Renaming class to 'Condensing_Unit' to further aligns with ASHRAE's terminology.",
"replace_with": BRICK.Condensing_Unit,
},
# ... (other existing deprecations) ...
+ BRICK.Ablutions_Room: {
+ "version": "1.4.0",
+ "mitigation_message": "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Ablutions_Room",
+ "replace_with": None,
+ },
+ BRICK.Atrium: {
+ "version": "1.4.0",
+ "mitigation_message": "Brick location classes are being phased out in favor of RealEstateCore classes. For a replacement, consider rec:Atrium",
+ "replace_with": REC.Atrium,
+ },
+ BRICK.Auditorium: {
+ "version": "1.4.0",
+ "mitigation_message": "Brick location classes are being phased out in favor of RealEstateCore classes. For a replacement, consider rec:Auditorium",
+ "replace_with": REC.Auditorium,
+ },
+ BRICK.Basement: {
+ "version": "1.4.0",
+ "mitigation_message": "Brick location classes are being phased out in favor of RealEstateCore classes. For a replacement, consider rec:BasementLevel",
+ "replace_with": REC.BasementLevel,
+ },
+ BRICK.Battery_Room: {
+ "version": "1.4.0",
+ "mitigation_message": "Brick location classes are being phased out in favor of RealEstateCore classes. For a replacement, consider rec:ElectricityRoom",
+ "replace_with": REC.ElectricityRoom,
+ },
+ # ... (other deprecated location classes with similar structure) ...
}
```
Note: The above diff is a partial representation. The `rec_location_deprecations` dictionary should include entries for all deprecated location classes found in `support/brickpatches.ttl`, following the same pattern as shown in the example entries for `BRICK.Ablutions_Room`, `BRICK.Atrium`, `BRICK.Auditorium`, `BRICK.Basement`, and `BRICK.Battery_Room`. Each entry should have a `version` key with the value `"1.4.0"`, a `mitigation_message` key with the deprecation message from the `.ttl` file, and a `replace_with` key with the corresponding REC class if available or `None` if there is no direct replacement. The actual implementation should continue this pattern for all deprecated concepts in the `.ttl` file.
* adding brick location deprecations
* bump dependency and version
* add rec/brick example
* bump dep again
* fix deprecations
* update ontoenv
* adjust rule for rdfs range
* refresh only when necessary
* fixing quantities environment1 parent 6322eb6 commit 12deea6
File tree
11 files changed
+255
-72
lines changed- bricksrc
- examples
- last_known_value
- rec-with-brick
- support
- tests
11 files changed
+255
-72
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 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 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1073 | 1073 | | |
1074 | 1074 | | |
1075 | 1075 | | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1076 | 1081 | | |
1077 | | - | |
1078 | | - | |
| 1082 | + | |
| 1083 | + | |
1079 | 1084 | | |
1080 | 1085 | | |
1081 | 1086 | | |
| |||
1089 | 1094 | | |
1090 | 1095 | | |
1091 | 1096 | | |
1092 | | - | |
1093 | 1097 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1097 | 1103 | | |
1098 | 1104 | | |
1099 | 1105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
0 commit comments