Commit 9de1d9f6 authored by Tara Evaz Zadeh's avatar Tara Evaz Zadeh
Browse files

Added a file

parent 90afe537
#!/usr/bin/env python
def get_fragility_function(taxonomy,fragilities_path,taxonomy_conversion_path):
import pandas as pd
import numpy as np
taxonomy_conversion_file=pd.read_csv(taxonomy_conversion_path)
################## find new taxonomy names ##################
n=taxonomy_conversion_file.loc[taxonomy_conversion_file['taxonomy'] == taxonomy, 'conversion'].iloc[0]
new_tax=fragilities_path+"/"+n+".csv"
################## find PoEs & PoOs from fragility files ##################
cls=range(1,101)
frag = np.loadtxt(fragilities_path+"/"+n+".csv", delimiter=",", usecols=cls)
return(frag,new_tax)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment