freemt commited on
Commit
e31b328
1 Parent(s): b21cf54

Update data/hlm-ch1

Browse files
Files changed (1) hide show
  1. radiobee/__main__.py +14 -12
radiobee/__main__.py CHANGED
@@ -78,8 +78,8 @@ if __name__ == "__main__":
78
  ]
79
  outputs = ["dataframe"]
80
  # """
81
- import logzero
82
- logzero.loglevel(10)
83
  logger.debug(" debug ")
84
  logger.info(" info ")
85
 
@@ -146,28 +146,30 @@ if __name__ == "__main__":
146
  # this wont work
147
  # for obj in [text1, text2, df1, lst1, lst2, ]:
148
  # savelzma(text1) wont work
149
- joblib.dump(text1, f"data/{nameof(text1)}.lzma")
150
- joblib.dump(text2, f"data/{nameof(text2)}.lzma")
151
- joblib.dump(df1, f"data/{nameof(df1)}.lzma")
152
- joblib.dump(lst1, f"data/{nameof(lst1)}.lzma")
153
- joblib.dump(lst2, f"data/{nameof(lst2)}.lzma")
 
 
154
 
155
  cmat = lists2cmat(lst1, lst2)
156
 
157
  tset = pd.DataFrame(cmat2tset(cmat))
158
  tset.columns = ["x", "y", "cos"]
159
 
160
- print("lst1: %s" % lst1)
161
- print("lst2: %s" % lst2)
162
- print("cmat: %s" % cmat)
163
- print("tset: %s" % tset)
 
164
 
165
  logger.debug("lst1: %s", lst1)
166
  logger.debug("lst2: %s", lst2)
167
  logger.debug("cmat: %s", cmat)
168
  logger.debug("tset: %s", tset)
169
 
170
-
171
  # plt0 = plot_df(pd.DataFrame(cmat))
172
  df_ = tset
173
  min_samples: int = 6
 
78
  ]
79
  outputs = ["dataframe"]
80
  # """
81
+ # import logzero
82
+ # logzero.loglevel(10)
83
  logger.debug(" debug ")
84
  logger.info(" info ")
85
 
 
146
  # this wont work
147
  # for obj in [text1, text2, df1, lst1, lst2, ]:
148
  # savelzma(text1) wont work
149
+
150
+ # for debugging
151
+ # joblib.dump(text1, f"data/{nameof(text1)}.lzma")
152
+ # joblib.dump(text2, f"data/{nameof(text2)}.lzma")
153
+ # joblib.dump(df1, f"data/{nameof(df1)}.lzma")
154
+ # joblib.dump(lst1, f"data/{nameof(lst1)}.lzma")
155
+ # joblib.dump(lst2, f"data/{nameof(lst2)}.lzma")
156
 
157
  cmat = lists2cmat(lst1, lst2)
158
 
159
  tset = pd.DataFrame(cmat2tset(cmat))
160
  tset.columns = ["x", "y", "cos"]
161
 
162
+ # for debugging, logger.debug logger.info dont show up
163
+ # print("lst1: %s" % lst1)
164
+ # print("lst2: %s" % lst2)
165
+ # print("cmat: %s" % cmat)
166
+ # print("tset: %s" % tset)
167
 
168
  logger.debug("lst1: %s", lst1)
169
  logger.debug("lst2: %s", lst2)
170
  logger.debug("cmat: %s", cmat)
171
  logger.debug("tset: %s", tset)
172
 
 
173
  # plt0 = plot_df(pd.DataFrame(cmat))
174
  df_ = tset
175
  min_samples: int = 6