adi_py issueshttps://code.arm.gov/adi/adi_py/-/issues2023-05-17T17:02:42Zhttps://code.arm.gov/adi/adi_py/-/issues/15dsproc ImportError: dsproc_set_datastream_split_tz_offset2023-05-17T17:02:42ZJoe O'Briendsproc ImportError: dsproc_set_datastream_split_tz_offsetI am attempting to create a bare-bones adi conda environment with the following commands:
```bash
conda create --name adi_py python==3.9
source activate adi_py
conda install adi_py --channel arm-doe
python
import adi_py
```
I receive the...I am attempting to create a bare-bones adi conda environment with the following commands:
```bash
conda create --name adi_py python==3.9
source activate adi_py
conda install adi_py --channel arm-doe
python
import adi_py
```
I receive the following ImportError:
```
ImportError: /ccsopen/home/jrobrien/.local/cirrus/anaconda3/3.7/lib/python3.9/site-packages/dsproc3/core.cpython-39-x86_64-linux-gnu.so: undefined symbol: dsproc_set_datastream_split_tz_offset
```https://code.arm.gov/adi/adi_py/-/issues/13get_time_data_as_datetime64(time_var: cds3.Var) failed for 0 time_var2022-10-07T22:41:05ZKefei Moget_time_data_as_datetime64(time_var: cds3.Var) failed for 0 time_var* In arealavealbyr_py VAP: https://pcm-dev.arm.gov/pcm/process/arealavealbyr_py/variable-retrieval
* The output datastream "arealavealbyr.c1" has 0 variables binded to input variables.
* In such case, when evoking a train of call, i.e., ...* In arealavealbyr_py VAP: https://pcm-dev.arm.gov/pcm/process/arealavealbyr_py/variable-retrieval
* The output datastream "arealavealbyr.c1" has 0 variables binded to input variables.
* In such case, when evoking a train of call, i.e., xr_ds = self.get_output_dataset("arealavealbyr.c1") -> get_xr_dataset(ADIDatasetType.OUTPUT, output_datastream_name) -> xr_dataset: xr.Dataset = to_xarray(adi_dataset) -> get_time_data_as_datetime64(time_var: cds3.Var) It failed at microsecond_times = np.asarray(dsproc.get_sample_timevals(time_var, 0)) * 1000000
* Since np.asarray(dsproc.get_sample_timevals(time_var, 0)) == None, and None * 10000000 is wrong.
![image](/uploads/eff9b6916e26f1f2dfce0eeff45439f9/image.png)
![image](/uploads/d9174430afcdc06543bcfc17947fa75e/image.png)https://code.arm.gov/adi/adi_py/-/issues/11Process.get_datastream_files crashes starting in v3.14.02022-07-19T22:51:29ZMaxwell LevinProcess.get_datastream_files crashes starting in v3.14.0Starting in 3.14.0 the method signature to `get_datastream_files` in `adi_py/utils.py` changed to accept a `dsid: int` instead of `datastream_name: str`, however the calling method in `process.py` was not updated. @schuman and I tracked ...Starting in 3.14.0 the method signature to `get_datastream_files` in `adi_py/utils.py` changed to accept a `dsid: int` instead of `datastream_name: str`, however the calling method in `process.py` was not updated. @schuman and I tracked it down to this commit:
https://code.arm.gov/adi/adi_py/-/commit/41f044097b25082660307d8ccedde13866adbd46?view=parallel&w=1#e28a8c6b61e94a34b34b6f246011f35d07cd22ae_792_894Maxwell LevinMaxwell Levinhttps://code.arm.gov/adi/adi_py/-/issues/1Convert ADI times to datetime 642022-05-25T23:02:25ZCarina LansingConvert ADI times to datetime 64
How to set adi time values in xarray:
• Use adi get sample timevals to get seconds since 1970 and a microseconds offset
• Every time we load times, we will convert to datetime64 in xarray
• We will construct datetimes as microseconds s...
How to set adi time values in xarray:
• Use adi get sample timevals to get seconds since 1970 and a microseconds offset
• Every time we load times, we will convert to datetime64 in xarray
• We will construct datetimes as microseconds since epoch time
• See if there is an efficient way to detect if the xarray time array has changed or if I should just always deserialize values back to adi.
• When converting back to time values in ADI, we have to convert the microseconds since epoch to seconds since midnight plus microseconds. Microseconds are part of the decimal of the double time offset value.Carina LansingCarina Lansing