generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: troute output formats + add testing data
- Loading branch information
Showing
6 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
python/ngen_cal/tests/data/troute_output/example_realization_config.json
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,14 @@ | ||
{ | ||
"global": { | ||
"formulations": [], | ||
"forcing": { | ||
"file_pattern": ".*{{id}}.*.csv", | ||
"path": "./does/not/exist/" | ||
} | ||
}, | ||
"time": { | ||
"start_time": "2023-04-02 00:00:00", | ||
"end_time": "2023-04-03 00:00:00", | ||
"output_interval": 3600 | ||
} | ||
} |
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,2 @@ | ||
,"(0, 'q')","(0, 'v')","(0, 'd')","(1, 'q')","(1, 'v')","(1, 'd')","(2, 'q')","(2, 'v')","(2, 'd')","(3, 'q')","(3, 'v')","(3, 'd')","(4, 'q')","(4, 'v')","(4, 'd')","(5, 'q')","(5, 'v')","(5, 'd')","(6, 'q')","(6, 'v')","(6, 'd')","(7, 'q')","(7, 'v')","(7, 'd')","(8, 'q')","(8, 'v')","(8, 'd')","(9, 'q')","(9, 'v')","(9, 'd')","(10, 'q')","(10, 'v')","(10, 'd')","(11, 'q')","(11, 'v')","(11, 'd')","(12, 'q')","(12, 'v')","(12, 'd')","(13, 'q')","(13, 'v')","(13, 'd')","(14, 'q')","(14, 'v')","(14, 'd')","(15, 'q')","(15, 'v')","(15, 'd')","(16, 'q')","(16, 'v')","(16, 'd')","(17, 'q')","(17, 'v')","(17, 'd')","(18, 'q')","(18, 'v')","(18, 'd')","(19, 'q')","(19, 'v')","(19, 'd')","(20, 'q')","(20, 'v')","(20, 'd')","(21, 'q')","(21, 'v')","(21, 'd')","(22, 'q')","(22, 'v')","(22, 'd')","(23, 'q')","(23, 'v')","(23, 'd')","(24, 'q')","(24, 'v')","(24, 'd')","(25, 'q')","(25, 'v')","(25, 'd')","(26, 'q')","(26, 'v')","(26, 'd')","(27, 'q')","(27, 'v')","(27, 'd')","(28, 'q')","(28, 'v')","(28, 'd')","(29, 'q')","(29, 'v')","(29, 'd')","(30, 'q')","(30, 'v')","(30, 'd')","(31, 'q')","(31, 'v')","(31, 'd')","(32, 'q')","(32, 'v')","(32, 'd')","(33, 'q')","(33, 'v')","(33, 'd')","(34, 'q')","(34, 'v')","(34, 'd')","(35, 'q')","(35, 'v')","(35, 'd')","(36, 'q')","(36, 'v')","(36, 'd')","(37, 'q')","(37, 'v')","(37, 'd')","(38, 'q')","(38, 'v')","(38, 'd')","(39, 'q')","(39, 'v')","(39, 'd')","(40, 'q')","(40, 'v')","(40, 'd')","(41, 'q')","(41, 'v')","(41, 'd')","(42, 'q')","(42, 'v')","(42, 'd')","(43, 'q')","(43, 'v')","(43, 'd')","(44, 'q')","(44, 'v')","(44, 'd')","(45, 'q')","(45, 'v')","(45, 'd')","(46, 'q')","(46, 'v')","(46, 'd')","(47, 'q')","(47, 'v')","(47, 'd')","(48, 'q')","(48, 'v')","(48, 'd')","(49, 'q')","(49, 'v')","(49, 'd')","(50, 'q')","(50, 'v')","(50, 'd')","(51, 'q')","(51, 'v')","(51, 'd')","(52, 'q')","(52, 'v')","(52, 'd')","(53, 'q')","(53, 'v')","(53, 'd')","(54, 'q')","(54, 'v')","(54, 'd')","(55, 'q')","(55, 'v')","(55, 'd')","(56, 'q')","(56, 'v')","(56, 'd')","(57, 'q')","(57, 'v')","(57, 'd')","(58, 'q')","(58, 'v')","(58, 'd')","(59, 'q')","(59, 'v')","(59, 'd')","(60, 'q')","(60, 'v')","(60, 'd')","(61, 'q')","(61, 'v')","(61, 'd')","(62, 'q')","(62, 'v')","(62, 'd')","(63, 'q')","(63, 'v')","(63, 'd')","(64, 'q')","(64, 'v')","(64, 'd')","(65, 'q')","(65, 'v')","(65, 'd')","(66, 'q')","(66, 'v')","(66, 'd')","(67, 'q')","(67, 'v')","(67, 'd')","(68, 'q')","(68, 'v')","(68, 'd')","(69, 'q')","(69, 'v')","(69, 'd')","(70, 'q')","(70, 'v')","(70, 'd')","(71, 'q')","(71, 'v')","(71, 'd')","(72, 'q')","(72, 'v')","(72, 'd')","(73, 'q')","(73, 'v')","(73, 'd')","(74, 'q')","(74, 'v')","(74, 'd')","(75, 'q')","(75, 'v')","(75, 'd')","(76, 'q')","(76, 'v')","(76, 'd')","(77, 'q')","(77, 'v')","(77, 'd')","(78, 'q')","(78, 'v')","(78, 'd')","(79, 'q')","(79, 'v')","(79, 'd')","(80, 'q')","(80, 'v')","(80, 'd')","(81, 'q')","(81, 'v')","(81, 'd')","(82, 'q')","(82, 'v')","(82, 'd')","(83, 'q')","(83, 'v')","(83, 'd')","(84, 'q')","(84, 'v')","(84, 'd')","(85, 'q')","(85, 'v')","(85, 'd')","(86, 'q')","(86, 'v')","(86, 'd')","(87, 'q')","(87, 'v')","(87, 'd')","(88, 'q')","(88, 'v')","(88, 'd')","(89, 'q')","(89, 'v')","(89, 'd')","(90, 'q')","(90, 'v')","(90, 'd')","(91, 'q')","(91, 'v')","(91, 'd')","(92, 'q')","(92, 'v')","(92, 'd')","(93, 'q')","(93, 'v')","(93, 'd')","(94, 'q')","(94, 'v')","(94, 'd')","(95, 'q')","(95, 'v')","(95, 'd')","(96, 'q')","(96, 'v')","(96, 'd')","(97, 'q')","(97, 'v')","(97, 'd')","(98, 'q')","(98, 'v')","(98, 'd')","(99, 'q')","(99, 'v')","(99, 'd')","(100, 'q')","(100, 'v')","(100, 'd')","(101, 'q')","(101, 'v')","(101, 'd')","(102, 'q')","(102, 'v')","(102, 'd')","(103, 'q')","(103, 'v')","(103, 'd')","(104, 'q')","(104, 'v')","(104, 'd')","(105, 'q')","(105, 'v')","(105, 'd')","(106, 'q')","(106, 'v')","(106, 'd')","(107, 'q')","(107, 'v')","(107, 'd')","(108, 'q')","(108, 'v')","(108, 'd')","(109, 'q')","(109, 'v')","(109, 'd')","(110, 'q')","(110, 'v')","(110, 'd')","(111, 'q')","(111, 'v')","(111, 'd')","(112, 'q')","(112, 'v')","(112, 'd')","(113, 'q')","(113, 'v')","(113, 'd')","(114, 'q')","(114, 'v')","(114, 'd')","(115, 'q')","(115, 'v')","(115, 'd')","(116, 'q')","(116, 'v')","(116, 'd')","(117, 'q')","(117, 'v')","(117, 'd')","(118, 'q')","(118, 'v')","(118, 'd')","(119, 'q')","(119, 'v')","(119, 'd')","(120, 'q')","(120, 'v')","(120, 'd')","(121, 'q')","(121, 'v')","(121, 'd')","(122, 'q')","(122, 'v')","(122, 'd')","(123, 'q')","(123, 'v')","(123, 'd')","(124, 'q')","(124, 'v')","(124, 'd')","(125, 'q')","(125, 'v')","(125, 'd')","(126, 'q')","(126, 'v')","(126, 'd')","(127, 'q')","(127, 'v')","(127, 'd')","(128, 'q')","(128, 'v')","(128, 'd')","(129, 'q')","(129, 'v')","(129, 'd')","(130, 'q')","(130, 'v')","(130, 'd')","(131, 'q')","(131, 'v')","(131, 'd')","(132, 'q')","(132, 'v')","(132, 'd')","(133, 'q')","(133, 'v')","(133, 'd')","(134, 'q')","(134, 'v')","(134, 'd')","(135, 'q')","(135, 'v')","(135, 'd')","(136, 'q')","(136, 'v')","(136, 'd')","(137, 'q')","(137, 'v')","(137, 'd')","(138, 'q')","(138, 'v')","(138, 'd')","(139, 'q')","(139, 'v')","(139, 'd')","(140, 'q')","(140, 'v')","(140, 'd')","(141, 'q')","(141, 'v')","(141, 'd')","(142, 'q')","(142, 'v')","(142, 'd')","(143, 'q')","(143, 'v')","(143, 'd')","(144, 'q')","(144, 'v')","(144, 'd')","(145, 'q')","(145, 'v')","(145, 'd')","(146, 'q')","(146, 'v')","(146, 'd')","(147, 'q')","(147, 'v')","(147, 'd')","(148, 'q')","(148, 'v')","(148, 'd')","(149, 'q')","(149, 'v')","(149, 'd')","(150, 'q')","(150, 'v')","(150, 'd')","(151, 'q')","(151, 'v')","(151, 'd')","(152, 'q')","(152, 'v')","(152, 'd')","(153, 'q')","(153, 'v')","(153, 'd')","(154, 'q')","(154, 'v')","(154, 'd')","(155, 'q')","(155, 'v')","(155, 'd')","(156, 'q')","(156, 'v')","(156, 'd')","(157, 'q')","(157, 'v')","(157, 'd')","(158, 'q')","(158, 'v')","(158, 'd')","(159, 'q')","(159, 'v')","(159, 'd')","(160, 'q')","(160, 'v')","(160, 'd')","(161, 'q')","(161, 'v')","(161, 'd')","(162, 'q')","(162, 'v')","(162, 'd')","(163, 'q')","(163, 'v')","(163, 'd')","(164, 'q')","(164, 'v')","(164, 'd')","(165, 'q')","(165, 'v')","(165, 'd')","(166, 'q')","(166, 'v')","(166, 'd')","(167, 'q')","(167, 'v')","(167, 'd')","(168, 'q')","(168, 'v')","(168, 'd')","(169, 'q')","(169, 'v')","(169, 'd')","(170, 'q')","(170, 'v')","(170, 'd')","(171, 'q')","(171, 'v')","(171, 'd')","(172, 'q')","(172, 'v')","(172, 'd')","(173, 'q')","(173, 'v')","(173, 'd')","(174, 'q')","(174, 'v')","(174, 'd')","(175, 'q')","(175, 'v')","(175, 'd')","(176, 'q')","(176, 'v')","(176, 'd')","(177, 'q')","(177, 'v')","(177, 'd')","(178, 'q')","(178, 'v')","(178, 'd')","(179, 'q')","(179, 'v')","(179, 'd')","(180, 'q')","(180, 'v')","(180, 'd')","(181, 'q')","(181, 'v')","(181, 'd')","(182, 'q')","(182, 'v')","(182, 'd')","(183, 'q')","(183, 'v')","(183, 'd')","(184, 'q')","(184, 'v')","(184, 'd')","(185, 'q')","(185, 'v')","(185, 'd')","(186, 'q')","(186, 'v')","(186, 'd')","(187, 'q')","(187, 'v')","(187, 'd')","(188, 'q')","(188, 'v')","(188, 'd')","(189, 'q')","(189, 'v')","(189, 'd')","(190, 'q')","(190, 'v')","(190, 'd')","(191, 'q')","(191, 'v')","(191, 'd')","(192, 'q')","(192, 'v')","(192, 'd')","(193, 'q')","(193, 'v')","(193, 'd')","(194, 'q')","(194, 'v')","(194, 'd')","(195, 'q')","(195, 'v')","(195, 'd')","(196, 'q')","(196, 'v')","(196, 'd')","(197, 'q')","(197, 'v')","(197, 'd')","(198, 'q')","(198, 'v')","(198, 'd')","(199, 'q')","(199, 'v')","(199, 'd')","(200, 'q')","(200, 'v')","(200, 'd')","(201, 'q')","(201, 'v')","(201, 'd')","(202, 'q')","(202, 'v')","(202, 'd')","(203, 'q')","(203, 'v')","(203, 'd')","(204, 'q')","(204, 'v')","(204, 'd')","(205, 'q')","(205, 'v')","(205, 'd')","(206, 'q')","(206, 'v')","(206, 'd')","(207, 'q')","(207, 'v')","(207, 'd')","(208, 'q')","(208, 'v')","(208, 'd')","(209, 'q')","(209, 'v')","(209, 'd')","(210, 'q')","(210, 'v')","(210, 'd')","(211, 'q')","(211, 'v')","(211, 'd')","(212, 'q')","(212, 'v')","(212, 'd')","(213, 'q')","(213, 'v')","(213, 'd')","(214, 'q')","(214, 'v')","(214, 'd')","(215, 'q')","(215, 'v')","(215, 'd')","(216, 'q')","(216, 'v')","(216, 'd')","(217, 'q')","(217, 'v')","(217, 'd')","(218, 'q')","(218, 'v')","(218, 'd')","(219, 'q')","(219, 'v')","(219, 'd')","(220, 'q')","(220, 'v')","(220, 'd')","(221, 'q')","(221, 'v')","(221, 'd')","(222, 'q')","(222, 'v')","(222, 'd')","(223, 'q')","(223, 'v')","(223, 'd')","(224, 'q')","(224, 'v')","(224, 'd')","(225, 'q')","(225, 'v')","(225, 'd')","(226, 'q')","(226, 'v')","(226, 'd')","(227, 'q')","(227, 'v')","(227, 'd')","(228, 'q')","(228, 'v')","(228, 'd')","(229, 'q')","(229, 'v')","(229, 'd')","(230, 'q')","(230, 'v')","(230, 'd')","(231, 'q')","(231, 'v')","(231, 'd')","(232, 'q')","(232, 'v')","(232, 'd')","(233, 'q')","(233, 'v')","(233, 'd')","(234, 'q')","(234, 'v')","(234, 'd')","(235, 'q')","(235, 'v')","(235, 'd')","(236, 'q')","(236, 'v')","(236, 'd')","(237, 'q')","(237, 'v')","(237, 'd')","(238, 'q')","(238, 'v')","(238, 'd')","(239, 'q')","(239, 'v')","(239, 'd')","(240, 'q')","(240, 'v')","(240, 'd')","(241, 'q')","(241, 'v')","(241, 'd')","(242, 'q')","(242, 'v')","(242, 'd')","(243, 'q')","(243, 'v')","(243, 'd')","(244, 'q')","(244, 'v')","(244, 'd')","(245, 'q')","(245, 'v')","(245, 'd')","(246, 'q')","(246, 'v')","(246, 'd')","(247, 'q')","(247, 'v')","(247, 'd')","(248, 'q')","(248, 'v')","(248, 'd')","(249, 'q')","(249, 'v')","(249, 'd')","(250, 'q')","(250, 'v')","(250, 'd')","(251, 'q')","(251, 'v')","(251, 'd')","(252, 'q')","(252, 'v')","(252, 'd')","(253, 'q')","(253, 'v')","(253, 'd')","(254, 'q')","(254, 'v')","(254, 'd')","(255, 'q')","(255, 'v')","(255, 'd')","(256, 'q')","(256, 'v')","(256, 'd')","(257, 'q')","(257, 'v')","(257, 'd')","(258, 'q')","(258, 'v')","(258, 'd')","(259, 'q')","(259, 'v')","(259, 'd')","(260, 'q')","(260, 'v')","(260, 'd')","(261, 'q')","(261, 'v')","(261, 'd')","(262, 'q')","(262, 'v')","(262, 'd')","(263, 'q')","(263, 'v')","(263, 'd')","(264, 'q')","(264, 'v')","(264, 'd')","(265, 'q')","(265, 'v')","(265, 'd')","(266, 'q')","(266, 'v')","(266, 'd')","(267, 'q')","(267, 'v')","(267, 'd')","(268, 'q')","(268, 'v')","(268, 'd')","(269, 'q')","(269, 'v')","(269, 'd')","(270, 'q')","(270, 'v')","(270, 'd')","(271, 'q')","(271, 'v')","(271, 'd')","(272, 'q')","(272, 'v')","(272, 'd')","(273, 'q')","(273, 'v')","(273, 'd')","(274, 'q')","(274, 'v')","(274, 'd')","(275, 'q')","(275, 'v')","(275, 'd')","(276, 'q')","(276, 'v')","(276, 'd')","(277, 'q')","(277, 'v')","(277, 'd')","(278, 'q')","(278, 'v')","(278, 'd')","(279, 'q')","(279, 'v')","(279, 'd')","(280, 'q')","(280, 'v')","(280, 'd')","(281, 'q')","(281, 'v')","(281, 'd')","(282, 'q')","(282, 'v')","(282, 'd')","(283, 'q')","(283, 'v')","(283, 'd')","(284, 'q')","(284, 'v')","(284, 'd')","(285, 'q')","(285, 'v')","(285, 'd')","(286, 'q')","(286, 'v')","(286, 'd')","(287, 'q')","(287, 'v')","(287, 'd')" | ||
2420800,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0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.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 |
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
python/ngen_cal/tests/data/troute_output/troute_output.csv
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,25 @@ | ||
,,current_time,flow,velocity,depth,nudge | ||
2420800,wb,2023-04-02 01:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 02:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 03:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 04:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 05:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 06:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 07:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 08:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 09:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 10:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 11:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 12:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 13:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 14:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 15:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 16:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 17:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 18:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 19:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 20:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 21:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 22:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-02 23:00:00,0.0,0.0,0.0,-9999.0 | ||
2420800,wb,2023-04-03 00:00:00,0.0,0.0,0.0,-9999.0 |
Binary file not shown.
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,49 @@ | ||
from __future__ import annotations | ||
|
||
import pathlib | ||
from datetime import datetime | ||
|
||
import pytest | ||
from ngen.cal.ngen import NgenBase | ||
from ngen.cal.ngen_hooks.ngen_output import TrouteOutput | ||
from ngen.config.realization import NgenRealization | ||
|
||
data_dir = pathlib.Path(__file__).parent / "data/troute_output/" | ||
|
||
|
||
@pytest.fixture | ||
def ngen_cal_model_config() -> NgenBase: | ||
# NOTE: validation skipped and only fields required for | ||
# `TrouteOutput.ngen_cal_model_configure` are implemented | ||
realization = NgenRealization.parse_file( | ||
data_dir / "example_realization_config.json" | ||
) | ||
base = NgenBase.construct() | ||
base.ngen_realization = realization | ||
return base | ||
|
||
|
||
troute_output_variants = ( | ||
data_dir / "flowveldepth.csv", | ||
data_dir / "flowveldepth.parquet", | ||
data_dir / "troute_output.csv", | ||
data_dir / "troute_output.nc", | ||
) | ||
|
||
|
||
@pytest.mark.parametrize("file", troute_output_variants) | ||
def test_ngen_cal_model_output(file: pathlib.Path, ngen_cal_model_config: NgenBase): | ||
output = TrouteOutput(file) | ||
|
||
# setup plugin | ||
output.ngen_cal_model_configure(config=ngen_cal_model_config) | ||
|
||
feature = "wb-2420800" | ||
df = output.get_output(id=feature) | ||
assert df is not None, "expect to receive pd.Series" | ||
|
||
dt = datetime.fromisoformat("2023-04-02 01:00:00") | ||
assert df[dt] == 0.0 | ||
|
||
# testing data is for a single day | ||
assert len(df) == 24 |