Changeset 1155:35b07078c8be for src


Ignore:
Timestamp:
04/25/24 17:41:40 (7 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

If the gate dimension data is not yet populated from the database, no restrictions are applied (re #386).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gates.py

    r1154 r1155  
    3838           self._availableFn(gates, occupiedGateNumbers):
    3939            return plane is None or \
    40                 (plane.wingSpan <= self.maxSpan and \
    41                  plane.fuselageLength <= self.maxLength)
     40                ((self.maxSpan<0.1 or plane.wingSpan <= self.maxSpan) and
     41                 (self.maxLength<0.1 or plane.fuselageLength <= self.maxLength))
    4242        else:
    4343            return False
Note: See TracChangeset for help on using the changeset viewer.