NLR-mlclouds 0.0.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. nlr_mlclouds-0.0.6/.flake8 +4 -0
  2. nlr_mlclouds-0.0.6/.github/ISSUE_TEMPLATE/bug_report.md +46 -0
  3. nlr_mlclouds-0.0.6/.github/ISSUE_TEMPLATE/feature_request.md +26 -0
  4. nlr_mlclouds-0.0.6/.github/release-drafter.yml +16 -0
  5. nlr_mlclouds-0.0.6/.github/workflows/codecov.yml +47 -0
  6. nlr_mlclouds-0.0.6/.github/workflows/gh_pages.yml +37 -0
  7. nlr_mlclouds-0.0.6/.github/workflows/linter.yml +19 -0
  8. nlr_mlclouds-0.0.6/.github/workflows/publish_to_pypi.yml +32 -0
  9. nlr_mlclouds-0.0.6/.github/workflows/pull_request_tests.yml +37 -0
  10. nlr_mlclouds-0.0.6/.github/workflows/release_drafter.yml +14 -0
  11. nlr_mlclouds-0.0.6/.gitignore +152 -0
  12. nlr_mlclouds-0.0.6/.pre-commit-config.yaml +26 -0
  13. nlr_mlclouds-0.0.6/.pylintrc +561 -0
  14. nlr_mlclouds-0.0.6/LICENSE +28 -0
  15. nlr_mlclouds-0.0.6/NLR_mlclouds.egg-info/PKG-INFO +106 -0
  16. nlr_mlclouds-0.0.6/NLR_mlclouds.egg-info/SOURCES.txt +219 -0
  17. nlr_mlclouds-0.0.6/NLR_mlclouds.egg-info/dependency_links.txt +1 -0
  18. nlr_mlclouds-0.0.6/NLR_mlclouds.egg-info/requires.txt +19 -0
  19. nlr_mlclouds-0.0.6/NLR_mlclouds.egg-info/top_level.txt +1 -0
  20. nlr_mlclouds-0.0.6/PKG-INFO +106 -0
  21. nlr_mlclouds-0.0.6/README.rst +68 -0
  22. nlr_mlclouds-0.0.6/configs/nsrdb_vars.csv +61 -0
  23. nlr_mlclouds-0.0.6/docs/Makefile +29 -0
  24. nlr_mlclouds-0.0.6/docs/README.md +83 -0
  25. nlr_mlclouds-0.0.6/docs/make.bat +35 -0
  26. nlr_mlclouds-0.0.6/docs/requirements.txt +4 -0
  27. nlr_mlclouds-0.0.6/docs/source/_static/custom.css +14 -0
  28. nlr_mlclouds-0.0.6/docs/source/_templates/custom-class-template.rst +33 -0
  29. nlr_mlclouds-0.0.6/docs/source/_templates/custom-module-template.rst +64 -0
  30. nlr_mlclouds-0.0.6/docs/source/api.rst +6 -0
  31. nlr_mlclouds-0.0.6/docs/source/conf.py +209 -0
  32. nlr_mlclouds-0.0.6/docs/source/index.rst +13 -0
  33. nlr_mlclouds-0.0.6/docs/source/misc/installation.rst +6 -0
  34. nlr_mlclouds-0.0.6/docs/source/misc/installation_usage.rst +6 -0
  35. nlr_mlclouds-0.0.6/examples/Autoxval_Post_Process_Example.ipynb +146 -0
  36. nlr_mlclouds-0.0.6/examples/README.md +1 -0
  37. nlr_mlclouds-0.0.6/examples/gridsearch.sh +3 -0
  38. nlr_mlclouds-0.0.6/examples/run_all.sh +13 -0
  39. nlr_mlclouds-0.0.6/examples/single_axv.py +39 -0
  40. nlr_mlclouds-0.0.6/examples/single_axv.sh +8 -0
  41. nlr_mlclouds-0.0.6/hyperparameter_tuning/gridsearch_default.json +50 -0
  42. nlr_mlclouds-0.0.6/hyperparameter_tuning/results.csv +4357 -0
  43. nlr_mlclouds-0.0.6/hyperparameter_tuning/results.ipynb +713 -0
  44. nlr_mlclouds-0.0.6/mlclouds/__init__.py +24 -0
  45. nlr_mlclouds-0.0.6/mlclouds/_version.py +24 -0
  46. nlr_mlclouds-0.0.6/mlclouds/autoxval.py +511 -0
  47. nlr_mlclouds-0.0.6/mlclouds/data_cleaners.py +154 -0
  48. nlr_mlclouds-0.0.6/mlclouds/data_handlers.py +738 -0
  49. nlr_mlclouds-0.0.6/mlclouds/grid_searcher.py +532 -0
  50. nlr_mlclouds-0.0.6/mlclouds/model/__init__.py +1 -0
  51. nlr_mlclouds-0.0.6/mlclouds/model/base.py +71 -0
  52. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/config.json +85 -0
  53. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/mlclouds_model.json +80 -0
  54. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/mlclouds_model.pkl +0 -0
  55. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/mlclouds_model_env.json +1 -0
  56. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/outputs/mlclouds_model.json +80 -0
  57. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/outputs/mlclouds_model.pkl +0 -0
  58. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/outputs/mlclouds_model_env.json +1 -0
  59. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/outputs/training_history.csv +401 -0
  60. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/outputs/validation_stats.csv +145 -0
  61. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/outputs/validation_stats_east.csv +145 -0
  62. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/outputs/validation_stats_west.csv +145 -0
  63. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/training_history.csv +401 -0
  64. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/validation_stats.csv +145 -0
  65. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/validation_stats_east.csv +145 -0
  66. nlr_mlclouds-0.0.6/mlclouds/model/cloud_properties/validation_stats_west.csv +145 -0
  67. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/config.json +76 -0
  68. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/outputs/mlclouds_model.json +70 -0
  69. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/outputs/mlclouds_model.pkl +0 -0
  70. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/outputs/mlclouds_model_env.json +1 -0
  71. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/outputs/training_history.csv +391 -0
  72. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/outputs/validation_stats.csv +145 -0
  73. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/outputs/validation_stats_east.csv +145 -0
  74. nlr_mlclouds-0.0.6/mlclouds/model/cloud_type/outputs/validation_stats_west.csv +145 -0
  75. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/__init__.py +1 -0
  76. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/config.json +83 -0
  77. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/k_fold.py +68 -0
  78. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/make_plots.py +71 -0
  79. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_0.json +96 -0
  80. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_0.pkl +0 -0
  81. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_1.json +96 -0
  82. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_1.pkl +0 -0
  83. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_4.json +96 -0
  84. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_4.pkl +0 -0
  85. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_5.json +96 -0
  86. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_5.pkl +0 -0
  87. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_6.json +96 -0
  88. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_6.pkl +0 -0
  89. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_7.json +96 -0
  90. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/model_7.pkl +0 -0
  91. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/training_history_0.csv +201 -0
  92. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/training_history_1.csv +201 -0
  93. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/training_history_4.csv +201 -0
  94. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/training_history_5.csv +201 -0
  95. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/training_history_6.csv +201 -0
  96. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/training_history_7.csv +201 -0
  97. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_0.csv +217 -0
  98. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_1.csv +217 -0
  99. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_4.csv +217 -0
  100. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_5.csv +217 -0
  101. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_6.csv +217 -0
  102. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_7.csv +217 -0
  103. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_east_0.csv +217 -0
  104. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_east_1.csv +217 -0
  105. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_east_4.csv +217 -0
  106. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_east_5.csv +217 -0
  107. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_east_6.csv +217 -0
  108. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_east_7.csv +217 -0
  109. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_west_0.csv +217 -0
  110. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_west_1.csv +217 -0
  111. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_west_4.csv +217 -0
  112. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_west_5.csv +217 -0
  113. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_west_6.csv +217 -0
  114. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/outputs/validation_stats_west_7.csv +217 -0
  115. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_dni_all_sky.png +0 -0
  116. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_dni_clear.png +0 -0
  117. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_dni_cloudy.png +0 -0
  118. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_dni_missing_cloud_data.png +0 -0
  119. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_ghi_all_sky.png +0 -0
  120. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_ghi_clear.png +0 -0
  121. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_ghi_cloudy.png +0 -0
  122. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mae_ghi_missing_cloud_data.png +0 -0
  123. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_dni_all_sky.png +0 -0
  124. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_dni_clear.png +0 -0
  125. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_dni_cloudy.png +0 -0
  126. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_dni_missing_cloud_data.png +0 -0
  127. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_ghi_all_sky.png +0 -0
  128. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_ghi_clear.png +0 -0
  129. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_ghi_cloudy.png +0 -0
  130. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_mbe_ghi_missing_cloud_data.png +0 -0
  131. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_dni_all_sky.png +0 -0
  132. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_dni_clear.png +0 -0
  133. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_dni_cloudy.png +0 -0
  134. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_dni_missing_cloud_data.png +0 -0
  135. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_ghi_all_sky.png +0 -0
  136. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_ghi_clear.png +0 -0
  137. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_ghi_cloudy.png +0 -0
  138. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/plots/kfold_stats_rmse_ghi_missing_cloud_data.png +0 -0
  139. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/run_k_fold_all.sh +14 -0
  140. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/run_k_fold_single.sh +10 -0
  141. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442609.txt +1071 -0
  142. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442610.txt +1071 -0
  143. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442611.txt +458 -0
  144. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442612.txt +421 -0
  145. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442613.txt +1071 -0
  146. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442614.txt +1071 -0
  147. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442615.txt +1071 -0
  148. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442616.txt +1064 -0
  149. nlr_mlclouds-0.0.6/mlclouds/model/k_fold/stdout/stdout_8442617.txt +464 -0
  150. nlr_mlclouds-0.0.6/mlclouds/model/legacy/config.json +87 -0
  151. nlr_mlclouds-0.0.6/mlclouds/model/legacy/outputs/mlclouds_model.json +105 -0
  152. nlr_mlclouds-0.0.6/mlclouds/model/legacy/outputs/mlclouds_model.pkl +0 -0
  153. nlr_mlclouds-0.0.6/mlclouds/model/legacy/outputs/mlclouds_model_env.json +1 -0
  154. nlr_mlclouds-0.0.6/mlclouds/model/legacy/outputs/training_history.csv +391 -0
  155. nlr_mlclouds-0.0.6/mlclouds/model/legacy/outputs/validation_stats.csv +145 -0
  156. nlr_mlclouds-0.0.6/mlclouds/model/legacy/outputs/validation_stats_east.csv +145 -0
  157. nlr_mlclouds-0.0.6/mlclouds/model/legacy/outputs/validation_stats_west.csv +145 -0
  158. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_dni_all_sky.png +0 -0
  159. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_dni_clear.png +0 -0
  160. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_dni_cloudy.png +0 -0
  161. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_dni_missing_cloud_data.png +0 -0
  162. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_ghi_all_sky.png +0 -0
  163. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_ghi_clear.png +0 -0
  164. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_ghi_cloudy.png +0 -0
  165. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mae_ghi_missing_cloud_data.png +0 -0
  166. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_dni_all_sky.png +0 -0
  167. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_dni_clear.png +0 -0
  168. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_dni_cloudy.png +0 -0
  169. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_dni_missing_cloud_data.png +0 -0
  170. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_ghi_all_sky.png +0 -0
  171. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_ghi_clear.png +0 -0
  172. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_ghi_cloudy.png +0 -0
  173. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_mbe_ghi_missing_cloud_data.png +0 -0
  174. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_dni_all_sky.png +0 -0
  175. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_dni_clear.png +0 -0
  176. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_dni_cloudy.png +0 -0
  177. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_dni_missing_cloud_data.png +0 -0
  178. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_ghi_all_sky.png +0 -0
  179. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_ghi_clear.png +0 -0
  180. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_ghi_cloudy.png +0 -0
  181. nlr_mlclouds-0.0.6/mlclouds/model/legacy/plots/stats_rmse_ghi_missing_cloud_data.png +0 -0
  182. nlr_mlclouds-0.0.6/mlclouds/model/legacy/stdout/stdout_12133411.txt +1097 -0
  183. nlr_mlclouds-0.0.6/mlclouds/model/multi_step.py +101 -0
  184. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/config.json +78 -0
  185. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/outputs/mlclouds_model.json +77 -0
  186. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/outputs/mlclouds_model.pkl +0 -0
  187. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/outputs/mlclouds_model_env.json +1 -0
  188. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/outputs/training_history.csv +191 -0
  189. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/outputs/validation_stats.csv +129 -0
  190. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/outputs/validation_stats_east.csv +129 -0
  191. nlr_mlclouds-0.0.6/mlclouds/model/type_plus_properties/outputs/validation_stats_west.csv +129 -0
  192. nlr_mlclouds-0.0.6/mlclouds/nsrdb.py +69 -0
  193. nlr_mlclouds-0.0.6/mlclouds/p_fun.py +211 -0
  194. nlr_mlclouds-0.0.6/mlclouds/scripts/__init__.py +1 -0
  195. nlr_mlclouds-0.0.6/mlclouds/scripts/make_plots.py +54 -0
  196. nlr_mlclouds-0.0.6/mlclouds/scripts/run_sbatch.sh +10 -0
  197. nlr_mlclouds-0.0.6/mlclouds/scripts/run_train_test.sh +8 -0
  198. nlr_mlclouds-0.0.6/mlclouds/scripts/train.py +69 -0
  199. nlr_mlclouds-0.0.6/mlclouds/scripts/train_n_val.py +170 -0
  200. nlr_mlclouds-0.0.6/mlclouds/tdhi.py +34 -0
  201. nlr_mlclouds-0.0.6/mlclouds/tdisc.py +106 -0
  202. nlr_mlclouds-0.0.6/mlclouds/tfarms.py +223 -0
  203. nlr_mlclouds-0.0.6/mlclouds/trainer.py +143 -0
  204. nlr_mlclouds-0.0.6/mlclouds/utilities.py +168 -0
  205. nlr_mlclouds-0.0.6/mlclouds/validator.py +508 -0
  206. nlr_mlclouds-0.0.6/pyproject.toml +179 -0
  207. nlr_mlclouds-0.0.6/setup.cfg +4 -0
  208. nlr_mlclouds-0.0.6/setup.py +36 -0
  209. nlr_mlclouds-0.0.6/tests/README.md +1 -0
  210. nlr_mlclouds-0.0.6/tests/data/README.md +1 -0
  211. nlr_mlclouds-0.0.6/tests/data/fake_stats.csv +2 -0
  212. nlr_mlclouds-0.0.6/tests/test_autoxval.py +97 -0
  213. nlr_mlclouds-0.0.6/tests/test_cloud_type_model.py +147 -0
  214. nlr_mlclouds-0.0.6/tests/test_combined_model.py +67 -0
  215. nlr_mlclouds-0.0.6/tests/test_legacy_model.py +61 -0
  216. nlr_mlclouds-0.0.6/tests/test_multistep_model.py +118 -0
  217. nlr_mlclouds-0.0.6/tests/test_tdisc.py +27 -0
  218. nlr_mlclouds-0.0.6/tests/test_tfarms.py +39 -0
  219. nlr_mlclouds-0.0.6/tests/test_xval.py +159 -0
  220. nlr_mlclouds-0.0.6/tests/timeseries/timeseries_dni_6.csv +105121 -0
  221. nlr_mlclouds-0.0.6/tests/timeseries/timeseries_ghi_6.csv +105121 -0
