Skip to content

Commit

Permalink
chore: Use input domain instead of output domain
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjared committed Jul 8, 2024
1 parent 3118d51 commit 9586256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/openmethane_prior/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def as_output_file(self, name: str | pathlib.Path) -> pathlib.Path:
@cache
def domain_dataset(self):
"""Load the input domain dataset"""
if not self.output_domain_file.exists():
raise ValueError(f"Missing domain file: {self.output_domain_file}")
return xr.load_dataset(self.output_domain_file)
if not self.input_domain_file.exists():
raise ValueError(f"Missing domain file: {self.input_domain_file}")
return xr.load_dataset(self.input_domain_file)

@cache
def domain_projection(self):
Expand Down

0 comments on commit 9586256

Please sign in to comment.