Skip to content

Commit

Permalink
minor cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Jul 2, 2023
1 parent cc61737 commit 6a6d3fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyqchem/parsers/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import numpy as np
import re
from pyqchem.utils import get_occupied_electrons
from pyqchem.structure import atom_data
from pyqchem.structure import Structure
import numpy as np
import re


def read_symmetry_info(output):
Expand Down Expand Up @@ -35,7 +35,7 @@ def read_basic_info(output):
def read_input_structure(output):

enum = output.find('Standard Nuclear Orientation')
end_section = search_bars(output, from_position=enum, bar_type='\-\-\-\-\-')
end_section = search_bars(output, from_position=enum, bar_type=r'-----')
section_structure = output[end_section[0]: end_section[1]].split('\n')

symbols = []
Expand Down Expand Up @@ -127,7 +127,6 @@ def search_bars(output, from_position=0, bar_type='---'):


def standardize_vector(vector):
import numpy as np
if vector[0] != 0:
if vector[0] < 0:
vector = np.array(vector) * -1
Expand All @@ -146,6 +145,7 @@ def standardize_vector(vector):

return vector


# handle asterisks and convert them to nan
class float_asterisk(float):
def __new__(cls, value):
Expand Down

0 comments on commit 6a6d3fe

Please sign in to comment.