You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add requests to `requirements.txt`
* add a valid `.json` file to be used in
* add download function
* integrate download from url
* add download from url test cases
* fix exception raise during test
* add `Retry` mechanism
* remove unused imports + removing trailing whitespaces
* update docstring for url
* refactor error messages and add them to `pymilo_param.py`
Copy file name to clipboardExpand all lines: pymilo/pymilo_param.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,10 @@
87
87
PYMILO_VERSION_DOES_NOT_EXIST="Corrupted JSON file, `pymilo_version` doesn't exist in this file."
88
88
UNEQUAL_PYMILO_VERSIONS="warning: Installed PyMilo version differs from the PyMilo version used to create the JSON file."
89
89
UNEQUAL_SKLEARN_VERSIONS="warning: Installed Scikit version differs from the Scikit version used to create the JSON file and it may prevent PyMilo from transporting seamlessly."
90
+
INVALID_IMPORT_INIT_PARAMS="Invalid input parameters, you should either pass a valid file_adr or a json_dump or a url to initiate Import class."
91
+
DOWNLOAD_MODEL_FAILED="Failed to download the JSON file, Server didn't respond."
92
+
INVALID_DOWNLOADED_MODEL="The downloaded content is not a valid JSON file."
0 commit comments