johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
494 stars 110 forks source link

Gammaparse autoparser adds gamma definitions on each import. #313

Open julian-zeidler opened 2 months ago

julian-zeidler commented 2 months ago

Whenever the gamma module is loaded the autoparser is called to detect the GAMMA installation.

This raises two issues. 1.) The same definitions are appended on every load massively increasing the Size of the created python file and dublicating the same defines. In my home the ~/.pyrosar/gammaparse/diff.py was at 15MB and i found the same def mk_unw_ref_2d defintion 141 times. 2.) If running pyrosar in parallel multiple instances are adding to these files, making the imports randomly fail because the file is in an inconsistent state.

I am using the feature/coherence_gamma branch from inside a conda environment.