Skip to content

Avoid duplication of header in generated script

Mikhail Svechnikov requested to merge m.export_to_py into main

Previously we had

import bornagain as ba
from bornagain import deg, nm, R3


import bornagain as ba
from bornagain import deg, nm, R3


def get_sample():
    # Define materials
.....

Merge request reports