-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e975909
commit db790d1
Showing
58 changed files
with
249 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ | |
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
from typing import Any, ClassVar | ||
from ampel.log.AmpelLogger import AmpelLogger | ||
|
||
from ampel.config.builder.FirstPassConfig import FirstPassConfig | ||
from ampel.template.AbsEasyChannelTemplate import AbsEasyChannelTemplate | ||
from ampel.log.AmpelLogger import AmpelLogger | ||
from ampel.model.ingest.T2Compute import T2Compute | ||
from ampel.template.AbsEasyChannelTemplate import AbsEasyChannelTemplate | ||
from ampel.ztf.ingest.ZiCompilerOptions import ZiCompilerOptions | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,14 @@ | |
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
from typing import Any, Literal | ||
from ampel.types import ChannelId | ||
|
||
from ampel.abstract.AbsConfigMorpher import AbsConfigMorpher | ||
from ampel.log.AmpelLogger import AmpelLogger | ||
from ampel.model.UnitModel import UnitModel | ||
from ampel.model.job.JobTaskModel import JobTaskModel | ||
from ampel.model.ingest.T2Compute import T2Compute | ||
from ampel.abstract.AbsConfigMorpher import AbsConfigMorpher | ||
from ampel.model.job.JobTaskModel import JobTaskModel | ||
from ampel.model.UnitModel import UnitModel | ||
from ampel.template.AbsEasyChannelTemplate import AbsEasyChannelTemplate | ||
from ampel.types import ChannelId | ||
|
||
|
||
# Inheritance orders matters in this case | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
# Last Modified Date: 20.08.2018 | ||
# Last Modified By: [email protected] | ||
|
||
import logging | ||
import time | ||
import numpy as np | ||
|
||
import astropy.units as u | ||
import numpy as np | ||
from astropy.coordinates import AltAz, EarthLocation, SkyCoord, get_moon, get_sun | ||
from astropy.time import Time | ||
from astropy.coordinates import SkyCoord, AltAz, EarthLocation, get_sun, get_moon | ||
|
||
import logging | ||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,19 @@ | |
# Last Modified Date: 13.06.2018 | ||
# Last Modified By: mg <[email protected]> | ||
|
||
import gzip, io, os | ||
import numpy as np | ||
import gzip | ||
import io | ||
import logging | ||
import os | ||
|
||
import matplotlib.dates as mdates | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
from astropy.io import fits | ||
from astropy.time import Time | ||
from matplotlib.colors import Normalize | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
|
||
|
||
import logging | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
|
||
logger = None | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,13 @@ | |
# Last Modified Date: 27.06.2022 | ||
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
from struct import pack | ||
from typing import ClassVar, BinaryIO, Any | ||
from collections.abc import Sequence | ||
from struct import pack | ||
from typing import Any, BinaryIO, ClassVar | ||
|
||
from ampel.log.AmpelLogger import AmpelLogger | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
from ampel.ztf.alert.ZTFGeneralAlertRegister import ZTFGeneralAlertRegister | ||
from ampel.log.AmpelLogger import AmpelLogger | ||
|
||
|
||
class ZTFGeneralActiveAlertRegister(ZTFGeneralAlertRegister): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,12 @@ | |
# Last Modified Date: 24.11.2021 | ||
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
from struct import pack | ||
from typing import ClassVar, Literal, BinaryIO | ||
from collections.abc import Generator | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
from struct import pack | ||
from typing import BinaryIO, ClassVar, Literal | ||
|
||
from ampel.alert.reject.BaseAlertRegister import BaseAlertRegister | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
from ampel.util.register import reg_iter | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,21 @@ | |
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
import sys | ||
import pandas as pd | ||
import matplotlib.pyplot as plt | ||
from hashlib import blake2b | ||
from os.path import basename | ||
|
||
import matplotlib.pyplot as plt | ||
import pandas as pd | ||
from bson import encode | ||
from hashlib import blake2b | ||
from bts_phot.calibrate_fps import get_baseline # type: ignore[import] | ||
|
||
from ampel.ztf.util.ZTFIdMapper import to_ampel_id | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
from ampel.view.ReadOnlyDict import ReadOnlyDict | ||
from ampel.alert.AmpelAlert import AmpelAlert | ||
from ampel.alert.BaseAlertSupplier import BaseAlertSupplier | ||
from ampel.model.PlotProperties import PlotProperties, FormatModel | ||
from ampel.model.PlotProperties import FormatModel, PlotProperties | ||
from ampel.plot.create import create_plot_record | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
from ampel.view.ReadOnlyDict import ReadOnlyDict | ||
from ampel.ztf.util.ZTFIdMapper import to_ampel_id | ||
|
||
dcast = { | ||
"field": int, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,13 @@ | |
# Last Modified Date: 24.11.2021 | ||
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
from typing import Literal, Any | ||
from typing import Any, Literal | ||
|
||
from ampel.alert.AmpelAlert import AmpelAlert | ||
from ampel.alert.BaseAlertSupplier import BaseAlertSupplier | ||
from ampel.types import Tag | ||
from ampel.ztf.util.ZTFIdMapper import to_ampel_id | ||
from ampel.view.ReadOnlyDict import ReadOnlyDict | ||
from ampel.alert.BaseAlertSupplier import BaseAlertSupplier | ||
from ampel.alert.AmpelAlert import AmpelAlert | ||
from ampel.ztf.util.ZTFIdMapper import to_ampel_id | ||
|
||
|
||
class ZiAlertSupplier(BaseAlertSupplier): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,14 @@ | |
# Last Modified Date: 24.11.2021 | ||
# Last Modified By: Jakob van Santen <[email protected]> | ||
|
||
from typing import Literal, Any, cast | ||
from typing import Any, Literal, cast | ||
|
||
from ampel.abstract.AbsAlertFilter import AbsAlertFilter | ||
from ampel.ztf.base.CatalogMatchUnit import CatalogMatchUnit, ConeSearchRequest | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
from ampel.model.operator.AnyOf import AnyOf | ||
from ampel.model.operator.AllOf import AllOf | ||
from ampel.base.AmpelBaseModel import AmpelBaseModel | ||
from ampel.model.operator.AllOf import AllOf | ||
from ampel.model.operator.AnyOf import AnyOf | ||
from ampel.protocol.AmpelAlertProtocol import AmpelAlertProtocol | ||
from ampel.ztf.base.CatalogMatchUnit import CatalogMatchUnit, ConeSearchRequest | ||
|
||
|
||
class BaseCatalogMatchRequest(AmpelBaseModel): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,14 @@ | |
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
|
||
import logging, time, sys, fastavro, tarfile # type: ignore[import] | ||
import logging # type: ignore[import] | ||
import sys | ||
import tarfile | ||
import time | ||
from typing import Any | ||
|
||
import fastavro | ||
|
||
from ampel.alert.AmpelAlert import AmpelAlert | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,19 @@ | |
# Last Modified Date: 31.07.2020 | ||
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
import random, fastavro | ||
from typing import Any | ||
import random | ||
from collections.abc import Sequence | ||
from typing import Any | ||
|
||
import fastavro | ||
|
||
from ampel.alert.AmpelAlert import AmpelAlert | ||
from ampel.content.DataPoint import DataPoint | ||
from ampel.content.T2Document import T2Document | ||
from ampel.model.UnitModel import UnitModel | ||
from ampel.view.T2DocView import T2DocView | ||
from ampel.view.LightCurve import LightCurve | ||
from ampel.view.T2DocView import T2DocView | ||
from ampel.view.TransientView import TransientView | ||
from ampel.content.DataPoint import DataPoint | ||
from ampel.content.T2Document import T2Document | ||
from ampel.alert.AmpelAlert import AmpelAlert | ||
from ampel.ztf.alert.ZiAlertSupplier import ZiAlertSupplier | ||
from ampel.ztf.ingest.ZiDataPointShaper import ZiDataPointShaperBase | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
# Last Modified By: valery brinnel <[email protected]> | ||
|
||
from typing import Any | ||
|
||
from ampel.model.ingest.CompilerOptions import CompilerOptions | ||
|
||
|
||
|
Oops, something went wrong.