Avoid duplication of header in generated script
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
.....
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
.....