honeybee-radiance-postprocess 0.4.439__tar.gz → 0.4.441__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 (52) hide show
  1. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/PKG-INFO +1 -1
  2. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/translate.py +9 -4
  3. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/vis_metadata.py +4 -4
  4. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess.egg-info/PKG-INFO +1 -1
  5. honeybee-radiance-postprocess-0.4.441/honeybee_radiance_postprocess.egg-info/requires.txt +2 -0
  6. honeybee-radiance-postprocess-0.4.441/requirements.txt +2 -0
  7. honeybee-radiance-postprocess-0.4.439/honeybee_radiance_postprocess.egg-info/requires.txt +0 -2
  8. honeybee-radiance-postprocess-0.4.439/requirements.txt +0 -2
  9. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/CODE_OF_CONDUCT.md +0 -0
  10. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/CONTRIBUTING.md +0 -0
  11. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/LICENSE +0 -0
  12. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/MANIFEST.in +0 -0
  13. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/README.md +0 -0
  14. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/dev-requirements.txt +0 -0
  15. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/__init__.py +0 -0
  16. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/__main__.py +0 -0
  17. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/annual.py +0 -0
  18. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
  19. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
  20. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
  21. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/abnt.py +0 -0
  22. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/grid.py +0 -0
  23. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/leed.py +0 -0
  24. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/merge.py +0 -0
  25. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
  26. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/postprocess.py +0 -0
  27. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
  28. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/two_phase.py +0 -0
  29. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/util.py +0 -0
  30. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/cli/viewfactor.py +0 -0
  31. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/data_type.py +0 -0
  32. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/dynamic.py +0 -0
  33. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/electriclight.py +0 -0
  34. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/en17037.py +0 -0
  35. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/helper.py +0 -0
  36. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/leed/__init__.py +0 -0
  37. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/leed/leed.py +0 -0
  38. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/leed/leed_schedule.py +0 -0
  39. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/metrics.py +0 -0
  40. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/reader.py +0 -0
  41. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/results/__init__.py +0 -0
  42. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
  43. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
  44. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/results/results.py +0 -0
  45. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/type_hints.py +0 -0
  46. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess/util.py +0 -0
  47. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +0 -0
  48. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
  49. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
  50. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
  51. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/setup.cfg +0 -0
  52. {honeybee-radiance-postprocess-0.4.439 → honeybee-radiance-postprocess-0.4.441}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.439
3
+ Version: 0.4.441
4
4
  Summary: Postprocessing of Radiance results and matrices
5
5
  Home-page: https://github.com/ladybug-tools/honeybee-radiance-postprocess
6
6
  Author: Ladybug Tools
@@ -30,13 +30,17 @@ def translate():
30
30
  type=click.Path(exists=False, file_okay=False, dir_okay=True, resolve_path=True)
31
31
  )
32
32
  @click.option(
33
- '--extension', '-ext', help='Output file extension', default='.txt', show_default=True
33
+ '--extension', '-ext', help='Output file extension', default='txt', show_default=True
34
34
  )
35
35
  @click.option(
36
36
  '--output-format', '-fmt', help='Output format for each element in the array',
37
37
  default='%.7e', show_default=True
38
38
  )
39
- def npy_to_txt(npy_file, name, output_folder, extension, output_format):
39
+ @click.option(
40
+ '--delimiter', '-d', help='Delimiter in the text file.', default='\t',
41
+ type=click.Choice(['\t', ' ', ',', ';', 'tab', 'space', 'comma', 'semicolon'])
42
+ )
43
+ def npy_to_txt(npy_file, name, output_folder, extension, output_format, delimiter):
40
44
  """Convert a npy file to text file.
41
45
 
42
46
  This command reads a NumPy array from a npy file and saves it as readable file. The
@@ -47,10 +51,11 @@ def npy_to_txt(npy_file, name, output_folder, extension, output_format):
47
51
  npy-file: Path to npy file.
48
52
  """
49
53
  try:
54
+ delimiter = get_delimiter(delimiter)
50
55
  array = np.load(npy_file)
51
- output = Path(output_folder, name + extension)
56
+ output = Path(output_folder, f'{name}.{extension}')
52
57
  output.parent.mkdir(parents=True, exist_ok=True)
53
- np.savetxt(output, array, fmt=output_format, delimiter='\t')
58
+ np.savetxt(output, array, fmt=output_format, delimiter=delimiter)
54
59
 
55
60
  except Exception:
56
61
  _logger.exception('Converting npy file to text file failed.')
@@ -7,16 +7,16 @@ from ladybug.datatype.generic import GenericType
7
7
  def _abnt_nbr_15575_daylight_levels_vis_metadata():
8
8
  """Return visualization metadata for ABNT NBR 15575 Daylight levels."""
9
9
  level_value = {
10
- 0: 'Nao atende',
11
- 1: 'Minimo',
12
- 2: 'Intermediario',
10
+ 0: 'Não atende',
11
+ 1: 'Mínimo',
12
+ 2: 'Intermediário',
13
13
  3: 'Superior'
14
14
  }
15
15
 
16
16
  colors = [Color(255, 198, 143), Color(255, 255, 209), Color(192, 231, 189), Color(83, 169, 206)]
17
17
  illuminance_levels_lpar = \
18
18
  LegendParameters(min=0, max=3, colors=colors, segment_count=4,
19
- title='Niveis de iluminamento')
19
+ title='Níveis de iluminamento')
20
20
  illuminance_levels_lpar.ordinal_dictionary = level_value
21
21
 
22
22
  metric_info_dict = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.439
3
+ Version: 0.4.441
4
4
  Summary: Postprocessing of Radiance results and matrices
5
5
  Home-page: https://github.com/ladybug-tools/honeybee-radiance-postprocess
6
6
  Author: Ladybug Tools
@@ -0,0 +1,2 @@
1
+ honeybee-radiance==1.66.109
2
+ numpy>=1.21.6
@@ -0,0 +1,2 @@
1
+ honeybee-radiance==1.66.109
2
+ numpy>=1.21.6
@@ -1,2 +0,0 @@
1
- honeybee-radiance==1.66.108
2
- numpy>=1.21.6
@@ -1,2 +0,0 @@
1
- honeybee-radiance==1.66.108
2
- numpy>=1.21.6