-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bf1755
commit 28f1e4d
Showing
7 changed files
with
29 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Provides an entry point for the built executable | ||
# Build with "pyinstaller --onefile carrot_transform.py" | ||
from carrottransform.cli.command import transform | ||
if __name__ == '__main__': | ||
transform() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# TODO - pick this up automatically when building | ||
__version__ = '0.3.1' | ||
__version__ = '0.3.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
import os | ||
import sys | ||
import json | ||
|
||
# Function inherited from the "old" CaRROT-CDM | ||
# Function inherited from the "old" CaRROT-CDM (modfied to exit on error) | ||
|
||
def load_json(f_in): | ||
if os.path.exists(f_in): | ||
data = json.load(open(f_in)) | ||
else: | ||
try: | ||
data = json.loads(f_in) | ||
data = json.load(open(f_in)) | ||
except Exception as err: | ||
raise FileNotFoundError(f"{f_in} not found. Or cannot parse as json") | ||
print ("{0} not found. Or cannot parse as json".format(f_in)) | ||
sys.exit() | ||
|
||
return data | ||
return data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "carrot-transform" | ||
version = "0.3.1" | ||
version = "0.3.2" | ||
authors = [ | ||
{ name="PD Appleby", email="[email protected]" }, | ||
] | ||
|