Skip to content

highlight multiple constellations - #29

Open
tbartic wants to merge 11 commits into
dcf21:masterfrom
tbartic:master
Open

highlight multiple constellations#29
tbartic wants to merge 11 commits into
dcf21:masterfrom
tbartic:master

Conversation

@tbartic

@tbartic tbartic commented Jun 28, 2026

Copy link
Copy Markdown

Code has been modified to (all code has been generated and debugged using claude.ai):

  • fix the problem of running into ulimit if the configuration file requeste more than 5 charts to be generated. Now the constellation contour file is open first, buffered then the drawing is happening
  • added the possibility to highlight mulitiple constellations. just provide a commas separated list to constellation_highlight

tbartic added 11 commits June 27, 2026 17:32
the original code would keep opening the outline file for every chart in the configuration file. That is fine as long as the number of files is small, in my case below 5. If one wants to generate more charts in one config file one runs into problems with the ulimit. 
This code, generated by claude, fixes the issue by splitting the file opening and drawing in two separete functions.
…stead of one constellation

constellation_highlight had been originally made to read one three letter abbreviation of a constellation. 
the new version has the ability to read an entire string of several constellations separated by commas.
file opening and drawing split
constellation_highlight  was limited to an array of 8 bytes which is too short for holding a series of constellations. It has now been upgraded to a much longer one so that we can highlight mulitple constellations
…nstellations

Added functionality to highlight constellations based on a comma-separated list of 3-letter abbreviations. The code now parses the highlight list and checks if each constellation is in the highlight list to set the appropriate line color and width.
Comment out test chart generation and related commands
Updated 'force_refresh' to use the 'refresh' variable instead of a hardcoded True.
replaced except Value Error with except (ValueError, IndexError):
Fixed warnin about  unsigned char C[V_SIZE_MAP1][H_SIZE_MAP1];
Updated the `constellation_highlight` option to allow highlighting multiple constellations with a comma-separated list. 
Configuration file can now have more than just 5 charts in one file and does not run in ulimit limitation.
Removed unnecessary variable 'was_highlighted' used for tracking highlight state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant