Skip to content

Conversation

mandli
Copy link
Member

@mandli mandli commented Jun 19, 2025

Ran into this with @mjberger. Adds an option for print_gaugenos = 'none' as well as False. Also adds some logic to allow any of the str options to be case-insensitive.

if gaugeno not in plotdata.print_gaugenos:
#print('+++ skipping gauge %i, not in print_gaugenos' % gaugeno)
continue # to next gauge
if (plotdata.print_gaugenos.lower() != 'all' or
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kml version not working. I think or should be and here, but also if gaugeno is an int the next line doesn't work:

    gaugeno not in plotdata.print_gaugenos):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'in <string>' requires string as left operand, not int

mandli added 2 commits August 25, 2025 09:47
Does a little bit more where `none` and `all` case does not matter.  This
was added to make it so that `None` for instance is valid.
@mandli mandli force-pushed the add-print_gaugenos-none branch from 6244195 to f0f4b5c Compare August 25, 2025 13:47
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.

2 participants