orto 1.11.0__tar.gz → 1.11.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orto
3
- Version: 1.11.0
3
+ Version: 1.11.1
4
4
  Summary: A package to make life easier when performing Orca calculations.
5
5
  Home-page: https://orto.kragskow.group
6
6
  Author: Jon Kragskow
@@ -0,0 +1 @@
1
+ __version__ = '1.11.1'
@@ -1040,6 +1040,7 @@ def plot_xas_func(uargs):
1040
1040
 
1041
1041
  # Remove transitions with zero oscillator strength from
1042
1042
  # beginning and end of spectrum
1043
+ print(data['fosc'], x_values)
1043
1044
  if not uargs.no_trim:
1044
1045
  # Find first non-zero oscillator strength
1045
1046
  first_nonzero = np.where(data['fosc'] > 1E-6)[0][0]
@@ -2417,7 +2418,7 @@ def read_args(arg_list=None):
2417
2418
 
2418
2419
  gen_abs.add_argument(
2419
2420
  '--zero_osc',
2420
- default=1E-5,
2421
+ default=1E-7,
2421
2422
  type=float,
2422
2423
  help=(
2423
2424
  'Oscillator strengths below this value are treated as zero\n'
@@ -2582,7 +2583,7 @@ def read_args(arg_list=None):
2582
2583
 
2583
2584
  plot_abs.add_argument(
2584
2585
  '--zero_osc',
2585
- default=1E-5,
2586
+ default=1E-7,
2586
2587
  type=float,
2587
2588
  help=(
2588
2589
  'Oscillator strengths below this value are treated as zero\n'
@@ -2612,6 +2613,16 @@ def read_args(arg_list=None):
2612
2613
  )
2613
2614
  )
2614
2615
 
2616
+ plot_abs.add_argument(
2617
+ '--no_trim',
2618
+ action='store_true',
2619
+ default=False,
2620
+ help=(
2621
+ 'Do not trim spectrum to non-zero oscillator strength\n'
2622
+ 'Default: %(default)s'
2623
+ )
2624
+ )
2625
+
2615
2626
  plot_xes = plot_parser.add_parser(
2616
2627
  'xes',
2617
2628
  description='Plots XES from CI calculation output',
@@ -236,7 +236,7 @@ class AbsorptionData():
236
236
  def from_extractor_dataset(cls,
237
237
  dataset: dict[str, list[int | float]],
238
238
  operator: str,
239
- remove_zero_osc: float = 1E-4) -> 'AbsorptionData': # noqa
239
+ remove_zero_osc: float = 1E-7) -> 'AbsorptionData': # noqa
240
240
  '''
241
241
  Creates AbsorptionData object from data extractor
242
242
 
@@ -246,7 +246,7 @@ class AbsorptionData():
246
246
  Dataset from orto AbsorptionExtractor.data
247
247
  operator: str
248
248
  Type of operator used to calculate transitions
249
- remove_zero_osc: float, default=1E-4
249
+ remove_zero_osc: float, default=1E-7
250
250
  Remove transitions with oscillator strength below this value
251
251
 
252
252
  Returns
@@ -261,6 +261,7 @@ class AbsorptionData():
261
261
  # Remove transitions with zero oscillator strength from
262
262
  # beginning and end of spectrum
263
263
  osc_strengths = np.array(osc_strengths)
264
+
264
265
  # Find first non-zero oscillator strength
265
266
  try:
266
267
  first_nonzero = np.where(osc_strengths > remove_zero_osc)[0][0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orto
3
- Version: 1.11.0
3
+ Version: 1.11.1
4
4
  Summary: A package to make life easier when performing Orca calculations.
5
5
  Home-page: https://orto.kragskow.group
6
6
  Author: Jon Kragskow
@@ -8,7 +8,7 @@ Please see the `orto` documentation for more details.
8
8
 
9
9
  # DO NOT EDIT THIS NUMBER!
10
10
  # IT IS AUTOMATICALLY CHANGED BY python-semantic-release
11
- __version__ = '1.11.0'
11
+ __version__ = '1.11.1'
12
12
 
13
13
  setuptools.setup(
14
14
  name='orto',
@@ -1 +0,0 @@
1
- __version__ = '1.11.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes