Skip to content

Commit

Permalink
fix: write local csv, remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Hagg committed Jan 31, 2022
1 parent f14980a commit e574619
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions powersimdata/data_access/data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def push(self, file_name, checksum, rename):

self._check_file_exists(backup, should_exist=False)
print(f"Transferring {rename} to server")
fs.copy.copy_file(self.local_fs, file_name, self.local_fs, rename)
fs.move.move_file(self.local_fs, file_name, self.fs, backup)

values = {
Expand Down
13 changes: 0 additions & 13 deletions powersimdata/scenario/create.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import copy
import pickle
import warnings

import numpy as np
Expand Down Expand Up @@ -352,18 +351,6 @@ def set_engine(self, engine):
else:
self.engine = engine

def load_change_table(self, filename):
"""Uploads change table.
:param str filename: full path to change table pickle file.
:raises FileNotFoundError: if file not found.
"""
try:
ct = pickle.load(open(filename, "rb"))
self.change_table.ct = ct
except FileNotFoundError:
raise ("%s not found. " % filename)

def get_grid(self):
"""Returns a transformed grid.
Expand Down

0 comments on commit e574619

Please sign in to comment.