Skip to content

Commit

Permalink
updates Pip distrbution
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellocostamagna committed Apr 16, 2024
1 parent f3ac2fe commit 3ff7554
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion HSR.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: hsr
Version: 0.1.10
Version: 0.1.11
Author: Marcello Costamagna
License: AGPL-3.0
Description-Content-Type: text/markdown
Expand Down
5 changes: 3 additions & 2 deletions build/lib/hsr/pca_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ def compute_pca_using_covariance(original_data, chirality=False, return_axes=Fal

# Handle chirality
if chirality:
original_eigenvectors_number = eigenvectors.shape[1]
reduced_eigenvectors = extract_relevant_subspace(eigenvectors, significant_indices)
# If the number of eigenvectors is different from the number of significant indices,
# the chirality cannot be unambigously. The result may not be consistent.
if reduced_eigenvectors.shape[1] != len(significant_indices):
print(f'WARNING: Chirality may not be consistent. {reduced_eigenvectors.shape[1]-len(significant_indices)} vectors have arbitrary signs.')
if original_eigenvectors_number != len(significant_indices):
print(f'WARNING: Chirality may not be consistent. {original_eigenvectors_number-len(significant_indices)} vectors have arbitrary signs.')

determinant = np.linalg.det(reduced_eigenvectors)
# if determinant < 0:
Expand Down
2 changes: 1 addition & 1 deletion build/lib/hsr/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# See the LICENSE file for more details.

# HSR version
__version__ = "0.1.10"
__version__ = "0.1.11"
Binary file added dist/hsr-0.1.11-py3-none-any.whl
Binary file not shown.
Binary file added dist/hsr-0.1.11.tar.gz
Binary file not shown.

0 comments on commit 3ff7554

Please sign in to comment.