From f4fbb11b8cce089a51acca36da2a84bc4921f2dd Mon Sep 17 00:00:00 2001
From: titusquah <46580668+titusquah@users.noreply.github.com>
Date: Tue, 14 Jul 2020 17:20:04 -0600
Subject: [PATCH] changed xml_path in iterative_fitter.py and added
iterative_fitter_monitor.py
---
.idea/workspace.xml | 22 +++++++++++++++-------
docs/Examples/iterative_fitter.py | 2 +-
docs/Examples/iterative_fitter_monitor.py | 18 ++++++++++++++++++
3 files changed, 34 insertions(+), 8 deletions(-)
create mode 100644 docs/Examples/iterative_fitter_monitor.py
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index e9d8af3..4bb09ee 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,7 +3,7 @@
-
+
@@ -269,7 +269,14 @@
1594767749286
-
+
+ 1594768608466
+
+
+
+ 1594768608466
+
+
@@ -294,7 +301,8 @@
-
+
+
@@ -314,11 +322,11 @@
-
+
-
+
@@ -368,11 +376,11 @@
-
+
-
+
diff --git a/docs/Examples/iterative_fitter.py b/docs/Examples/iterative_fitter.py
index 7f92952..1b03e51 100644
--- a/docs/Examples/iterative_fitter.py
+++ b/docs/Examples/iterative_fitter.py
@@ -15,7 +15,7 @@ meas_pitzer_param_df = pd.read_csv("../../data/csvs/may_pitzer_params.csv")
labeled_data = pd.read_csv("../../data/csvs/"
"zeroes_removed_PC88A_HCL_NdPrCeLaDySmY.csv")
exp_data = labeled_data.drop(labeled_data.columns[0], axis=1)
-xml_file = "PC88A_HCL_NdPrCeLaDySmY_w_pitzer.xml"
+xml_file = "../../data/xmls/PC88A_HCL_NdPrCeLaDySmY_w_pitzer.xml"
eps = 1e-4
mini_eps = 1e-8
x_guesses = [[-5178500.0, -1459500.0],
diff --git a/docs/Examples/iterative_fitter_monitor.py b/docs/Examples/iterative_fitter_monitor.py
new file mode 100644
index 0000000..b234b31
--- /dev/null
+++ b/docs/Examples/iterative_fitter_monitor.py
@@ -0,0 +1,18 @@
+import matplotlib.pyplot as plt
+import pandas as pd
+
+go = 'y'
+parameters = 'slope,intercept,beta0,beta1,Cphi'.split(',')
+while go == 'y':
+ go = input('continue? ')
+ plt.close('all')
+ df = pd.read_csv('outputs/iterative_fitter_output_df.csv')
+ info_cols = {parameter: [] for parameter in parameters}
+ for col in df.columns:
+ for parameter in parameters:
+ if parameter in col:
+ info_cols[parameter].append(col)
+ for parameter in parameters:
+ fig, ax = plt.subplots()
+ ax.title
+