autowisp.tests.test_photref_candidates module

Class Inheritance Diagram

Inheritance diagram of Image, MasterType, ObservingSession, PhotrefBindingProject, TestMeritExpressions, TestPhotrefRanking, TestRecordedBindings, TestUnboundEntries

Tests for offering and ranking the candidates for a single photref.

The photometric reference selection page offers the images of a photref group that still need a reference, best first by a merit expression from the project’s library. These check which entries count as still needing one, which a newly chosen one reports binding, and how the offered ones are ranked, on the throwaway project the binding tests use: one camera with channels R and G, and images near, far and longer.

class autowisp.tests.test_photref_candidates.TestMeritExpressions(methodName='runTest')[source]

Bases: TestCase

Inheritance diagram of autowisp.tests.test_photref_candidates.TestMeritExpressions

Which library expressions candidates can be ranked by.

test_only_one_value_per_entry_qualifies()[source]

At most one channel, and no photometry.

class autowisp.tests.test_photref_candidates.TestPhotrefRanking(methodName='runTest')[source]

Bases: PhotrefBindingProject

Inheritance diagram of autowisp.tests.test_photref_candidates.TestPhotrefRanking

The offered candidates of a group, best first by the default merit.

classmethod _fill_database()[source]

Add the nobg image and the readings the merit uses.

_rank(merit)[source]

Return the ranked (name, channel) entries and the values.

test_every_diagnostic_recorded_for_the_group_is_returned()[source]

Those of the members’ images, not of the reference’s own.

test_the_seeded_merit_ranks_the_offered_entries()[source]

Best first, no merit last, ranked among the offered alone.

test_without_a_merit_the_order_is_by_time()[source]

Every image shares one Julian date, so by image, then channel.

class autowisp.tests.test_photref_candidates.TestRecordedBindings(methodName='runTest')[source]

Bases: PhotrefBindingProject

Inheritance diagram of autowisp.tests.test_photref_candidates.TestRecordedBindings

What binding a group to a newly chosen photref reports binding.

test_the_entries_bound_are_returned()[source]

Exactly those written: the far image stays unbound.

The page drops what this returns from the group, so an entry returned but not bound would never be offered a reference again.

class autowisp.tests.test_photref_candidates.TestUnboundEntries(methodName='runTest')[source]

Bases: PhotrefBindingProject

Inheritance diagram of autowisp.tests.test_photref_candidates.TestUnboundEntries

Which entries of a photref group still need a reference.

test_bindings_are_checked_per_channel()[source]

An image bound in one channel still needs its other one bound.

As under a must_match putting both channels in one group. With near bound in R and far in G, the group’s first entry being in R must not decide the channel checked for all.