Skip to content

Commit

Permalink
Merge pull request #359 from dsavransky/fixrollup
Browse files Browse the repository at this point in the history
fixes to 3 bugs
  • Loading branch information
dsavransky authored Aug 7, 2023
2 parents 0e375dd + e262706 commit fd6f1d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions EXOSIMS/Prototypes/Observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1788,8 +1788,8 @@ def refuel_tank(self, TK, tank=None):
tank_capacity = self.slewMaxFuelMass
tank_name = "slew"
else:
tank_mass = self.scMass - self.dryMass
tank_capacity = self.maxFuelMass
tank_mass = self.scMass
tank_capacity = self.maxFuelMass + self.dryMass
tank_name = ""

# Add as much fuel as can fit in the tank (plus any currently carried negative
Expand Down
7 changes: 5 additions & 2 deletions EXOSIMS/SurveySimulation/tieredScheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,11 @@ def __init__(
)
self.t_char_earths[~np.isfinite(self.t_char_earths)] = 0 * u.d
# occ_sInds = occ_sInds[(occ_intTimes[occ_sInds] > 0.0*u.d)]
sInds = sInds[(self.t_char_earths > 0)]
sInds = sInds[(self.t_char_earths <= self.OpticalSystem.intCutoff)]
sInds = sInds[
(self.t_char_earths > 0)
& (self.t_char_earths <= self.OpticalSystem.intCutoff)
]
# sInds = sInds[(self.t_char_earths <= self.OpticalSystem.intCutoff)]
self.occ_intTimeFilterInds = np.intersect1d(sInds, np.arange(TL.nStars))

def run_sim(self):
Expand Down
2 changes: 2 additions & 0 deletions EXOSIMS/ZodiacalLight/Mennesson.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def __init__(self, EZ_distribution="nominal_maxL_distribution.fits", **specs):
self.EZ_distribution = os.path.join(
os.path.dirname(os.path.abspath(__file__)), EZ_distribution
)
else:
raise ValueError(f"Could not locate EZ_distribution file {EZ_distribution}")
self.fitsdata = fits.open(self.EZ_distribution)[0].data
self._outspec["EZ_distribution"] = EZ_distribution

Expand Down
2 changes: 1 addition & 1 deletion EXOSIMS/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging

name = "EXOSIMS"
__version__ = "3.1.5"
__version__ = "3.1.6"

# Set up a default logging handler to avoid "No handler found" warnings.
# Other handlers can add to this one.
Expand Down

0 comments on commit fd6f1d2

Please sign in to comment.