sierra-research 1.3.1__py3-none-any.whl → 1.3.6__py3-none-any.whl

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 (23) hide show
  1. sierra/core/config.py +1 -1
  2. sierra/core/graphs/stacked_line_graph.py +9 -6
  3. sierra/core/models/graphs.py +0 -1
  4. sierra/core/pipeline/stage2/exp_runner.py +4 -4
  5. sierra/core/pipeline/stage3/imagizer.py +2 -1
  6. sierra/core/pipeline/stage4/__init__.py +2 -0
  7. sierra/core/startup.py +1 -0
  8. sierra/core/utils.py +1 -1
  9. sierra/main.py +1 -1
  10. sierra/version.py +1 -1
  11. {sierra_research-1.3.1.data → sierra_research-1.3.6.data}/data/share/man/man1/sierra-cli.1 +134 -134
  12. {sierra_research-1.3.1.data → sierra_research-1.3.6.data}/data/share/man/man7/sierra-examples.7 +15 -15
  13. {sierra_research-1.3.1.data → sierra_research-1.3.6.data}/data/share/man/man7/sierra-exec-envs.7 +12 -12
  14. {sierra_research-1.3.1.data → sierra_research-1.3.6.data}/data/share/man/man7/sierra-glossary.7 +12 -12
  15. {sierra_research-1.3.1.data → sierra_research-1.3.6.data}/data/share/man/man7/sierra-platforms.7 +31 -31
  16. {sierra_research-1.3.1.data → sierra_research-1.3.6.data}/data/share/man/man7/sierra-usage.7 +56 -56
  17. {sierra_research-1.3.1.data → sierra_research-1.3.6.data}/data/share/man/man7/sierra.7 +5 -5
  18. {sierra_research-1.3.1.dist-info → sierra_research-1.3.6.dist-info}/METADATA +7 -6
  19. {sierra_research-1.3.1.dist-info → sierra_research-1.3.6.dist-info}/RECORD +23 -23
  20. {sierra_research-1.3.1.dist-info → sierra_research-1.3.6.dist-info}/WHEEL +1 -1
  21. {sierra_research-1.3.1.dist-info → sierra_research-1.3.6.dist-info}/LICENSE +0 -0
  22. {sierra_research-1.3.1.dist-info → sierra_research-1.3.6.dist-info}/entry_points.txt +0 -0
  23. {sierra_research-1.3.1.dist-info → sierra_research-1.3.6.dist-info}/top_level.txt +0 -0
sierra/core/config.py CHANGED
@@ -45,7 +45,7 @@ def mpl_init():
45
45
  import matplotlib.pyplot as plt
46
46
 
47
47
  # Set MPL style
48
- plt.style.use('seaborn-colorblind')
48
+ plt.style.use('seaborn-v0_8-colorblind')
49
49
 
50
50
 
51
51
  # Actually initialize matplotlib
@@ -181,7 +181,7 @@ class StackedLineGraph:
181
181
  # which is more amenable to inclusion in academic papers.
182
182
 
183
183
  # If the legend is not specified, then we assume this is not a graph
184
- # that will contain any models.
184
+ # that will contain any models and/or no legend is desired.
185
185
  legend = self.legend
186
186
 
187
187
  if self.legend is not None:
@@ -197,21 +197,24 @@ class StackedLineGraph:
197
197
  ncol=1,
198
198
  fontsize=self.text_size['legend_label'])
199
199
  else:
200
- ax.legend(loc='lower center',
201
- bbox_to_anchor=(0.5, -0.5),
202
- ncol=1,
203
- fontsize=self.text_size['legend_label'])
200
+ ax.legend().remove()
201
+ # ax.legend(loc='lower center',
202
+ # bbox_to_anchor=(0.5, -0.5),
203
+ # ncol=1,
204
+ # fontsize=self.text_size['legend_label'])
204
205
 
205
206
  def _read_stats(self) -> tp.Dict[str, pd.DataFrame]:
206
207
  dfs = {}
208
+
207
209
  reader = storage.DataFrameReader('storage.csv')
208
210
  if self.stats in ['conf95', 'all']:
209
211
  exts = config.kStats['conf95'].exts
212
+
210
213
  for k in exts:
211
214
  ipath = self.stats_root / (self.input_stem + exts[k])
212
215
 
213
216
  if utils.path_exists(ipath):
214
- dfs[exts[k]] = reader(ipath)
217
+ dfs[k] = reader(ipath)
215
218
  else:
216
219
  self.logger.warning("%sfile not found for '%s'",
217
220
  exts[k],
@@ -8,7 +8,6 @@ For example, you can always compare the model value to the empirical value, and
8
8
  plot the difference as error.
9
9
  """
10
10
  # Core packages
11
- import os
12
11
  import pathlib
13
12
 
14
13
  # 3rd party packages
@@ -207,10 +207,10 @@ class BatchExpRunner:
207
207
  shell)
208
208
  runner(exp, exp_num)
209
209
 
210
- # Run cmds to cleanup platform-specific things now that the experiment
211
- # is done (if needed).
212
- for spec in generator.post_exp_cmds():
213
- shell.run_from_spec(spec)
210
+ # Run cmds to cleanup platform-specific things now that the experiment
211
+ # is done (if needed).
212
+ for spec in generator.post_exp_cmds():
213
+ shell.run_from_spec(spec)
214
214
 
215
215
 
216
216
  class ExpRunner:
@@ -138,7 +138,8 @@ class ExpImagizer:
138
138
  ylabel='Y').generate()
139
139
 
140
140
  else:
141
- self.logger.warning("No match for graph with src_stem=%s found",
141
+ self.logger.warning(("No match for graph with src_stem='%s' "
142
+ "found in configuration"),
142
143
  imagize_opts['graph_stem'])
143
144
 
144
145
 
@@ -0,0 +1,2 @@
1
+ from . import inter_exp_graph_generator
2
+ from . import intra_exp_graph_generator
sierra/core/startup.py CHANGED
@@ -38,6 +38,7 @@ kDebianPackages = types.OSPackagesSpec('linux',
38
38
  'texlive-fonts-recommended': True,
39
39
  'texlive-latex-extra': True,
40
40
  'dvipng': True,
41
+ 'psmisc': True,
41
42
  'pssh': False,
42
43
  'ffmpeg': False,
43
44
  'xvfb': False
sierra/core/utils.py CHANGED
@@ -365,7 +365,7 @@ def df_fill(df: pd.DataFrame, policy: str) -> pd.DataFrame:
365
365
 
366
366
 
367
367
  @retry(OSError, tries=10, delay=0.100, backoff=1.1) # type:ignore
368
- def pickle_dump(obj: object, f: tp.IO) -> None:
368
+ def pickle_dump(obj: object, f) -> None:
369
369
  pickle.dump(obj, f)
370
370
 
371
371
 
sierra/main.py CHANGED
@@ -52,7 +52,7 @@ class SIERRA():
52
52
  project = bootstrap_args.project
53
53
  plugin_core_path = [install_root / 'plugins' / 'hpc',
54
54
  install_root / 'plugins' / 'storage',
55
- install_root / 'plugins' / 'robots',
55
+ install_root / 'plugins' / 'robot',
56
56
  install_root / 'plugins' / 'platform']
57
57
  plugin_search_path = plugin_core_path
58
58
  env = os.environ.get('SIERRA_PLUGIN_PATH')
sierra/version.py CHANGED
@@ -9,4 +9,4 @@
9
9
 
10
10
  # Project packages
11
11
 
12
- __version__ = "1.3.1"
12
+ __version__ = "1.3.6"