gordonwatts / hep_tables

Prototyping Hierarchical data, with servicex as a backend
MIT License
2 stars 0 forks source link

Fix up max variable name counter to reset #11

Closed gordonwatts closed 4 years ago

gordonwatts commented 4 years ago

This was triggered when running lots and lots of queries all at once:

i:\gwatts\code\calratio2019\calms\.venv\lib\site-packages\hep_tables\utils.py in new_var_name()
     36     '''
     37     global _var_name_counter
---> 38     assert _var_name_counter < 10000
     39     v = f'e{_var_name_counter:04}'
     40     _var_name_counter = _var_name_counter + 1

Fix by making it per-query or similar.