@@ -0,0 +1,4 @@
1
+ [flake8]
2
+ ignore = E731,E402,F,W503
3
+ exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
4
+ max-complexity = 20
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: Bug report
3
+ about: Notify the developers of anomalous and incorrect software behavior
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Bug Description**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **Full Traceback**
14
+ Full traceback of any errors received, if applicable
15
+
16
+ **Code Sample**
17
+ A copy-pastable example if possible
18
+
19
+ ```python
20
+ # Your code here
21
+
22
+ ```
23
+
24
+ **To Reproduce**
25
+ Steps to reproduce the problem behavior
26
+ 1. Go to '...'
27
+ 2. Click on '....'
28
+ 3. Scroll down to '....'
29
+ 4. See error
30
+
31
+ **Expected behavior**
32
+ A clear and concise description of what you expected to happen.
33
+
34
+ **Screenshots**
35
+ If applicable, add screenshots to help explain your problem.
36
+
37
+ **System (please complete the following information):**
38
+ - OS: [e.g. OSX, Windows, Linux]
39
+ - Compute hardware (e.g. HPC, AWS)
40
+ - Version [e.g. 0.1]
41
+
42
+ **Additional context**
43
+ Add any other context about the problem here.
44
+
45
+ **Charge code**
46
+ If you are at NLR and fixing this bug is urgent, please provide a charge code for our time.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: Feature request
3
+ about: Request a new MLClouds feature
4
+ title: ''
5
+ labels: feature
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Why this feature is necessary:**
11
+ Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **A possible solution is:**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **I have considered the following alternatives:**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
21
+
22
+ **Charge code**
23
+ If you are at NLR, please provide a task number for the developers to implement this feature.
24
+
25
+ **Urgency / Timeframe**
26
+ When do you need this feature by? How urgent is it related to other feature requests you've made?
@@ -0,0 +1,16 @@
1
+ categories:
2
+ - title: "Features"
3
+ labels:
4
+ - "feature"
5
+ - "enhancement"
6
+ - title: "Bug Fixes"
7
+ labels:
8
+ - "bug"
9
+ - title: "Updates"
10
+ labels:
11
+ - "refactor"
12
+ - "documentation"
13
+ template: |
14
+ ## What's Changed
15
+
16
+ $CHANGES
@@ -0,0 +1,47 @@
1
+ name: Codecov
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+
7
+ jobs:
8
+ run:
9
+ runs-on: ${{ matrix.os }}
10
+ strategy:
11
+ max-parallel: 3
12
+ matrix:
13
+ os: [ubuntu-latest]
14
+ env:
15
+ OS: ${{ matrix.os }}
16
+ PYTHON: '3.9'
17
+ steps:
18
+ - uses: actions/checkout@v3
19
+ with:
20
+ ref: ${{ github.event.pull_request.head.ref }}
21
+ fetch-depth: 0
22
+ fetch-tags: true
23
+ - name: Setup Python
24
+ uses: actions/setup-python@v4
25
+ with:
26
+ python-version: 3.9
27
+ - name: install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ conda install hdf4
31
+ python -m pip install pyhdf
32
+ python -m pip install pytest
33
+ python -m pip install pytest-cov
34
+ python -m pip install .
35
+ - name: Generate coverage report
36
+ run: |
37
+ python -m pytest --cov=./ --cov-report=xml:coverage.xml
38
+ - name: Upload coverage to Codecov
39
+ uses: codecov/codecov-action@v4.0.1
40
+ with:
41
+ token: ${{ secrets.CODECOV_TOKEN }}
42
+ file: ./coverage.xml
43
+ flags: unittests
44
+ env_vars: OS,PYTHON
45
+ name: codecov-umbrella
46
+ fail_ci_if_error: false
47
+ verbose: true
@@ -0,0 +1,37 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+
7
+ jobs:
8
+ make-pages:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ ref: ${{ github.event.pull_request.head.ref }}
14
+ fetch-depth: 0
15
+ fetch-tags: true
16
+ - name: select python version
17
+ uses: actions/setup-python@v4
18
+ with:
19
+ python-version: 3.9
20
+ - name: install dependencies
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ python -m pip install .
24
+ python -m pip install sphinx
25
+ python -m pip install sphinx_rtd_theme
26
+ python -m pip install sphinx-click
27
+ - name: build documentation
28
+ run: |
29
+ cd docs
30
+ make html
31
+ - name: deploy
32
+ uses: peaceiris/actions-gh-pages@v3.6.1
33
+ with:
34
+ github_token: ${{ secrets.GITHUB_TOKEN }}
35
+ publish_dir: ./docs/_build/html
36
+ force_orphan: true
37
+ full_commit_message: ${{ github.event.head_commit.message }}
@@ -0,0 +1,19 @@
1
+ name: Lint Code Base
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches-ignore:
7
+ - 'gh-pages'
8
+
9
+ jobs:
10
+ ruff:
11
+ name: Ruff
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: chartboost/ruff-action@v1
16
+ with:
17
+ version: 0.4.10
18
+ args: check --output-format=github
19
+ src: "./mlclouds ./tests"
@@ -0,0 +1,32 @@
1
+ name: Upload to PyPi
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ # IMPORTANT: this permission is mandatory for trusted publishing
13
+ id-token: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
+ fetch-tags: true
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: 3.9
23
+ - name: Install dependencies and Build
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ python -m pip install setuptools build twine
27
+ python -m build --sdist --wheel --outdir dist/ .
28
+ - name: Check distribution files
29
+ run: |
30
+ python -m twine check dist/*
31
+ - name: Publish
32
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,37 @@
1
+ name: Pytests
2
+
3
+ on: pull_request
4
+
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ${{ matrix.os }}
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ os: [ubuntu-latest]
13
+ python-version: ['3.11']
14
+ include:
15
+ - os: ubuntu-latest
16
+ python-version: '3.10'
17
+ - os: ubuntu-latest
18
+ python-version: '3.9'
19
+
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ with:
23
+ ref: ${{ github.event.pull_request.head.ref }}
24
+ fetch-depth: 0
25
+ fetch-tags: true
26
+ - name: Set up Python ${{ matrix.python-version }}
27
+ uses: actions/setup-python@v5
28
+ with:
29
+ python-version: ${{ matrix.python-version }}
30
+ cache: 'pip'
31
+ - name: Install dependencies
32
+ run: |
33
+ python -m pip install --upgrade pip
34
+ python -m pip install .[test]
35
+ - name: Run pytest
36
+ run: |
37
+ python -m pytest -v --disable-warnings
@@ -0,0 +1,14 @@
1
+ name: Release Drafter
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ update_release_draft:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Release Drafter
12
+ uses: release-drafter/release-drafter@v5.15.0
13
+ env:
14
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,152 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ #mac
7
+ .DS_Store
8
+
9
+ # VIM
10
+ tags
11
+ *.swp
12
+
13
+ # Visual Studio
14
+ *.vscode
15
+
16
+ # C extensions
17
+ *.so
18
+
19
+ # Distribution / packaging
20
+ .Python
21
+ build/
22
+ develop-eggs/
23
+ dist/
24
+ downloads/
25
+ eggs/
26
+ .eggs/
27
+ lib/
28
+ lib64/
29
+ parts/
30
+ sdist/
31
+ var/
32
+ wheels/
33
+ pip-wheel-metadata/
34
+ share/python-wheels/
35
+ *.egg-info/
36
+ .installed.cfg
37
+ *.egg
38
+ MANIFEST
39
+ mlclouds/_version.py
40
+
41
+ # PyInstaller
42
+ # Usually these files are written by a python script from a template
43
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
44
+ *.manifest
45
+ *.spec
46
+
47
+ # Installer logs
48
+ pip-log.txt
49
+ pip-delete-this-directory.txt
50
+
51
+ # Unit test / coverage reports
52
+ htmlcov/
53
+ .tox/
54
+ .nox/
55
+ .coverage
56
+ .coverage.*
57
+ .cache
58
+ nosetests.xml
59
+ coverage.xml
60
+ *.cover
61
+ *.py,cover
62
+ .hypothesis/
63
+ .pytest_cache/
64
+
65
+ # Translations
66
+ *.mo
67
+ *.pot
68
+
69
+ # Django stuff:
70
+ *.log
71
+ local_settings.py
72
+ db.sqlite3
73
+ db.sqlite3-journal
74
+
75
+ # Flask stuff:
76
+ instance/
77
+ .webassets-cache
78
+
79
+ # Scrapy stuff:
80
+ .scrapy
81
+
82
+ # Sphinx documentation
83
+ docs/_build/
84
+ docs/source/_autosummary/
85
+
86
+ # PyBuilder
87
+ target/
88
+
89
+ # Jupyter Notebook
90
+ .ipynb_checkpoints
91
+
92
+ # IPython
93
+ profile_default/
94
+ ipython_config.py
95
+
96
+ # pyenv
97
+ .python-version
98
+
99
+ # pipenv
100
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
101
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
102
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
103
+ # install all needed dependencies.
104
+ #Pipfile.lock
105
+
106
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
107
+ __pypackages__/
108
+
109
+ # Celery stuff
110
+ celerybeat-schedule
111
+ celerybeat.pid
112
+
113
+ # SageMath parsed files
114
+ *.sage.py
115
+
116
+ # Environments
117
+ .env
118
+ .venv
119
+ env/
120
+ venv/
121
+ ENV/
122
+ env.bak/
123
+ venv.bak/
124
+
125
+ # Spyder project settings
126
+ .spyderproject
127
+ .spyproject
128
+
129
+ # Rope project settings
130
+ .ropeproject
131
+
132
+ # mkdocs documentation
133
+ /site
134
+
135
+ # mypy
136
+ .mypy_cache/
137
+ .dmypy.json
138
+ dmypy.json
139
+
140
+ # Pyre type checker
141
+ .pyre/
142
+
143
+ # vscode
144
+ *.vscode
145
+
146
+ # Various example output files
147
+ examples/*.csv
148
+ examples/output/*
149
+ examples/models/*
150
+
151
+ model/*/output/*.txt
152
+ model/*/stats/*.csv
@@ -0,0 +1,26 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v2.3.0
4
+ hooks:
5
+ - id: check-json
6
+ - id: check-yaml
7
+ - id: check-merge-conflict
8
+ - id: check-symlinks
9
+ - id: check-toml
10
+ - id: flake8
11
+ args: [--config, .github/linters/.flake8]
12
+ - id: mixed-line-ending
13
+ - repo: https://github.com/PyCQA/pylint
14
+ rev: v3.1.0
15
+ hooks:
16
+ - id: pylint
17
+ args:
18
+ [
19
+ --rcfile,
20
+ .github/linters/.python-lint,
21
+ ]
22
+ - repo: https://github.com/astral-sh/ruff-pre-commit
23
+ rev: v0.5.3
24
+ hooks:
25
+ - id: ruff
26
+