XPS¶
Example¶
This is how u use xps class
-
class
ttlab.XPS(filename_survey=None, filename_multi=None, gridfs_survey=None, gridfs_multi=None, new_file_version=None)[source]¶ XPS class for cool XPS stuff
-
filename_survey='your_survey_file.csv' Filename of survey.
-
filename_multi='your_multi_file.csv' Filename of multi.
-
gridfs_survey¶ Database handle of survey.
Type: pymongo database handle
-
gridfs_multi='handle' Database handle of multi.
Attributes: - orbitals
Methods
get_counts_multi(orbital)Get counts get_counts_survey([range])Get counts get_energy_multi(orbital)Get the energy axis. get_energy_survey([range])Get energy plot_orbital(orbital[, ax, offset])Plot one orbital. plotly_all([title])Get energy plotly_orbitals([title])cool overview with plotly plotly_survey([title])Get energy shift_multi([background_model, show_fit])Shifts tmulti by setting C1 to 284.8eV. shift_survey([background_model, show_fit])Shifts the survey by setting C1 to 284.8eV. -
get_counts_multi(orbital)[source]¶ Get counts
Parameters: orbital (str) – Enter orbital! Returns: Return type: array
-
get_counts_survey(range=None)[source]¶ Get counts
Parameters: range (array) – Array with upper and lower energy range: [lower_range, upper_range] Returns: counts Return type: array
-
get_energy_multi(orbital)[source]¶ Get the energy axis.
Parameters: orbital (str) – Enter orbital! Returns: Return type: array
-
get_energy_survey(range=None)[source]¶ Get energy
Parameters: range ([start, end]) – Enter range in eV of retunring Survey ! Returns: Return type: array
-
plot_orbital(orbital, ax=None, offset=0)[source]¶ Plot one orbital.
Parameters: - orbital (str) – Enter orbital!
- ax (Axes object) –
Returns: ax
Return type: Axes object
-
plotly_all(title='')[source]¶ Get energy
Parameters: range ([]) – Enter range in eV of retunring Survey ! Returns: Return type: array
-
plotly_orbitals(title='')[source]¶ cool overview with plotly
Parameters: title (str) – TITLE Returns: Return type: array
-
plotly_survey(title='')[source]¶ Get energy
Parameters: range ([]) – Enter range in eV of retunring Survey ! Returns: Return type: array
-