Skip to content

Constructor for PySIArray1#40

Merged
prehner merged 1 commit intomasterfrom
siarray1_constructor
Nov 30, 2021
Merged

Constructor for PySIArray1#40
prehner merged 1 commit intomasterfrom
siarray1_constructor

Conversation

@prehner
Copy link
Copy Markdown
Contributor

@prehner prehner commented Nov 29, 2021

Create an SIArray1 from different inputs

arr = SIArray1(5.0*CELSIUS)
arr = SIArray1([5.0*CELSIUS, 300*KELVIN])
arr = SIArray1(SIArray1.linspace(5*CELSIUS, 100*CELSIUS, 20))
arr = SIArray1([5.0*CELSIUS, 3*BAR])   # will panic due to unit mismatch

@prehner prehner merged commit aa167ff into master Nov 30, 2021
@prehner prehner deleted the siarray1_constructor branch November 30, 2021 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants