[PIPE2D-908] Fix test breakage from PIPE2D-871 Created: 29/Sep/21  Updated: 30/Sep/21  Resolved: 30/Sep/21

Status: Done
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Normal
Reporter: price Assignee: price
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Reviewers: hassan

 Description   

Following the merge of PIPE2D-871, drp_stella fails the integration test:

_____________________ EstimateRadialVelocityTestCase.test ______________________
[gw8] linux -- Python 3.7.2 /projects/HSC/PFS/stack/20190925/python/miniconda3-4.5.12/envs/lsst-scipipe/bin/python3.7

self = <test_estimateRadialVelocity.EstimateRadialVelocityTestCase testMethod=test>

   def setUp(self):
       self.estimateRadialVelocity = EstimateRadialVelocityTask(config=EstimateRadialVelocityConfig())
       # It may be fearsome to use default_rng()
       # because numpy is planning to change the default RNG again as of 2021-09-15.
       # We call PCG64 explicitly.
     self.np_random = np.random.Generator(np.random.PCG64(seed=0x789abcdef0123456))
E       AttributeError: module 'numpy.random' has no attribute 'Generator'

I believe this comes from using a newer version of numpy than the stack supports.



 Comments   
Comment by hassan [ 30/Sep/21 ]

Changes in PR https://github.com/Subaru-PFS/drp_stella/pull/223 look fine to me.

Comment by price [ 30/Sep/21 ]

Merged.

Generated at Sat Feb 10 15:59:34 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.