Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IAM file read-in for external files.
The following error appeared in the un-patched version: ``` File ~/miniconda3/envs/premise/lib/python3.10/site-packages/premise/data_collection.py:422, in IAMDataCollection.__get_iam_data(self, key, filepath, variables) 420 file_ext = self.model + "_" + self.pathway + ".mif" 421 filepath = Path(filepath) / file_ext --> 422 with open(filepath, "rb") as file: 423 # read the encrypted data 424 encrypted_data = file.read() 426 # create a temp csv-like file to pass to pandas.read_csv() FileNotFoundError: [Errno 2] No such file or directory: '~/remind/testruns/test/remind_default.csv/remind_default.mif' ```
- Loading branch information