Commit b94d114353260f6b8465de049d5c04345068d7bc
1 parent
35e30a7d
Exists in
dev
typo preference target2night
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/core/pyros_django/seq_submit/functions.py
@@ -468,7 +468,7 @@ def create_sequence_pickle(sequence): | @@ -468,7 +468,7 @@ def create_sequence_pickle(sequence): | ||
468 | try: | 468 | try: |
469 | # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon | 469 | # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon |
470 | #fullseq_dict["ephem"] = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preferance=sequence.start_expo_pref, duskelev=duskelev) | 470 | #fullseq_dict["ephem"] = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preferance=sequence.start_expo_pref, duskelev=duskelev) |
471 | - ephem = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preferance=sequence.start_expo_pref, duskelev=duskelev) | 471 | + ephem = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preference=sequence.start_expo_pref, duskelev=duskelev) |
472 | except ValueError: | 472 | except ValueError: |
473 | errors.append("Target value is not valid") | 473 | errors.append("Target value is not valid") |
474 | except guitastro.ephemeris.EphemerisException as ephemException: | 474 | except guitastro.ephemeris.EphemerisException as ephemException: |
src/core/pyros_django/seq_submit/views.py
@@ -310,7 +310,7 @@ def sequence_validate(request, seq_id): | @@ -310,7 +310,7 @@ def sequence_validate(request, seq_id): | ||
310 | message = "" | 310 | message = "" |
311 | try: | 311 | try: |
312 | # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon | 312 | # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon |
313 | - ephem = eph.target2night(seq.config_attributes.get("target"), seq.night_id, None, None, preferance=seq.start_expo_pref, duskelev=duskelev) | 313 | + ephem = eph.target2night(seq.config_attributes.get("target"), seq.night_id, None, None, preference=seq.start_expo_pref, duskelev=duskelev) |
314 | except ValueError: | 314 | except ValueError: |
315 | message += "Target value is not valid" | 315 | message += "Target value is not valid" |
316 | except guitastro.ephemeris.EphemerisException as ephemException: | 316 | except guitastro.ephemeris.EphemerisException as ephemException: |