Skip to content

Please update the calibration_test jupyter notebook #96

@vmon5589

Description

@vmon5589

I am using the code within a notebook you have here on github. It fails on Xe_strong input
https://github.com/jveitchmichaelis/rascal/blob/main/calibration_test.ipynb

I am using version 0.4. I installed using the second recommended route (after pip install failed):
pip install git+https://github.com/jveitchmichaelis/rascal.git

The code from your notebook that produced the error is:
c = Calibrator(peaks, elements=["Xe_strong"], min_wavelength=3400.0, max_wavelength=8100.0, range_tolerance=200)

The error produced is:

----> 1 c = Calibrator(peaks, elements=["Xe_strong"], min_wavelength=3400.0, max_wavelength=8100.0, range_tolerance=200)
2 c.set_fit_constraints(n_pix=len(spectrum))

TypeError: Calibrator.init() got an unexpected keyword argument 'elements'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Calibration helpIssues which relate to use-cases of rascal

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions