Private room saver
load_private_rooms_from_hdf5(file_path, chunk_size=50000, domain_super_areas=None)
Loads private rooms from an HDF5 file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path
|
str
|
|
required |
chunk_size
|
(Default value = 50000) |
50000
|
|
domain_super_areas
|
(Default value = None) |
None
|
Source code in june/hdf5_savers/private_room_saver.py
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 |
|
restore_private_rooms_properties_from_hdf5(world, file_path, chunk_size=50000)
Restores private room properties from HDF5. This function restores area and super_area references for private rooms.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
world
|
World
|
|
required |
file_path
|
str
|
|
required |
chunk_size
|
(Default value = 50000) |
50000
|
Source code in june/hdf5_savers/private_room_saver.py
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 |
|
save_private_rooms_to_hdf5(private_rooms, file_path, chunk_size=50000)
Saves the private_rooms object to hdf5 format file file_path
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
private_rooms
|
PrivateRooms
|
PrivateRooms object |
required |
file_path
|
str
|
path of the saved hdf5 file |
required |
chunk_size
|
int
|
number of private rooms to save at a time (Default value = 50000) |
50000
|
Source code in june/hdf5_savers/private_room_saver.py
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 |
|