Skip to content

Commit d17783a

Browse files
opxrd/analyser: Set pattern limit to 10
1 parent 10dc419 commit d17783a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opxrd/analysis.py renamed to opxrd/analyser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, databases : list[PatternDB], output_dirpath : str):
2121

2222
def plot_databases_in_single(self):
2323
for database in self.databases:
24-
database.show_all(single_plot=True)
24+
database.show_all(single_plot=True, limit_patterns=10)
2525

2626
def plot_fourier(self, x, y, max_freq=10):
2727
N = len(y) # Number of sample points
@@ -118,7 +118,7 @@ def get_all_patterns(self) -> list[XrdPattern]:
118118

119119
if __name__ == "__main__":
120120
test_dirpath = '/tmp/opxrd_test'
121-
full_dirpath = '/tmp/opxrd'
122-
opxrd_databases = OpXRD.as_database_list(root_dirpath=test_dirpath)
121+
full_dirpath = '/home/daniel/aimat/data/opXRD/final/'
122+
opxrd_databases = OpXRD.as_database_list(root_dirpath=full_dirpath)
123123
analyser = DatabaseAnalyser(databases=opxrd_databases, output_dirpath='/tmp/opxrd_analysis')
124124
analyser.plot_databases_in_single()

0 commit comments

Comments
 (0)