Hive-Systems / pyfair

Factor Analysis of Information Risk (FAIR) model written in Python. Managed and maintained by Hive Systems
https://www.hivesystems.com
MIT License
89 stars 45 forks source link

documentation fix from_json #37

Closed robomotic closed 3 years ago

robomotic commented 3 years ago

Hi there,

quick fix: https://pyfair.readthedocs.io/en/latest/source/pyfair.model.html

m1 = pyfair.model.FairModel.from_json('model_1.json')
m2 = pyfair.model.FairModel.from_json('model_2.json')
meta1  = pyfair.model.FairMetaModel('Name', [m1, m2])
meta1.calculate_all()
meta1.export_results()

The method has been renamed to read_json I noticed. Cheers.

theonaunheim commented 3 years ago

Good catch, @robomotic. Much appreciated!