convert
convert
¶
This package convert
is for v1 only. It's superceded beyond that.
Needed still for test coverage, and to assict transition to new report forms
dist_mag_table
¶
DistMagTable
¶
Source code in nzssdt_2023/convert/dist_mag_table.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
csv_path = csv_path
instance-attribute
¶
raw_table = pd.read_csv(self.csv_path)
instance-attribute
¶
__init__(csv_path: Union[str, pathlib.Path])
¶
Source code in nzssdt_2023/convert/dist_mag_table.py
9 10 11 12 13 |
|
flatten()
cached
¶
Source code in nzssdt_2023/convert/dist_mag_table.py
15 16 17 18 19 20 21 22 23 24 25 26 |
|
sat_table
¶
Copied from Anne Hulsey's example
APoEs = [f'APoE: 1/{rp}' for rp in [25, 100, 250, 500, 1000, 2500]]
module-attribute
¶
df = pd.read_pickle(pathlib.Path(RESOURCES_FOLDER, filename))
module-attribute
¶
filename = 'SaT-variables_v5_corrected-locations.pkl'
module-attribute
¶
flat = sat_table.flatten()
module-attribute
¶
parameters = ['PGA', 'Sas', 'Tc']
module-attribute
¶
sat_table = SatTable(df)
module-attribute
¶
site_class_labels = [f'Site Soil Class {n}' for n in ['I', 'II', 'III', 'IV', 'V', 'VI']]
module-attribute
¶
SatTable
¶
Source code in nzssdt_2023/convert/sat_table.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
raw_table = raw_table
instance-attribute
¶
__init__(raw_table: pd.DataFrame)
¶
Source code in nzssdt_2023/convert/sat_table.py
46 47 |
|
flatten()
cached
¶
Source code in nzssdt_2023/convert/sat_table.py
49 50 51 |
|
grid_location_df()
¶
Source code in nzssdt_2023/convert/sat_table.py
59 60 61 62 63 |
|
named_location_df()
¶
Source code in nzssdt_2023/convert/sat_table.py
53 54 55 56 57 |
|
flatten_df(df: pd.DataFrame)
¶
Source code in nzssdt_2023/convert/sat_table.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|