-
Notifications
You must be signed in to change notification settings - Fork 14
Sourcery Starbot ⭐ refactored nicrie/xmca #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -224,7 +224,7 @@ def test_getter(self, analysis, n, scaling, phase_shift, rotated): | |
| n_rot = 0 | ||
| if analysis == 'cplx': | ||
| cplx = True | ||
| if analysis == 'varmx': | ||
| elif analysis == 'varmx': | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| n_rot = 10 | ||
| model = xMCA(self.A, self.B) | ||
| model.solve(complexify=cplx) | ||
|
|
@@ -247,7 +247,7 @@ def test_hom_het_patterns(self, analysis): | |
| n_rot = 0 | ||
| if analysis == 'cplx': | ||
| cplx = True | ||
| if analysis == 'varmx': | ||
| elif analysis == 'varmx': | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| n_rot = 10 | ||
| model = xMCA(self.A, self.B) | ||
| model.solve(complexify=cplx) | ||
|
|
@@ -272,7 +272,7 @@ def test_field(self, analysis): | |
| n_rot = 0 | ||
| if analysis == 'cplx': | ||
| cplx = True | ||
| if analysis == 'varmx': | ||
| elif analysis == 'varmx': | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| n_rot = 10 | ||
| model = xMCA(self.A, self.B) | ||
| model.solve(complexify=cplx) | ||
|
|
@@ -295,7 +295,7 @@ def test_field_scaling(self, analysis): | |
| n_rot = 0 | ||
| if analysis == 'cplx': | ||
| cplx = True | ||
| if analysis == 'varmx': | ||
| elif analysis == 'varmx': | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| n_rot = 10 | ||
| model = xMCA(self.A, self.B) | ||
| result1 = model.fields(original_scale=True) | ||
|
|
@@ -333,7 +333,7 @@ def test_plot(self, analysis, flavour, n): | |
| n_rot = 0 | ||
| if flavour == 'cplx': | ||
| cplx = True | ||
| if flavour == 'varmx': | ||
| elif flavour == 'varmx': | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| n_rot = 10 | ||
| if analysis == 'uni': | ||
| model = xMCA(self.A) | ||
|
|
@@ -465,7 +465,7 @@ def test_truncate(self, analysis, flavour, trunc): | |
| n_rot = 0 | ||
| if flavour == 'cplx': | ||
| cplx = True | ||
| if flavour == 'varmx': | ||
| elif flavour == 'varmx': | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| n_rot = 10 | ||
| if analysis == 'uni': | ||
| model = xMCA(self.A) | ||
|
|
@@ -483,9 +483,7 @@ def test_truncate(self, analysis, flavour, trunc): | |
|
|
||
| def test_apply_weights(self): | ||
| model = xMCA(self.A, self.B) | ||
| weights = {} | ||
| weights['left'] = self.A.coords['lat'] | ||
| weights['right'] = self.B.coords['lat'] | ||
| weights = {'left': self.A.coords['lat'], 'right': self.B.coords['lat']} | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| model.apply_weights(**weights) | ||
|
|
||
| def test_complex_solver(self): | ||
|
|
@@ -538,7 +536,7 @@ def test_significance_methods( | |
| n_rot = 0 | ||
| if flavour == 'cplx': | ||
| cplx = True | ||
| if flavour == 'varmx': | ||
| elif flavour == 'varmx': | ||
|
Comment on lines
-541
to
+539
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| n_rot = 10 | ||
| if analysis == 'uni': | ||
| model = xMCA(self.A) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function
TestIntegration.test_plotrefactored with the following changes:switch)