-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mboulais/O2B-1401/store-runs-and-qcflags-tim…
…estamps-with-ms
- Loading branch information
Showing
29 changed files
with
571 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
lib/database/migrations/20231025101611-create-lhc-periods-view.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
lib/database/migrations/20241105125509-fix-physical-constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use strict'; | ||
|
||
// Fixes values set in 20231025101611-create-lhc-periods-view.js | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
up: async (queryInterface) => queryInterface.sequelize.transaction(async (transaction) => { | ||
await queryInterface.sequelize.query( | ||
// 2 * ATOMIC_NUMBER /ATOMIC_MASS => 2 * 82 / 207.2 | ||
'UPDATE physical_constants SET value=0.791505792 WHERE `key`=\'2#Z/A_PbPb\'', | ||
{ transaction }, | ||
); | ||
await queryInterface.sequelize.query( | ||
// 2 * ATOMIC_NUMBER /ATOMIC_MASS => 2 * 8 / 15.999 | ||
'UPDATE physical_constants SET value=1.000062504 WHERE `key`=\'2#Z/A_OO\'', | ||
{ transaction }, | ||
); | ||
await queryInterface.sequelize.query( | ||
// 2 * ATOMIC_NUMBER /ATOMIC_MASS => 2 * 54 / 131.293 | ||
'UPDATE physical_constants SET value=0.822587647 WHERE `key`=\'2#Z/A_XeXe\'', | ||
{ transaction }, | ||
); | ||
}), | ||
|
||
down: async (queryInterface) => queryInterface.sequelize.transaction(async (transaction) => { | ||
await queryInterface.sequelize.query( | ||
'UPDATE physical_constants SET value=3.1792006972147466 WHERE `key`=\'2#Z/A_PbPb\'', | ||
{ transaction }, | ||
); | ||
await queryInterface.sequelize.query( | ||
'UPDATE physical_constants SET value=7.999974999960937 WHERE `key`=\'2#Z/A_OO\'', | ||
{ transaction }, | ||
); | ||
await queryInterface.sequelize.query( | ||
'UPDATE physical_constants SET value=22.916369695045503 WHERE `key`=\'2#Z/A_XeXe\'', | ||
{ transaction }, | ||
); | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.