Skip to content

Commit

Permalink
Add file property
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyangshi committed Sep 11, 2023
1 parent e76cfc4 commit 3058c34
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xedocs/schemas/corrections/base_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ def fmt(self):
return fmt

@property
def map(self):
def file(self):
import straxen
file = straxen.get_resource(self.value, fmt=self.fmt)
return file

map_file = straxen.get_resource(self.value, fmt=self.fmt)
return straxen.InterpolatingMap(map_file)
@property
def map(self):
return straxen.InterpolatingMap(self.file)

0 comments on commit 3058c34

Please sign in to comment.