Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolated start-up and shut-down graphs. #5090

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Post-rebase tweakage.
  • Loading branch information
hjoliver committed Sep 4, 2023
commit db03e5009c686ceb02903b08b323ce674873d3b6
4 changes: 4 additions & 0 deletions cylc/flow/cycling/nocycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 70,15 @@
return self.value

def _cmp(self, other):
return cmp(int(self), int(other))

Check warning on line 73 in cylc/flow/cycling/nocycle.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/cycling/nocycle.py#L73

Added line #L73 was not covered by tests

def add(self, other):
# NOT USED
return None

Check warning on line 77 in cylc/flow/cycling/nocycle.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/cycling/nocycle.py#L77

Added line #L77 was not covered by tests

def sub(self, other):
# NOT USED
return None

Check warning on line 81 in cylc/flow/cycling/nocycle.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/cycling/nocycle.py#L81

Added line #L81 was not covered by tests


class NocycleSequence(SequenceBase):
Expand All @@ -99,6 99,10 @@
"""First point is the only point"""
return self.point

def get_start_point(self, point):
"""First point is the only point"""
return self.point

Check warning on line 104 in cylc/flow/cycling/nocycle.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/cycling/nocycle.py#L104

Added line #L104 was not covered by tests

def get_next_point(self, point):
"""There is no next point"""
return None
Expand All @@ -110,9 114,9 @@
def __eq__(self, other):
try:
return other.point == self.point
except AttributeError:

Check warning on line 117 in cylc/flow/cycling/nocycle.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/cycling/nocycle.py#L117

Added line #L117 was not covered by tests
# (other is not a nocycle sequence)
return False

Check warning on line 119 in cylc/flow/cycling/nocycle.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/cycling/nocycle.py#L119

Added line #L119 was not covered by tests

def __str__(self):
return str(self.point)
Expand Down
Loading