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

HSPsquared model created from ./tests/ipwater/data/HSPF_Test240.uci fails with AttributeError #181

Open
timcera opened this issue Oct 3, 2024 · 0 comments

Comments

@timcera
Copy link
Contributor

timcera commented Oct 3, 2024

hsp2 import_uci ./tests/ipwater/data/HSPF_Test240.uci ./tests/ipwater/data/ref_run_HSPF_Test240.h5
hsp2 run ./tests/ipwater/data/ref_run_HSPF_Test240.h5

failed with

2024-10-02 22:48:46.01   Processing started for file ./tests/ipwater/data/ref_run_HSPF_Test240.h5; saveall=True
2024-10-02 22:48:49.57   Simulation Start: 2018-01-01 00:00:00, Stop: 2019-01-01 00:00:00
2024-10-02 22:48:49.58      IMPLND I001 DELT(minutes): 60
Traceback (most recent call last):
  File "/var/home/timcera/miniconda3/envs/default311/bin/hsp2", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2tools/HSP2_CLI.py", line 9, in main
    cltoolbox.main()
  File "/var/home/timcera/miniconda3/envs/default311/lib/python3.11/site-packages/cltoolbox/cltoolbox.py", line 323, in __call__
    return self.execute(sys.argv[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/timcera/miniconda3/envs/default311/lib/python3.11/site-packages/cltoolbox/cltoolbox.py", line 319, in execute
    return command(*real_args)
           ^^^^^^^^^^^^^^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2tools/commands.py", line 26, in run
    main(io_manager, saveall=saveall, jupyterlab=compress)
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/main.py", line 168, in main
    ts = get_timeseries(
         ^^^^^^^^^^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/utilities.py", line 421, in get_timeseries
    t = transform(data_frame, row.TMEMN, row.TRAN, siminfo)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/utilities.py", line 217, in transform
    tsfreq = ts.index.freq
             ^^^^^^^^^^^^^
AttributeError: 'RangeIndex' object has no attribute 'freq'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant