You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue describes a previously undetected error that arrives with the author's updating of __init__.py.
Presently, the following exists (the author believes correctly) in pyproject.toml:
packages = [{include = "forecasttools"}]
include = [
{ path = "forecasttools/location_table.parquet", format = "sdist" },
{ path = "forecasttools/location_table.parquet", format = "wheel" },
{ path = "forecasttools/example_flusight_submission.parquet", format = "sdist" },
{ path = "forecasttools/example_flusight_submission.parquet", format = "wheel" },
{ path = "forecasttools/example_flu_forecast_wo_dates.nc", format = "sdist" },
{ path = "forecasttools/example_flu_forecast_wo_dates.nc", format = "wheel" },
{ path = "forecasttools/example_flu_forecast_w_dates.nc", format = "sdist" },
{ path = "forecasttools/example_flu_forecast_w_dates.nc", format = "wheel" },
{ path = "forecasttools/nhsn_hosp_COVID.parquet", format = "sdist" },
{ path = "forecasttools/nhsn_hosp_COVID.parquet", format = "wheel" },
{ path = "forecasttools/nhsn_hosp_flu.parquet", format = "sdist" },
{ path = "forecasttools/nhsn_hosp_flu.parquet", format = "wheel" },
]
However the following:
# location table (from Census data)withimportlib.resources.files(__package__).joinpath(
"location_table.parquet"
).open("rb") asf:
location_table=pl.read_parquet(f)
# load example flusight submissionwithimportlib.resources.files(__package__).joinpath(
"example_flusight_submission.parquet"
).open("rb") asf:
example_flusight_submission=pl.read_parquet(f)
# load example fitting data for COVID (NHSN, as of 2024-09-26)withimportlib.resources.files(__package__).joinpath(
"nhsn_hosp_COVID.parquet"
).open("rb") asf:
nhsn_hosp_COVID=pl.read_parquet(f)
# load example fitting data for influenza (NHSN, as of 2024-09-26)withimportlib.resources.files(__package__).joinpath(
"nhsn_hosp_flu.parquet"
).open("rb") asf:
nhsn_hosp_flu=pl.read_parquet(f)
# load light idata NHSN influenza forecast wo dates (NHSN, as of 2024-09-26)withimportlib.resources.files(__package__).joinpath(
"example_flu_forecast_wo_dates.nc"
).open("rb") asf:
nhsn_flu_forecast_wo_dates=az.from_netcdf(f)
# load light idata NHSN influenza forecast w dates (NHSN, as of 2024-09-26)withimportlib.resources.files(__package__).joinpath(
"example_flu_forecast_w_dates.nc"
).open("rb") asf:
nhsn_flu_forecast_w_dates=az.from_netcdf(f)
It is worth noting here that the above error was originally detected during the development of the demonstration for NNH that occurred in this PR: #40.
This issue describes a previously undetected error that arrives with the author's updating of
__init__.py
.Presently, the following exists (the author believes correctly) in
pyproject.toml
:However the following:
when converted BACK to this:
solved the following error:
The contents of
__init__.py
ought to be investigated further.The text was updated successfully, but these errors were encountered: