Skip to content

Commit

Permalink
Working version
Browse files Browse the repository at this point in the history
  • Loading branch information
yakutovicha committed Nov 21, 2024
1 parent 3c9c71a commit d562c71
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cubehandler/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ def from_file(cls, filepath, read_data=True):

@classmethod
def from_content(cls, content, read_data=True):
with open(io.StringIO(content)) as f:
c = cls.from_file_handle(f, read_data=read_data)
return c
return cls.from_file_handle(io.StringIO(content), read_data=read_data)

def write_cube_file(self, filename, low_precision=False):

Expand Down

0 comments on commit d562c71

Please sign in to comment.