Skip to content

Commit

Permalink
assign interface when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
rozyczko committed Feb 4, 2025
1 parent 512bfcf commit c459983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/easydiffraction/job/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Experiment(coreExperiment):
def __init__(self, job_name: str, datastore: xr.Dataset = None, *args, **kwargs):
super(Experiment, self).__init__(job_name, *args, **kwargs)
self.job_name = job_name

self.interface = None
self.is_tof = False
self.is_polarized = False
self.is_single_crystal = False
Expand Down
1 change: 1 addition & 0 deletions src/easydiffraction/job/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def __init__(
# assign Job components
self.sample = sample # container for phases
self.interface = self.sample._interface
self.experiment.interface = self.interface
self.analysis = analysis
self.update_experiment_type()
# necessary for the fitter
Expand Down

0 comments on commit c459983

Please sign in to comment.