orto 1.7.0__py3-none-any.whl → 1.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orto/__version__.py +1 -1
- orto/cli.py +20 -7
- {orto-1.7.0.dist-info → orto-1.8.0.dist-info}/METADATA +1 -1
- {orto-1.7.0.dist-info → orto-1.8.0.dist-info}/RECORD +8 -8
- {orto-1.7.0.dist-info → orto-1.8.0.dist-info}/WHEEL +0 -0
- {orto-1.7.0.dist-info → orto-1.8.0.dist-info}/entry_points.txt +0 -0
- {orto-1.7.0.dist-info → orto-1.8.0.dist-info}/licenses/LICENSE +0 -0
- {orto-1.7.0.dist-info → orto-1.8.0.dist-info}/top_level.txt +0 -0
orto/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.
|
|
1
|
+
__version__ = '1.8.0'
|
orto/cli.py
CHANGED
|
@@ -820,8 +820,11 @@ def plot_abs_func(uargs, save_data_only=False):
|
|
|
820
820
|
|
|
821
821
|
# Find unique name from multiple file names
|
|
822
822
|
if len(uargs.output_file) > 1:
|
|
823
|
-
|
|
824
|
-
|
|
823
|
+
if uargs.unique_names:
|
|
824
|
+
base_names = [of.stem for of in uargs.output_file]
|
|
825
|
+
unique_names = ut.find_unique_substring(base_names)
|
|
826
|
+
else:
|
|
827
|
+
unique_names = [of.stem for of in uargs.output_file]
|
|
825
828
|
legend = True
|
|
826
829
|
else:
|
|
827
830
|
legend = False
|
|
@@ -942,7 +945,7 @@ def plot_abs_func(uargs, save_data_only=False):
|
|
|
942
945
|
if save_data_only:
|
|
943
946
|
# Save spectrum data to file
|
|
944
947
|
abs_data.save_spectrum_data(
|
|
945
|
-
f'absorption_spectrum_{output_file}.csv',
|
|
948
|
+
f'absorption_spectrum_{output_file.stem}.csv',
|
|
946
949
|
comments='Data from {}\nfwhm={}, lineshape={}\nintensities={}'.format( # noqa
|
|
947
950
|
output_file,
|
|
948
951
|
uargs.linewidth,
|
|
@@ -951,18 +954,18 @@ def plot_abs_func(uargs, save_data_only=False):
|
|
|
951
954
|
)
|
|
952
955
|
)
|
|
953
956
|
abs_data.save_transition_data(
|
|
954
|
-
f'transition_data_{output_file}.csv',
|
|
957
|
+
f'transition_data_{output_file.stem}.csv',
|
|
955
958
|
comments='Data from {}\nintensities={}'.format(
|
|
956
959
|
output_file,
|
|
957
960
|
uargs.intensities
|
|
958
961
|
)
|
|
959
962
|
)
|
|
960
963
|
ut.cprint(
|
|
961
|
-
f'Saved absorption data to absorption_spectrum_{output_file}.csv', # noqa
|
|
964
|
+
f'Saved absorption data to absorption_spectrum_{output_file.stem}.csv', # noqa
|
|
962
965
|
'cyan'
|
|
963
966
|
)
|
|
964
967
|
ut.cprint(
|
|
965
|
-
f'Saved absorption spectrum data to transition_data_{output_file}.csv', # noqa
|
|
968
|
+
f'Saved absorption spectrum data to transition_data_{output_file.stem}.csv', # noqa
|
|
966
969
|
'cyan'
|
|
967
970
|
)
|
|
968
971
|
else:
|
|
@@ -987,7 +990,7 @@ def plot_abs_func(uargs, save_data_only=False):
|
|
|
987
990
|
|
|
988
991
|
if not save_data_only:
|
|
989
992
|
if _SAVE_CONV[uargs.plot]:
|
|
990
|
-
savename = f'absorption_spectrum_{output_file}.png'
|
|
993
|
+
savename = f'absorption_spectrum_{output_file.stem}.png'
|
|
991
994
|
plt.savefig(savename, dpi=500)
|
|
992
995
|
ut.cprint(f'Saved image to {savename}', 'cyan')
|
|
993
996
|
|
|
@@ -2159,6 +2162,16 @@ def read_args(arg_list=None):
|
|
|
2159
2162
|
)
|
|
2160
2163
|
)
|
|
2161
2164
|
|
|
2165
|
+
plot_abs.add_argument(
|
|
2166
|
+
'--unique_names',
|
|
2167
|
+
action='store_true',
|
|
2168
|
+
default=False,
|
|
2169
|
+
help=(
|
|
2170
|
+
'Attempt to shorten file names in plot legend\n'
|
|
2171
|
+
'Default: %(default)s'
|
|
2172
|
+
)
|
|
2173
|
+
)
|
|
2174
|
+
|
|
2162
2175
|
plot_xes = plot_parser.add_parser(
|
|
2163
2176
|
'xes',
|
|
2164
2177
|
description='Plots XES from CI calculation output',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
orto/__init__.py,sha256=IedlltYr3qYZxChNUdz62qogXA9Pos_MUvXdGXqAa0E,41
|
|
2
|
-
orto/__version__.py,sha256=
|
|
3
|
-
orto/cli.py,sha256=
|
|
2
|
+
orto/__version__.py,sha256=xM8KgdV4KJGZbMUy8tPzc62kL9LzIER0XAX4CTGiDFM,22
|
|
3
|
+
orto/cli.py,sha256=Jbrc08vGV9OZY5G44sd7M_c56UC8hYI08ZC87HRyPtI,80777
|
|
4
4
|
orto/constants.py,sha256=anxaiTykO8Q_CXliR7zuOAdnXZrQ2-C4ndaviyl7kGc,419
|
|
5
5
|
orto/data.py,sha256=cNO8gQj6aZP-xriWUY2HchZ6iWZxVZnlrvAD4qhWT_o,14436
|
|
6
6
|
orto/exceptions.py,sha256=D7oNeAEGeJNt5thzt6PaCn5FY6JcbJOWUE1N1LVhhuE,159
|
|
@@ -9,9 +9,9 @@ orto/input.py,sha256=N8JbySSVEC_qmXZ7ppJsZ7Z1qel6PfalGYRtnX1hJ6U,9900
|
|
|
9
9
|
orto/job.py,sha256=SM0nlc_bqhhPvfuuykhMvaUnkwC3Gp-6RvYw_a0TyGc,5855
|
|
10
10
|
orto/plotter.py,sha256=IATM7vBauT3StFXqk_4DKzCSiTnUunrCeNYRBKM3eUE,17695
|
|
11
11
|
orto/utils.py,sha256=GcMZ9uebOSnkPQT_U5O0X49LUtTu8YpXZxEsNKgXNTY,9838
|
|
12
|
-
orto-1.
|
|
13
|
-
orto-1.
|
|
14
|
-
orto-1.
|
|
15
|
-
orto-1.
|
|
16
|
-
orto-1.
|
|
17
|
-
orto-1.
|
|
12
|
+
orto-1.8.0.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
13
|
+
orto-1.8.0.dist-info/METADATA,sha256=RAh5Qee-q9kSlf3Qpi9Egt0LZw6-t6a_dAUfJnCXN4A,1184
|
|
14
|
+
orto-1.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
orto-1.8.0.dist-info/entry_points.txt,sha256=HXenCglMp_03JkN34pK2phkjXK9CFcXTGHKv5QaVY8I,39
|
|
16
|
+
orto-1.8.0.dist-info/top_level.txt,sha256=hQ-z28gTN_FZ2B5Kiwxr_9cUTcCoib9W5HjbkceDXw4,5
|
|
17
|
+
orto-1.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|