Skip to content

Commit

Permalink
fix(face): Shorten rectangle identifier to better support DOE-2
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Apr 27, 2024
1 parent 90b7548 commit c74757b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion honeybee/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ def rectangularize_apertures(
exist_ap = old_ap
break
if exist_ap is None: # could not be matched; just make a new aperture
new_ap = Aperture('{}_RectGlz{}'.format(self.identifier, i), ap_face)
new_ap = Aperture('{}_RG{}'.format(self.identifier, i), ap_face)
else:
new_ap = Aperture(exist_ap.identifier, ap_face,
is_operable=exist_ap.is_operable)
Expand Down
2 changes: 1 addition & 1 deletion honeybee/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def readable_short_name(value, max_length=24):
if len(value) <= max_length:
return value
# lastly, remove some characters from the middle to get it to fit
mid_ind = int(max_length * (2 / 3))
mid_ind = int(max_length * 0.5)
assert mid_ind > 3, \
'Max character length of {} is too restrictive.'.format(max_length)
end_length = max_length - mid_ind - 1
Expand Down

0 comments on commit c74757b

Please sign in to comment.