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

filename updatede to include site +freq+var #5

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion neon_dashboard/models/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function table_to_csv(source) {
}


const filename = 'data_result.csv'
const filename = download_site+'_'+download_var+'_'+download_freq+'_data.csv'
const filetext = table_to_csv(source)
const blob = new Blob([filetext], { type: 'text/csv;charset=utf-8;' })

Expand Down
12 changes: 9 additions & 3 deletions neon_dashboard/simple_tseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ def tseries_plot(self, p):

p.title.text = plot_title

print (self.this_site["Site"].values[0].replace(r"[][]", " "))
print (self.this_site["state"].values[0].replace(r"[][]", " "))
print(self.this_site["site_name"].values[0].replace(r"[][]", " "))
print ('~~~~~~~~~~~~~~~~~~~~~~~~~~')
print ('~~~~~~~~~~~~~~~~~~~~~~~~~~')
print ('~~~~~~~~~~~~~~~~~~~~~~~~~~')
p.legend.location = "top_right"
p.legend.label_text_font_size = "15pt"
p.legend.label_text_font_style = "bold"
Expand Down Expand Up @@ -488,9 +494,9 @@ def create_tab(self):
button.js_on_event(
"button_click",
CustomJS(
args=dict(source=self.source),
code=open(
os.path.join(os.path.dirname(__file__), "models", "download.js")
#args=dict(source=self.source, site_name=self.this_site["Site"].values[0].replace(r"[][]", " ")),
args=dict(source=self.source, download_site=self.menu_site.value, download_freq=self.menu_freq.value, download_var=self.menu_var.value),
code=open(os.path.join(os.path.dirname(__file__), "models", "download.js")
).read(),
),
)
Expand Down
Loading