Skip to content

Commit

Permalink
Merge branch 'main' into iterate_nojobs
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Nov 14, 2023
2 parents 4a65bd7 + bed304c commit 1afb6ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xfaster/xfaster_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1893,13 +1893,15 @@ def get_mask_weights(
)

def process_gcorr(gcorr_file_in):
write = False
if not hasattr(self, "gcorr"):
self.gcorr = None
if apply_gcorr and self.gcorr is None:
self.gcorr = OrderedDict()
if not apply_gcorr and self.gcorr is not None:
self.gcorr = None
self.force_rerun["transfer"] = True
write = True

for tag, mfile in zip(self.map_tags, self.mask_files):
if not apply_gcorr:
Expand All @@ -1909,6 +1911,7 @@ def process_gcorr(gcorr_file_in):
continue

self.force_rerun["transfer"] = True
write = True

if gcorr_file_in is None:
if self.null_run:
Expand Down Expand Up @@ -1970,9 +1973,10 @@ def process_gcorr(gcorr_file_in):
self.apply_gcorr = apply_gcorr
self.gmat_ell = gmat_ell

return write

if ret is not None:
process_gcorr(gcorr_file)
if apply_gcorr and (reload_gcorr or ret.get("gcorr", None) is None):
if process_gcorr(gcorr_file):
return self.save_data(
save_name, from_attrs=save_attrs, file_attrs=file_attrs
)
Expand Down

0 comments on commit 1afb6ea

Please sign in to comment.