From 170c50a1e04ac9079f597c07fb282abd5d93264d Mon Sep 17 00:00:00 2001 From: Rolf Kreibaum <48726499+kreibaum@users.noreply.github.com> Date: Thu, 5 May 2022 21:49:14 +0200 Subject: [PATCH] Update quickstart.rst Hi! My sister and I ran into some issues while following the quickstart. It looks like it is a bit outdated. I have no idea what all those words about astrophysics means, but I have adjusted some imports that didn't seem to be right anymore. I think there are more imports at the bottom like `sme.solve` that need to be fixed up as well, but we didn't make it that far together. Since helping with the installation is about all I'll do for her, I wanted to at least send you the changes we were already able to identify. --- docs/usage/quickstart.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/usage/quickstart.rst b/docs/usage/quickstart.rst index 271b1fd0..3585c384 100644 --- a/docs/usage/quickstart.rst +++ b/docs/usage/quickstart.rst @@ -2,7 +2,7 @@ Quickstart ========== The first step in each SME project is to create an SME structure - >>> from sme.sme import SME_Struct + >>> from pysme.sme import SME_Structure as SME_Struct This can be done in done in a few different ways: * load an existing SME save file (from Python or IDL) @@ -14,11 +14,11 @@ This can be done in done in a few different ways: Either way one has to make sure that a few essential properties are set in the object, those are: * Stellar parameters (teff, logg, monh, abund) - >>> from sme.abund import Abund + >>> from pysme.abund import Abund >>> sme.teff, sme.logg, sme.monh = 5700, 4.4, -0.1 >>> sme.abund = Abund.solar() * LineList (linelist), e.g. from VALD - >>> from sme.vald import ValdFile + >>> from pysme.linelist.vald import ValdFile >>> vald = ValdFile("linelist.lin") >>> sme.linelist = vald * Atmosphere (atmo), the file has to be in PySME/src/sme/atmospheres