Skip to content

Commit

Permalink
opxrd/analyser: Set pattern limit to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Somerandomguy10111 committed Dec 14, 2024
1 parent 10dc419 commit d17783a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opxrd/analysis.py → opxrd/analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, databases : list[PatternDB], output_dirpath : str):

def plot_databases_in_single(self):
for database in self.databases:
database.show_all(single_plot=True)
database.show_all(single_plot=True, limit_patterns=10)

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

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

0 comments on commit d17783a

Please sign in to comment.