Open mattirish opened 5 years ago
Pretty sure this is #4 - can you try turning off MT reporting and see if that fixes it?
Ah, sorry! I glanced at the existing issues but it didn't sound related from the title. I'll set off a run without MT reporting tonight and let ya know. Thanks.
@mattirish, did disabling MT reporting fix this for you?
@mattirish, following up on our conversation today, if you're interested in taking a stab at this, I think this is the offending code: https://github.com/NREL/h5plexos/blob/33dc07a6b1ffe47574ad5cf73c5243584508a15d/h5plexos/process/buildh5.py#L140-L142
Basically, the MT timestamp data in the PLEXOS file must have a period_num
that conflicts with the key defined here: https://github.com/NREL/h5plexos/blob/33dc07a6b1ffe47574ad5cf73c5243584508a15d/h5plexos/process/buildh5.py#L22-L28
It may be that different phases have overlapping period_num
s and that some other column in the database is needed to disambiguate (e.g. there might be an ST 0 and an MT 0) - h5plexos ends up trying to create a 0="interval" dataset twice which leads to the RuntimeError: Unable to create link (name already exists)
I'm just getting this error when trying to process a PLEXOS solution from RPM-LA. I've successfully used h5plexos to process the test solution and our NAERM RTS-GMLC network solutions, so there aren't any issues with my installation. I get this same error for any year and scenario of our RPM-LA runs, and with runs from a few months back, too:
An hdf5 database is created with correct metadata but no data.
From a quick googling, it looks like h5py throws this error in create_dataset when we're trying to create an already existing dataset.
It's hard to know right off that bat what in our PLEXOS representation of RPM is causing this. Will try to figure it out!
@GordStephen, the solution being processed above is in //nrelqnap02/RPM/Projects/LA100/rpm_la/20190523_la_sb100/islanded, if ya want to check it out. The xml is at 20190523_la_sb100/inout/plexos_output/final_20190523_la_sb100_is.xml.