CalibrationCurve should support choosing a curve by "short name" #6

Closed
opened 2 years ago by steko · 1 comments
steko commented 2 years ago
Owner

Currently users can choose the calibration curve by "short name" from the command line, e.g.

iosacal -d 1085 -s 25 --id "test" -c "intcal09"

but for the use case of a Jupyter Notebook, it's tedious:

curve_filename = pkg_resources.resource_filename("iosacal", "data/shcal13.14c")
curve = CalibrationCurve(curve_filename)

Ideally, CalibrationCurve should accept:

  • a string to load one of the standard calibration curves by "short name" (e.g. intcal13)
  • a file-like object to load a file that is being processed
  • a path to load a file from disk
Currently users can choose the calibration curve by "short name" from the command line, e.g. ``` iosacal -d 1085 -s 25 --id "test" -c "intcal09" ``` but for the use case of a Jupyter Notebook, it's tedious: ``` curve_filename = pkg_resources.resource_filename("iosacal", "data/shcal13.14c") curve = CalibrationCurve(curve_filename) ``` Ideally, `CalibrationCurve` should accept: - a string to load one of the standard calibration curves by "short name" (e.g. `intcal13`) - a file-like object to load a file that is being processed - a path to load a file from disk
steko added the
enhancement
label 2 years ago
steko self-assigned this 2 years ago
steko added this to the v0.5.0 milestone 2 years ago
Poster
Owner

Fixed in ba6119d except for the "file-like object" use case, that I'm postponing.

Fixed in ba6119d except for the "file-like object" use case, that I'm postponing.
steko closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.