Skip to content

Commit

Permalink
Merge pull request #347 from lsst/tickets/OPSIM-1060
Browse files Browse the repository at this point in the history
Tickets/opsim 1060
  • Loading branch information
yoachim authored Jul 31, 2023
2 parents 13ce07e + 39e56c2 commit c4a170d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions rubin_sim/maf/generate_ss.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pandas as pd

import rubin_sim.maf.db as db
from rubin_sim.data import get_data_dir


def generate_ss_commands(
Expand Down
5 changes: 3 additions & 2 deletions rubin_sim/moving_objects/direct_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import datetime
import logging
import warnings

import numpy as np

Expand Down Expand Up @@ -168,9 +169,9 @@ def run(self, orbits, obs_data, object_positions=None, object_mjds=None):
if (obs_data[self.obs_time_col].min() < object_mjds.min()) | (
obs_data[self.obs_time_col].max() > object_mjds.max()
):
raise ValueError(
warnings.warn(
"Pre-computed position times do not cover MJD range of %i-%i."
% (obs_data[self.obs_time_col].min().obs_data[self.obs_time_col].max())
% (obs_data[self.obs_time_col].min(), obs_data[self.obs_time_col].max())
)
object_mjds = None
# calculate angular motion for each object at each timestep
Expand Down
2 changes: 2 additions & 0 deletions rubin_sim/phot_utils/photometric_parameters.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
__all__ = ("PhotometricParameters", "DustValues")

import os

import numpy as np

from rubin_sim.data import get_data_dir

from .bandpass import Bandpass
from .sed import Sed

Expand Down
6 changes: 1 addition & 5 deletions rubin_sim/phot_utils/signaltonoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@
import numpy

from . import lsst_defaults
from .photometric_parameters import PhotometricParameters
from .sed import Sed

import numpy

from .lsst_defaults import LSSTdefaults
from .photometric_parameters import PhotometricParameters
from .sed import Sed


Expand Down
3 changes: 1 addition & 2 deletions rubin_sim/phot_utils/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

import numpy

from rubin_sim.phot_utils import Sed, calc_sky_counts_per_pixel_for_m5
from rubin_sim.phot_utils import LSSTdefaults
from rubin_sim.phot_utils import LSSTdefaults, Sed, calc_sky_counts_per_pixel_for_m5


def set_m5(m5target, skysed, total_bandpass, hardware, phot_params, fwhm_eff=None):
Expand Down

0 comments on commit c4a170d

Please sign in to comment.