-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from ixdat/xrdml
v0.2.3: Spectrum readers, spectroelectrochemistry refactor, CyclicVoltammogram.plot_cycles
- Loading branch information
Showing
27 changed files
with
1,441 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
development_scripts/reader_testers/test_avantage_reader.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Sandbox script to aid in development and demo of the Avantage reader""" | ||
|
||
from pathlib import Path | ||
|
||
from ixdat import Spectrum | ||
|
||
path_to_file = ( | ||
Path.home() / "Dropbox/ixdat_resources/test_data/avantage" / "XPS Survey.avg" | ||
) | ||
|
||
spectrum = Spectrum.read(path_to_file, reader="avantage") | ||
|
||
spectrum.plot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""Sandbox script for use in the development of the qexafs reader""" | ||
|
||
from pathlib import Path | ||
from ixdat import Spectrum, Measurement | ||
|
||
data_dir = Path( | ||
r"C:\Users\scott\Dropbox\WORKSPACES\Caiwu\22E23_beamline_data\constant potential" | ||
) | ||
|
||
if True: | ||
xas = Spectrum.read( | ||
data_dir / "540117_IrO2_crys_0.60V_1.dat", reader="qexafs", technique="XAS" | ||
) | ||
xas.plot() | ||
|
||
if True: | ||
multi_spec = Spectrum.read( | ||
data_dir / "540117_IrO2_crys_0.60V_1.dat", | ||
reader="qexafs", | ||
) | ||
ax = multi_spec["QexafsFFI0"].plot() | ||
ax2 = ax.twinx() | ||
multi_spec["I0"].plot(ax=ax2, color="r") | ||
ax2.set_ylim([-1e6, 2e6]) | ||
|
||
if True: | ||
xas_series = Spectrum.read_set( | ||
part=data_dir / "IrO2_crys", suffix=".dat", reader="qexafs", technique="XAS" | ||
) | ||
ax = xas_series.heat_plot() | ||
ax.get_figure().savefig("xas_heat_plot.png") | ||
|
||
ec = Measurement.read(data_dir / "IrO2_CA_0p60_C02.mpt", reader="biologic") | ||
ec.plot() | ||
|
||
ec_xas = ec + xas_series | ||
ec_xas.tstamp += ec_xas.t[0] | ||
|
||
axes = ec_xas.plot(xspan=[11200, 11300]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Sandbox script to aid in development and demo of the XRDML reader""" | ||
|
||
from pathlib import Path | ||
|
||
from ixdat import Spectrum | ||
|
||
path_to_file = ( | ||
Path.home() | ||
/ "Dropbox/ixdat_resources/test_data/xrdml" | ||
/ "GI-XRD Path 2_1 omega 0p5 step 10s.xrdml" | ||
) | ||
|
||
spectrum = Spectrum.read(path_to_file, reader="xrdml") | ||
|
||
spectrum.plot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.