Skip to main content

Material science neutron and X-Ray diffraction FullProf data visualization

Project description

# magnetmatter
Material Science Research Data Visualization.
FullProf .prf, .out and .pcr files are read and informations on
refined parameters,
phases,
appearent crystalline sizes
phase fractions
are hardcoded next to the graph of "Yobs", "Ycal" and "Yobs-Ycal".


#### HOW TO INSTALL:
This installation assumes that you have a plain python (version > 3.0) installed that can be accessed through the command prompt.

pip install magnetmatter

#### HOW TO USE:
once it has been installed along with dependencies ("numpy", "pandas", "matplotlib", it may take a while, be patient), type python/python3 in command prompt. then type

import magnetmatter as mogens

this may also take a while to load everything. Type now

path = r"C:\give\a\valid\path\to\folder\with\datasubfolders\"
mogens.plot_prf(path)

The default printed size is 8 cm (two plots fit into a docx document). other options include:

mogens.plot_prf(path, printsize = "two_in_docx") # 8 cm wide
mogens.plot_prf(path, printsize = "one_in_docx") # 15 cm wide
mogens.plot_prf(path, printsize = "two_in_ppt") # 17 cm wide
mogens.plot_prf(path, printsize = "one_in_ppt") # 32 cm wide

The files are saved as .png in the "path" folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magnetmatter-0.0.8.tar.gz (12.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page